Question: An online retailer wants a program that displays the total amount a customer owes, including shipping. The user will enter the total amount due before

An online retailer wants a program that displays the total amount a customer owes, including shipping. The user will enter the total amount due before shipping. The amount to charge for shipping is based on the customer’s membership status, which can be either Standard or Premium. The appropriate shipping charges are shown in Figure 9-42. The program should use two program-defined functions: one to determine the shipping charge for a Standard member and the other to determine the shipping charge for a Premium member. If necessary, create a new project named Advanced23 Project, and save it in the Cpp8\Chap09 folder. Enter your C++ instructions into a source file named Advanced23.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total due in fixed-point notation with two decimal places. Test the program appropriately. 


Total due before Membership type Standard shipping ($) 0-100 Over 100 Shipping ($) 12.99 4.99 Premium 0-49.99 Over 49.99 4.99 Figure 9-42

Total due before Membership type Standard shipping ($) 0-100 Over 100 Shipping ($) 12.99 4.99 Premium 0-49.99 Over 49.99 4.99 Figure 9-42

Step by Step Solution

3.44 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Advanced23cpp include include using namespace std method prototype that accept am... View full answer

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

Document Format (2 attachments)

PDF file Icon

2045_61d6ac343384a_838611.pdf

180 KBs PDF File

Word file Icon

2045_61d6ac343384a_838611.docx

120 KBs Word File

Students Have Also Explored These Related Microsoft Visual C# Introduction Questions!