Question: Text Book: Starting Out With C++ Please do this work within chapters: 1 to 4. Thank you. 2. Write a program to determine the price
Text Book: Starting Out With C++
Please do this work within chapters: 1 to 4. Thank you.
2. Write a program to determine the price for a portrait sitting. The price is determined by subjects in portraits, background chosen and sitting appointment day.
The fee schedule is shown below.
Fancy background and sitting appointment cost an extra 10 percent more than the base price.
| Subjects in Portrait | Base Price |
| 1 | $100 |
| 2 | $130 |
| 3 | $150 |
| 4 | $160 |
| 5 or more | $165 |
Sample Output1:
Enter the number of subjects in the portrait: 1
Do you want a fancy background (y/n)? y
Do you want an appointment date (y/n)? y
The price is: $120
Sample Output2:
Enter the number of subjects in the portrait: 6
Do you want a fancy background (y/n)? y
Do you want an appointment date (y/n)? n
The price is: $181.50
Submit:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
