subject

Write a C++ program to aid the DeAnza Bookstore in estimating its business for next quarter. Experience has shown that sales depend on whether a book is required or suggested, and on whether or not it has been used before. A new, required book will sell to 90% (.90) of expected enrollment, but if it has been used before only 65% of the expected enrollment will buy it. Similarly, 40% of the expected enrollment will buy a newly suggested book, but only 20% will purchase a previously suggested book. INPUT
Your program is to prompt the user for:
- the book's 10 digit ISBN number (store as a string)
- the list price per copy
- the expected class enrollment
- code of 'R'for required text or code of 'S' for suggested text
- code of 'N' for a new text or code of 'O' for a text that has been used the previous quarter
CALCULATE
Calculate the number of copies needed and the profit if the store pays 80% of list (use global define for this). For the number of books to order, round up to the nearest whole book. Use one function to calculate number of books, one function to calculate the profit, and one function to output.
OUTPUT A sample run might look like this:
Enter book number: 0755798652
Enter price per copy: 34.98
Enter expected class enrollment: 35
Enter 'R' if required or 'S' if suggested: r
Enter 'N' if new or 'O' if not a new text: O
ISBN: 0755798652
Copies Needed: 23
Profit: $ 160.91
TEST DATA
0755798652,34.98,35,R, O
3453456784,23.95,100,R, N
5677655673,54.50,40,R, O
2462462464,5.95,40,S, O
8953647888, 65.99, 35, N, Y

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
You know the right answer?
Write a C++ program to aid the DeAnza Bookstore in estimating its business for next quarter. Experie...
Questions
question
Mathematics, 08.01.2021 06:30
question
Mathematics, 08.01.2021 06:30
question
Mathematics, 08.01.2021 06:30
question
Mathematics, 08.01.2021 06:30
question
Mathematics, 08.01.2021 06:30
question
Mathematics, 08.01.2021 06:30
question
Chemistry, 08.01.2021 06:30
Questions on the website: 13722366