Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Create C++ program to aid the DA Bookstore in estimating its business for next quarter

Create C++ program to aid the DA Bookstore in estimating its business for next quarter

Computer Science

Create C++ program to aid the DA Bookstore in estimating its business for next quarter. Experience has shown that sales depend on whether a book is Required(R) or Suggested(S), and on whether or not it is a Continuing(C) (used before) text or a New(N) selection. A New(N) and Required(R) book will sell to 90% (.90) of expected enrollment, but if Continue(C) to use the same text and it is Required(R) only 65% of the expected enrollment will buy it. Similarly, 40% of the expected enrollment will buy a newly(N) Suggested(S) book, but only 20% will purchase a Continuing(C), Suggested(S) text.
 
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 newly suggested text or code of 'C' for a continuing(repeated) 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 price, book store's cost, (use global #define macro for this). For the number of books to order, round to the nearest whole book quantity.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: 31
Enter 'R' if required or 'S' if suggested: r
Enter 'N' if new or 'C' if not a new text: C
ISBN: 0755798652
Copies Needed: __
Profit: $ ________


Test Data: Execute the program five times and each time copy and paste the output to the bottom of the program.
Set 1 - 0755798652, 34.98, 32, R, C
Set 2 - 3453456784, 23.95, 100, r, N
Set 3 - 5677655673, 54.50, 40, R, C
Set 4 - 2462462464, 5.95, 40, s, C
Set 5 - 8953647888, 65.99, 35, N, Y  ; this is NOT a typo

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions