0% found this document useful (0 votes)
48 views3 pages

Computer Project

Uploaded by

Satyam Mukherjee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views3 pages

Computer Project

Uploaded by

Satyam Mukherjee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Project

Python
Project: The Healthy Times health and fitness club has
announced discounts for its membership holders. The
club provides three types of memberships - Gold,
Diamond and Platinum. The membership codes for
Gold, Diamond and Platinum are 1, 2 and 3
respectively. The club also offers healthy meal plan for
its members - Type A, Type B. The cost of meal plan is
Type A - Rs. 250 per day and Type B - Rs. 350 per day.
Create a python program that will accept the Name of
Customer, Membership Code, Meal Plan, and Number
of days for which the customer wants to opt for the
meal plan.

Membership/ Gold Diamond Platinum


Meal Plan
Type A 10% 15% 20%
Type B 15% 20% 25%
Healthy Times
Input:
name=str(input("Enter Customer Name:"))

discount_type=str(input("Enter the type of Meal Plan:"))

cost_of_type_A=250

cost_of_type_B=350

if(discount_type=="A" or discount_type=="B"):

membership_code=int(input("Enter the Membership Code:"))

number_of_days=int(input("Enter the No. of Days:"))

if(membership_code==1):

if(discount_type=="A"):

amt=number_of_days*cost_of_type_A

disc=0.1*amt

else:

amt=number_of_days*cost_of_type_B

disc=0.15*amt

print("Bill Amount:",amt)

print("Discount:",disc)

print("Payable Amount:",amt-disc)

if(membership_code==2):

if(discount_type=="A"):

amt=number_of_days*cost_of_type_A

disc=0.15*amt

else:

amt=number_of_days*cost_of_type_B

disc=0.2*amt

print("Bill Amount:",amt)

print("Discount:",disc)
print("Payable Amount:",amt-disc)

if(membership_code==3):

if(discount_type=="A"):

amt=number_of_days*cost_of_type_A

disc=0.2*amt

else:

amt=number_of_days*cost_of_type_B

disc=0.25*amt

print("Bill Amount:",amt)

print("Discount:",disc)

print("Payable Amount:",amt-disc)

Output:
Enter Customer Name:Satyam

Enter the type of Meal Plan:B

Enter the Membership Code:3

Enter the No. of Days:28

Bill Amount: 9800

Discount: 2450.0

Payable Amount: 7350.0

Project Submitted by:

Name – Satyam Mukherjee

Class – VIII , Section – A , Roll No. – 28

You might also like