Question: C++ Program, need help, i dont want to use arrays for it and also need to figure out how to make the loop work. only

C++ Program, need help, i dont want to use arrays for it and also need to figure out how to make the loop work. only need one other function aside from the main function and that is the one for the file.
Write a C++ program that will calculate the total amount of moneyfor book sales at an online store. For each sale, your program

 
 

Write a C++ program that will calculate the total amount of money for book sales at an online store. For each sale, your program should ask the number of books sold and then the price for each book and the shipping method ('S' for standard shipping and 'E' for expedited shipping). The program will produce a bill showing the subtotal, the sales tax, the discount, the shipping charge, and the final total for the sale. All receipt information ("Subtotal... Total") is to be printed both to the terminal and an output file named "receiptLog.dat". To receive full credit for output, you must pass your output file stream (by reference) to a function and call this function where necessary. The program will continue processing the next book sale until the number of books sold is zero. If the user enters zero books in the sale, the program should end. Sales tax is calculated on the subtotal and is 5%. The discount is also calculated on the subtotal. The store offers no discount if the subtotal is less than $50, 10% discount if subtotal if $50-$100, and 15% discount if the subtotal is above $100. The store will charge $4.99 for standard shipping and $12.99 for expedited shipping.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!