Question: ASAPP PLEASE FOR THUMBS UP Problem Statement: . An online car store has 6 kind of cars in its stores, each cars has a model,
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
Get step-by-step solutions from verified subject matter experts
