isual 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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

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
Miles driven:
450
Gallons of gas used: Qo
Please enter a value > 0
Efficiency (Miles/Gallon):
Calculate
Transcribed Image Text:Mileage Efficieny Calculator Miles driven: 450 Gallons of gas used: Qo Please enter a value > 0 Efficiency (Miles/Gallon): Calculate
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education