Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The fee input text file contains: 8.50 12.53 18.37 16.84 23.00 Objective: You must use at least two user defined functions to receive credit for
The fee input text file contains:
8.50 12.53 18.37 16.84 23.00Objective: You must use at least two user defined functions to receive credit for this assignment. 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 Kid's corner Glass fusing Mosaic Canvas painting Ladies' night Session Fee ($) 8.50 12.53 18.37 16.84 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 kid's 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 user's 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started