Question
Write a program to help a gym center to automate its registration system. The program should do the following: Define the following structure: struct packageType
Write a program to help a gym center to automate its registration system. The program should do the following:
Define the following structure:
struct packageType
{
string Package_Name;
double Package_Charges;
};
Show the customer the different packages offered by the gym center.
Assume that the gym center offers the following packages:
1 hour (Morning) = $15.45
2 Hours (Morning) $20.45
1 Hour (Evening)= $18.45
2 Hours (Evening)= $25.00
More than 2 hours (Morning or Evening)= $30.00
Your program must contain the following functions:
Function showPackage: This function shows the above packages offered by the Gym Centre.
Function getData: This function gets the data (Package_Name; Package_Charges) from a user and store it using the above structure packageType.
Function CalBill: This function calculates and prints the bill of the selected package. (the billing total amount must include 10% tax.)
A sample output is as follows:
Welcome to Jimmy's Fitness Centre
You have been registered for Package 1 hour (Morning) which costs 2473.93 PKR
Tax is 494.78
Total bill is 2968.71
Assume that 1 Dollar=160.12 PKR and convert Dollar ($) into rupees (PKR) to calculate the bill
Note: VALUES/ARRAYS TO THE ABOVE FUNCTIONS MUST BE PASSED BY REFERENCE
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