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.
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)- 20 Marks 2. All exception messages should be display using a message box and save in a text file called Exceptionfile.txt- 20 Marks 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 – 20 Marks 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- 10
public class Main{
public static void main(String []args){
System.out.println("C#".equals("Java"));
}
}
Comments
Leave a comment