Question
Using Visual Studio The appropriate information should be displayed in columns. The first column should have a label with the make and model of the
Using Visual Studio
The appropriate information should be displayed in columns. The first column should have a label with the make and model of the car, followed by a column with the year in a label, and finally a column with a textbox showing the mileage of the car. It is easiest to have different labels for each vehicle and for each column. (So, the first car, there would be one label showing Ford Fusion, one showing 1999, and a textbox saying 134239. The second car would have a totally different set of labels.)
When the program starts, the input file should be read and the labels and textboxes should be dynamically created based on the file input. An example file is provided, but the program should work correctly with any appropriate file.
The label for make and model and the label for year should be highlighted (changed to a different color) if the car has less than 20,000 miles when the file is loaded. If the user changes the mileage in the textbox, the label highlights dont need to change to match.
Additionally, there should be the following buttons:
- Lowest Mileage. When the user clicks this button, a dialog box should be displayed telling the user the information (make, model, year, and mileage) for the car with the lowest mileage. This should use any updates that the user has made to the mileage (that is, if the mileage was originally 75000 and the user has changed it to 80000, it should use the new 80000).
- Average Ford Mileage. When the user clicks this button, a dialog box should be displayed telling the user the average mileage of all Ford that are being tracked. You may assume that at least one Ford is being tracked by the program. This should also use any updates to the mileage that the user has made.
File Format
Each line in the file contains information about one vehicle, with spaces in between. The year is first, followed by the mileage, then the make (company, like Ford), and finally the model (like Fusion). The make and model will each be only one word.
Form1 Ford Fusion 1999 134239 Lowest Mileage Jeep Liberty 2008 32500 The Ford Fusion from 2012 has the lowest mileage: 2312 Toyota Prius 2005 Average Ford Mileage 17030 OK Jeep Wrangler 2005 23633 Toyota Prius 2001 34587 Ford Fusion 2012 2312 Jeep Liberty 2008 123252 The average Ford mileage is: 78271 Ford Escape 2005 98262 OK Jeep Patriot 2007 74233 Toyota Highlander 2003 87355Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started