Question: You are a software developer and your current project is to implement a software for a pottery painting studio. This studio offers various services with

You are a software developer and your current project is to implement a software for a pottery painting studio. This studio offers various services with different session fees as listed below: Service Session Fee ($) Kids corner 8.50 Glass fusing 12.53 Mosaic 18.37 Canvas painting 16.84 Ladies night 23.00 The program prompts user to enter the number of sessions for each service and reads the fees from an input text file named fee.txt. The program will calculate the total earnings based on the session fee and number of sessions of service. Design an algorithm and write a C++ program that includes two functions as follow: 1. A void function to prompt the user to input the following: Number of kids corner sessions sold Number of glass fusing sessions sold Number of mosaic sessions sold Number of canvas painting sessions sold Number of ladies night sessions sold The program validates the users input. The number of sessions must be greater than or equal to zero. 2. A value returning function that calculates and returns the earnings for the pottery painting studio. The program will output the results to the screen as illustrated in the sample runs bellow.
Sample Run: Welcome to Pottery Painting Studio Enter the number of kid's corner sessions sold: 1 Enter the number of glass fusing sessions sold: 1 Enter the number of mosaic sessions sold: 1 Enter the number of canvas painting sessions sold: 1 Enter the number of ladies night sessions sold: 1 Total earnings are: $ 79.24 Process returned o (@xo) execution time : 4.138 S Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
