Question: Programming Exercise #ex 7_1 1. Create a new text file named ex7_1.cpp with the following two lines. Be sure to replace the string YourFullName with

 Programming Exercise #ex 7_1 1. Create a new text file named

Programming Exercise #ex 7_1 1. Create a new text file named "ex7_1.cpp" with the following two lines. Be sure to replace the string "YourFullName" with your real full name. /*Filename: ex7_1.cpp Student: YourFullName / 2. Next to the above two lines, write a C++ program that will ask the user enter a number (such as 74.36). Then, use a well-developed "nested" if structure to return the actual price after discount according to the following table. Use the printf(" function to display the rounded output with a dollar sign (S) as prefix. Be sure to allow two digits next to the decimal point. [Hint: ".26") Listing Price Discount Rate

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 Databases Questions!