Cash-back offer from May 2nd to 7th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 15.00

Create a program that will assist users who want to rent a car | Solution

Question posted by
Online Tutor Profile
request

Description:


For this project, you are to create a program that will assist users who want to rent a car. You are given a datafile with 10 different cars, and you must read in all of the car data from the file and store it in an array of structs. You must also create a menu with the functionality defined below. Although an example file is provided, for grading purposes your project will be tested against a different test file that will not be provided to you beforehand. Our test file will be in the same format as the example file.

The RentalCar struct will contain the following data members:
- make, a C-style string
- model, a C-style string
- year, an int
- price, a float (price per day)
- available, a bool (1 = true; 0 = false; try to display true/false using the "boolalpha" flag, optional)

The menu must have the following functionality:
- Read ALL data from file.
- Print out ALL data for all of the cars.
- Estimate car rental cost - prompt the user for a car number (first car in file should be
represented to the user as #1), and the number of days to rent the car.
- Find the most expensive car.
- Print out ONLY the available cars.
- Exit program.

The following minimum functionality and structure is required:
- Ask the user for the input file name.
- The list of cars must be stored in an array of structs.
- Use character arrays (i.e., C-style) to hold your strings. No string data type!
- Write multiple functions (Hint: each menu option should be a function).
- You can use pass by reference in your function.
- Write your own string copy, string compare (or other) functions as needed.
- The other functionality and structure of the program should remain the same as Project #1, including writing to screen and file and restrictions on string libraries, global variables and constants, etc.

Available Answer
$ 15.00

[Solved] Create a program that will assist users who want to rent a car | Solution

  • This solution is not purchased yet.
  • Submitted On 09 Jun, 2017 12:29:33
Answer posted by
Online Tutor Profile
solution
This Solution is rated A+ previously,if yo...
Buy now to view the complete solution
attachment
Attachment
Other Similar Questions
User Profile
termp...

U5 Written.docx U5_Written Create a document that specifies the hardware and software co

U5 Written.docx U5_Written Create a document that specifies the hardware and software components of the computer and justify reasons for the choice of each component. State any assumptions that you need to make to create a ...
User Profile
termp...

BUS571WK4Assignment.docx Create a Vision BUS 575 A vision is necessary for change, t

BUS571WK4Assignment.docx Create a Vision BUS 575 A vision is necessary for change, the organization and its future must clearly know what is expected to come from this change and how it will improve the organization and...
User Profile
Acade...

Create a security infrastructure design document

Overview: Now that you’re super knowledgeable about security, let's put your newfound know-how to the test. You may find yourself in a tech role someday, where you need to design and influence a culture of security within a...
User Profile
termp...

DAT305_wk1_Create_a_Table_of_Sorting_Algorithms.docx Create a Table of Sorting Algorith

DAT305_wk1_Create_a_Table_of_Sorting_Algorithms.docx Create a Table of Sorting Algorithms DAT 210 NAME Description Benefits and uses Disadvantages Bubble Sort Time complexity: O(N^2) This algorithm works by repea...
User Profile
termp...

RBP1RBP1_TASK_1.docx Technology Applications in Healthcare â C427 A.Create a plannin

RBP1RBP1_TASK_1.docx Technology Applications in Healthcare – C427 A.Create a planning, organizing, directing, controlling (PODC) HIPAA training model by doing the following: 1.Describe how you would teach the hosp...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35