Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions