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.
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.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images