Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Submission Guidelines: - Add your full name, and student ID as comments at the beginning of the submitted file. Students who submit code files that

image text in transcribed
Submission Guidelines: - Add your full name, and student ID as comments at the beginning of the submitted file. Students who submit code files that contain compilation errors will get ZERO for the part that has a compilation error. - Submit your C++ source code file (.cpp) only. . Problem Statement: An online car store has 6 kind of cars in its stores, each cars has a model, a ID number, a price, and number of cars of this model in the store(count). 1- Define the following four one-dimensional parallel arrays to store books information in them. An array of strings to store books names' and initialize it with the following values: "Toyota", "BMW", "Mercedes", "Hyundai", "Kia", "Porsche An array of integers to store cars number and initialize it with the following values: 134257, 829710, 195395, 813074, 874159, 329710,309553. An array of integers to store cars prices' and initialize it with random numbers between 2 and 6. An array of integers to store the number of each car and initialize it with random numbers between 0 and 4 2- Print the content of the 4 arrays in a tabular format as follows: Model ID Price Count 3- Display the information of the car that has the highest price information (Model ID, Price, Count) in a well-formatted table. Note: If more than one car has the highest price print the information of the first car in the arrays with the highest price. 4- Sell a car. Ask the user to enter the ID of the car he wants to buy, search for cars by ID. If the car is found in the list and the count of that car is greater than zero then decrease the count for that car by one

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

What sort of leadership-development process would you recommend?

Answered: 1 week ago

Question

=+(2,7", P+ ) is the completion of (, , P).

Answered: 1 week ago