Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN JAVA PROGRAM ! ! ! Make Carmax program. The program provides functions to manage customers/members and car inventory using text files. First define class
IN JAVA PROGRAM ! ! !
Make Carmax program. The program provides functions to manage customers/members and car inventory using text files. First define class Main, Car, Minivan, Sedan, Sportscar, Inventory, Members, User, Admin, and Standard as defined below. Additionally, you can define any class and method if you need. All customers and car inventory information should be stored in text files as a simple database. Please use two object arrays for Car and User object in the program. Once the program starts, you have to open the files and load all information on the object arrays. (You may need to use StringTokenizer class to read the file.) When the program finishes, you have to overwrite the two files with the two object arrays. Example of data file users.txt dkim/1234/Admin/yourfirstname/lastname/admin@carmax.com/dealer app123/6364.dd3K/Standard/Jackson/James/J88@gmail.com/0 hukkz 993/3!7A2dss/Standard/Gonzalez/Mike/MH332@yahoo.com/ apple12/3W2i.d2/Admin/Kim/Dongchul/dkim@carmax.com/business manager 23fasd/395D.jd/Standard/Cantu/Roy/kcantu02@hotmail.com/2/AB234KL 34/FF2HHKL94 inventory.txt AB234KXA2/Sedan/Honda/Accord/2018/100/3000.00/G/Y CD555SA72/Sedan/Toyota/Camry/2010/11000/7000.00/S/N AB2 34KL 34/Sedan/Honda/Civic/2009/15000/4000.00/R/N XX55JKA31/Minivan/Honda/odyssey/2018/500/5000.00/B/Y FF2HHKL94/Sedan/BMW/535i/2011/12000/9000.00/W/N/N ID321XKWA/Sportscar/Audi/R8/2018/300/110000.00/B/Y Example of Car, Sedan, Minivan, Sportscar, User, Admin, Standard, Members, and Inventory class Example of Car, Sedan, Minivan, Sportscar, User, Admin, Standard, Members, and Inventory class public class car! private String vin; private String brand; private String model; private int year; private int mileage; private double price; private char color; public Car (String i, String b, String m, int y, int mile, double p, String c) { } public void setVin(String v) { public String getVin() { public class Sedan extends Cart Make Carmax program. The program provides functions to manage customers/members and car inventory using text files. First define class Main, Car, Minivan, Sedan, Sportscar, Inventory, Members, User, Admin, and Standard as defined below. Additionally, you can define any class and method if you need. All customers and car inventory information should be stored in text files as a simple database. Please use two object arrays for Car and User object in the program. Once the program starts, you have to open the files and load all information on the object arrays. (You may need to use StringTokenizer class to read the file.) When the program finishes, you have to overwrite the two files with the two object arrays. Example of data file users.txt dkim/1234/Admin/yourfirstname/lastname/admin@carmax.com/dealer app123/6364.dd3K/Standard/Jackson/James/J88@gmail.com/0 hukkz 993/3!7A2dss/Standard/Gonzalez/Mike/MH332@yahoo.com/ apple12/3W2i.d2/Admin/Kim/Dongchul/dkim@carmax.com/business manager 23fasd/395D.jd/Standard/Cantu/Roy/kcantu02@hotmail.com/2/AB234KL 34/FF2HHKL94 inventory.txt AB234KXA2/Sedan/Honda/Accord/2018/100/3000.00/G/Y CD555SA72/Sedan/Toyota/Camry/2010/11000/7000.00/S/N AB2 34KL 34/Sedan/Honda/Civic/2009/15000/4000.00/R/N XX55JKA31/Minivan/Honda/odyssey/2018/500/5000.00/B/Y FF2HHKL94/Sedan/BMW/535i/2011/12000/9000.00/W/N/N ID321XKWA/Sportscar/Audi/R8/2018/300/110000.00/B/Y Example of Car, Sedan, Minivan, Sportscar, User, Admin, Standard, Members, and Inventory class Example of Car, Sedan, Minivan, Sportscar, User, Admin, Standard, Members, and Inventory class public class car! private String vin; private String brand; private String model; private int year; private int mileage; private double price; private char color; public Car (String i, String b, String m, int y, int mile, double p, String c) { } public void setVin(String v) { public String getVin() { public class Sedan extends CartStep 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