Question: Add functionality to retrieve a car record either by ID, Model, or price range. Add menu options to retrieve a car record by a car

Add functionality to retrieve a car record either by ID, Model, or price range.

Add menu options to retrieve a car record

by a car by Id or Model name

a user should be able to search by ID or by item name

create only one submenu option for searching

the search should not be case sensitive (for example, a user may enter sTRolleR or STROLLER);

store items in all lower/upper case to expedite the search

write one search function that can search by ID and name and goes through the array of structs/objects only once

allow partial search; must return all matching items (for example, a user can enter "roll" to search for a "stroller"; return "rolls", "stroller"); see C++ find() function

show the entire record if found or an appropriate message if not

by a price range

user should be able to enter the target price and the range; for example target price: 5000 range %: 20

20% of 5000 is 1000, display all valid car records with a price at least $4000 (5000-1000) and no more than $6000 (5000+20%)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!