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

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
Get step-by-step solutions from verified subject matter experts
