Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task - In this project, each member is expected to write one or two of the given functions to manipulate data stored in the text

Task -In this project, each member is expected to write one or two of the given functions to manipulate data stored in the text file given below. The team will be responsible for writing a C++ program implementing a user menu. This menu will be responsible for calling each of the functions in the program. The following text file (or database) is for a car rental system. The file contains a car ID, the make, model, daily rate (in dollars), size (number of seats), and whether or not it has been rented already. The data stored in a file named "cars.txt".

Presentation -On the due date, the entire team will demonstrate this project to the rest of the class. You may prepare PowerPoint slides to do the presentation. You will be allotted up to 15 minutes to present the project.

Report -Your team is to submit a project report (as a Word document) detailing the following:

  • Names of all the team members
  • Brief description of the project
  • Description of the functions used in the program
  • The data used (the .txt file)
  • Screenshot of the code executing
  • Challenges faced while working on this project
  • Lessons learned from this project
  • Areas of future work

Submission- Please submit the text file, the program, PowerPoint slides (if prepared), and the report in Blackboard by 11:59 p.m. on the due date.

cars.txt

ID Make Model Daily Rate Size Is Rented?
10001 Hyundai Accent 24.10 5 No
10002 Chevy Spark 19.20 4 No
10003 Nissan Altima 48.90 5 Yes
10004 Ford Explorer 54.14 7 No
10005 Honda Fit 18.20 5 Yes
10006 Toyota Corolla 20.85 5 No
10007 Toyota Camry 32.40 5 No
10008 Honda Civic 28.80 5 No

Required Functions

  • CreateClassList:To read all of the cars' information from the input file and place all of the information in a linked list. Print the list you create the list.

  • Insert: This will insert a new car at the end of the list. After the insertion, you should indicate the new count of all the cars in the fleet. Finally, print the list after you insert.

  • Delete: You should be able to delete a car's record, given its ID number, from the list. If the car is not in the list, a message should appear indicating that it is not available. Show the new count of the cars after deleting. Then print the list after you delete.

  • Search: Using the car's ID number, you should be able to search for that car in the list. You should return the car's ID number, make, model, daily rate, number of seats, and its availability. If the car is not found in the list, you should print a message indicating so.

  • Update: You should be able to update a car's ID number, make, model, daily rate, number of seats, and its availability. This function should ask the user which car's information they want to update. The user will provide you with the new information. You should show the updated the car's information and print the updated information.

  • Reserve:This will reserve a car given the number of days the car is to be rented out and its ID number. If the car is available, the function should print the total cost for renting the car and update its availability in the list. If the car is not available, the function should print out a message saying that it is unavailable.

  • Print: This function simply prints out the list of cars in the fleet.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions

Question

explain company-wide strategic planning and its four steps

Answered: 1 week ago