Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please answer this question as fast as possible c++ Problem Statement: An online book store has 7 books in its stores, each book has a
please answer this question as fast as possible c++
Problem Statement: An online book store has 7 books in its stores, each book has a name an ISBN, a price, and several copies. 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: "The Little Prince", "Pinocchio", "Two Cities", "The Hobbit", "The Alchemist", "Harry Potter, "Heidi" An array of integers to store books ISBNs' and initialize it with the following values: 1887007, 8297107, 1953095, 8144074, 8741159, 3829710, 5309553. An array of integers to store books prices' and initialize it with random numbers between 2 and 7. An array of integers to store the number of copies of each book and initialize it with random numbers between 0 and 4 . 2- Print the content of the 4 arrays in a tabular format as follows: Name ISBN Price Copies 3- Display the information of the book that has the highest price information (Name, ISBN, Price, Copies) in a well-formatted table. Note: If more than one book has the highest price print the information of the first book in the arrays with the highest price. 4- Sell a book. Ask the user to enter the ISBN of the book he wants to buy, search for books by a ISBN. If the book is found in the list and the number of copies is greater than zero then decrease the number of copies for that book by oneStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started