Menu

[Solved] C Programming Question Please Help Write C Program Help Bookstore Process Book Sales Progr Q37206506

C++ programming Question

Please Help

Write a C++ program to help a bookstore process their booksales. Your program should display a full list of the booksavailable for purchase along with the price and the amount left instock in form of a menu. The list of books for your menu and theirprices is entirely up to you. Your program should allow thecustomer select how many different books they want off the menu. Acustomer can select a maximum of four(4) different books from themenu, but any amount of copies of the selected book(s) can beordered, so long as they are in stock. If the customer orders anamount of copies that exceeds the current stock amount, it shoulddisplay a message informing them of the problem and then processthe number of copies as the amount left in stock. For example, ifthere are only 6 copies of C++ Book, and the customer orders 10, itshould display a message informing them of the issue and that 6copies will be processed by default. Your program should get theorder from the customer, calculate the final total, including tax(take tax as 6.5% of the total), and then print a receipt to anoutput file called “receipt.txt”. The receipt should contain; thelist of books ordered, the amount of each book and total, the tax,and the final total. Ballack’s Bookstore (7) Harry Potter and thePrisoner of Azkaban $350.00 (4) Percy Jackson and the Olympians:The Last Olympian $160.00 (5) Dark Chronicles: Apollymi’s Wrath$500.00 Tax $48.48 Total $1058.48 You can approach this project inyour own unique way, and include as many functions as you desire,but your project should contain at least the following; • 5functions o A Display Menu function that has a welcome line anddisplays at least 5 menu items, their prices and the amount instock o A function that handles the customer ordering one book offthe menu o A function that handles the customer ordering two booksoff the menu o A function that handles the customer ordering threebooks off the menu o A function that handles the customer orderingfour books off the menu • Make use of Files (mainly the outputfile) • Use selection statements. Format your output using coutfunctions or special commands (like /n, /t, /b, ……). It shouldfollow the format above, arranged orderly. Extra Credit (Worth 30points towards your test) Add a function to handle 5 books beingordered Modify your entire program so the customer has a choice onwhether to process the default amount of items in stock or not whenthey order more items than is available. For example, if thecustomer orders an amount of copies of books that exceeds thecurrent stock, your message should display and also give thecustomer a choice on whether to continue with the defaulttransaction or not. If the customer agrees, it is processed, if thecustomer disagrees, the sale of that book alone is notprocessed

Expert Answer


Answer to C++ programming Question Please Help Write a C++ program to help a bookstore process their book sales. Your program shou… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *