Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a c + + program that calculates an after - school package for kids between 4 and 1 2 years - old. The program
Write a c program that calculates an afterschool package for kids between and yearsold. The
program should have the following function:
one function to collect and return the childs name.
one function to collect and return the childs age. The age must be between and
inclusive. Any other ages, the program will be terminated and return a message as:
Your child does not qualified of the program! Thank you!
One function asking the user to pick and schedule. The function prompts a message as:
The function returns the picked schedule as or
One function to calculate the afterschool package price using the childs age and picked
schedule as:
Age Member fee
Weekly fee
Add snack
Weekly fee
Schedule
:pm :pm
per day
Schedule
:pm :pm
per day
$
$ $ $
$ $ $
$
$ $ $
$ $ $
Package price before tax Member fee Add snack schedule
Each package must add a NY tax of The NY tax must be
set as a global constant.
Total package price Package price NY Tax
After the calculation, the function returns the total package price.
One function to prompt result as:
The total program price for is $
The main function is used to call and link data from one function to another.
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