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, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
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 09:30
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
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
English, 25.01.2022 02:30
question
Chemistry, 25.01.2022 02:30
question
History, 25.01.2022 02:30
Questions on the website: 13722361