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%)
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
Solved in 4 steps with 3 images