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 program1. 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.txt3. 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 pressed4. 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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here