Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question No. 04 (CLO-2) (10) Write a program to help a gym center to automate its registration system. The program should do the following: O

image text in transcribed

Question No. 04 (CLO-2) (10) Write a program to help a gym center to automate its registration system. The program should do the following: O Define the following structure: struct package Type { string Package_Name; double Package_Charges; }; o Show the customer the different packages offered by the gym center. o 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 at least 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. (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

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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions