Use Visual studio- C# Windows Form to develop the Application: In every program data must be validated before the program can proceed with further processing and storage of the input data. As a...


Use Visual studio- C# Windows Form to develop the Application:


In every program data must be validated before the program can proceed with further processing and storage of the input data. As a Windows developer for a data analysis company, you are tasked to develop an application using Windows form / Windows Presentation Foundation (WPF) named mileage efficiency. Your interface should look as shown below.
You should include the following in your program
1. Exception handling should be used to prevent users from entering invalid input (text, character...) (try, catch and final)
2. All exception messages should be display using a message box and save in a text file called Exceptionfile.txt
3. All result (miles divided by gallon) should be save in a file called MilesperGallon.txt. The result should be saved once the calculate button is pressed
4. Meaning your program will have two separate text files one to record all exception thrown – message and the other to record all calculation and the date and time the operation occurred


Run the project. Enter values for miles and gallons and click Calculate. The program calculates the mileage efficiency, as expected. When you enter an invalid value into any of the TextBox controls, the error icon starts blinking and displays the error message when the mouse is hovered over the error icon, as shown in


Mileage Efficieny Calculator<br>Miles driven:<br>450<br>Gallons of gas used: Qo<br>Please enter a value > 0<br>Efficiency (Miles/Gallon):<br>Calculate<br>

Extracted text: Mileage Efficieny Calculator Miles driven: 450 Gallons of gas used: Qo Please enter a value > 0 Efficiency (Miles/Gallon): Calculate
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here