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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education