Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASAPP PLEASE FOR THUMBS UP Problem Statement: . An online car store has 6 kind of cars in its stores, each cars has a model,

ASAPP PLEASE FOR THUMBS UP
image text in transcribed
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

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

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

financial information does not demonstrate consistency when

Answered: 1 week ago

Question

Does it avoid use of underlining?

Answered: 1 week ago