Reference no: EM133085760
MCIS 5103 Advanced Programming Concepts - Southern Arkansas University
Create a GUI front end for the code in the Appendix.
1. Create a GUI that has two check boxes which allow a user to select between a car and a truck.
2. Create a GUI that pops up ONLY if the car is selected. This new window should contain JLabels with JTextFields that allow the user to enter in all the car's relevant information - e.g. Make, Model, Year, Number of Doors, Fuel Tank Capacity, and Driving Range. Use the same inputs from Main.java in the Appendix. The new window should also include a calculate MPG button which computes and outputs the miles per gallon when pressed. In this case, the MPG is 24.0.
3. Create a GUI that pops up ONLY if the truck is selected. This new window should contain JLabels with JTextFields that allow the user to enter in all the truck's relevant information - e.g. Make, Model, Year, Number of Doors, Fuel Tank Capacity, Driving Range, Towing Capacity, and Payload Capacity. Use the same inputs from Main.java in the Appendix. The new window should also include a calculate MPG button which computes and outputs the miles per gallon when pressed. In this case, the MPG is 21.0.
4. Create a GUI error message that pops up if the user enters invalid information into the GUI from question #2.
5. Create a GUI error message that pops up if the user enters invalid information into the GUI from question #3.
Develop a report that contains an overview of the source code. It should also include print screens of the GUIs from each scenario mentioned above. Develop, compile, and run source code in Repl.it. No marks will be given to code that does not compile/run. Copy source code and paste in the report's Appendix. Note, all responses should be contained in ONE WORD or PDF document. Other formats will not be accepted.
Attachment:- Advanced Programming Concepts.rar