The main objective of this assignment is checking the students’ ability to work with ADTs. In this week's assignment, you will be writing the interface of an ADT in order to conform to the requirements of a larger application. Description: A car rental company needs to keep extensive records to run their operation correctly. Not only does a company need to keep track of their customers, but it is also imperative to keep good records on employees. Keeping track of what car a customer is driving is a good example of a record. In addition, many times, cars need to be transported between locations of a company. If a staff member is moving a car, it is important to know which staff members are moving certain cars. Suppose Old Dominion University wanted to create a car rental company called ODU rentals. This company has employed you to keep records for the company. The company is confident you will succeed in creating a large scale record system, but they would like you to prove your coding skills first. ODU rentals would like you to set up an initial program to hold records before you begin the full-scale project. You are tasked to create 2 ADTs: customers and staff. Each customer will have a first and last name, an indication if the customer is enrolled in the “preferred” program, the car they are driving, and the amount of money owed to the company. On the other hand, each staff member will have a first and last name, the car they are driving, and their salary. In a real-world problem, there would obviously be more records associated with each staff member and customer. ODU rentals would like you to automatically process txt files and print the information to the console screen. When you perform this process, ensure that your member variables are private. In addition, be sure to use getter and setter functions to manipulate and print your data. You may print your data in any format as long as it is organized. An example of correct output can be seen below.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Objective: The main objective of this assignment is checking the students’ ability to work with ADTs. In this week's assignment, you will be writing the interface of an ADT in order to conform to the requirements of a larger application.

Description: A car rental company needs to keep extensive records to run their operation correctly. Not only does a company need to keep track of their customers, but it is also imperative to keep good records on employees. Keeping track of what car a customer is driving is a good example of a record. In addition, many times, cars need to be transported between locations of a company. If a staff member is moving a car, it is important to know which staff members are moving certain cars.

Suppose Old Dominion University wanted to create a car rental company called ODU rentals. This company has employed you to keep records for the company. The company is confident you will succeed in creating a large scale record system, but they would like you to prove your coding skills first. ODU rentals would like you to set up an initial program to hold records before you begin the full-scale project.

You are tasked to create 2 ADTs: customers and staff. Each customer will have a first and last name, an indication if the customer is enrolled in the “preferred” program, the car they are driving, and the amount of money owed to the company. On the other hand, each staff member will have a first and last name, the car they are driving, and their salary. In a real-world problem, there would obviously be more records associated with each staff member and customer.

ODU rentals would like you to automatically process txt files and print the information to the console screen. When you perform this process, ensure that your member variables are private. In addition, be sure to use getter and setter functions to manipulate and print your data. You may print your data in any format as long as it is organized. An example of correct output can be seen below.

 

I C:\Users\Hussam\Desktop\CS250\CarRental\solution\bin\Debug\CarRental.exe
Name
Сar
Salary
Phyllis Ray
Andres Wood
Andy Duncan
Fiesta
Explorer
Camry
50000
55000
45000
Name
Preferred? Car
Bill
Daryl Munoz
Rosie Hughes
Evan Stone
Lisa Henry
Theresa Fields
30
248
1025.95
2010.5
75.55
1
Civic
Аcсord
Camry
Explorer
F150
1
Process returned 0 (Øx0>
Press any key to continue.
execution time : 11.966 s
Transcribed Image Text:I C:\Users\Hussam\Desktop\CS250\CarRental\solution\bin\Debug\CarRental.exe Name Сar Salary Phyllis Ray Andres Wood Andy Duncan Fiesta Explorer Camry 50000 55000 45000 Name Preferred? Car Bill Daryl Munoz Rosie Hughes Evan Stone Lisa Henry Theresa Fields 30 248 1025.95 2010.5 75.55 1 Civic Аcсord Camry Explorer F150 1 Process returned 0 (Øx0> Press any key to continue. execution time : 11.966 s
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Table
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning