Question: 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

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 Use output (stream) manipulators: 1 digits after the decimal point Sample Output1: Enter the number of subjects in the portrait: 1 Do you want a fancy background (y)? Y Do you want an appointment date (y)? y The price is: $120.0 3 $150 4 $160 5 or more $165 Use output (stream) manipulators: 1 digits after the decimal point Sample Output: Enter the number of subjects in the portrait: 1 Do you want a fancy background (y)? y Do you want an appointment date (y)? y The price is: $120.0 Sample Output: Enter the number of subjects in the portrait: 6 Do you want a fancy background y/th? y wyty Do you want an appointment date (y)? n The price is: $181.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
