185k views
15 votes
1. Write a programme to print the Fees Receipt of English High School Required Inputs Name of the Student Monthly Tuition Fees Monthly Transport Fees No. Of Month Output Name of the Student Monthly Tuition Fees Monthly Transport Fees Total Fees VAT Fees Amount to be paid Thank you message Sample Output is given below

1 Answer

5 votes

Answer:

In Python:

sname = input("Name: ")

tuition = float(input("Monthly Tuition: "))

transport = float(input("Monthly Transport: "))

months = int(input("No. of Months: "))

print("Student Name: "+sname)

print("Monthly Tuition: "+str(tuition))

print("Monthly Transport: "+str(transport))

fees = (transport + tuition) * months

print("Total Fees: "+str(fees))

VAT = 0.00

print("VAT: "+str(VAT)+"%")

amount = fees - VAT*fees/100

print("Amount to pay: "+str(amount))

print("Thank you...")

Step-by-step explanation:

The program was written in Python

This gets the student's name

sname = input("Name: ")

This gets the student's monthly tuition fee

tuition = float(input("Monthly Tuition: "))

This gets the student's monthly transport fee

transport = float(input("Monthly Transport: "))

This gets the number of months

months = int(input("No. of Months: "))

This prints the student's name

print("Student Name: "+sname)

This prints the student's monthly tuition fee

print("Monthly Tuition: "+str(tuition))

This prints the student's monthly transport fee

print("Monthly Transport: "+str(transport))

This calculates the total fee

fees = (transport + tuition) * months

This prints the total fees

print("Total Fees: "+str(fees))

Here, we assume that VAT is 0%

VAT = 0.00

This prints the assumed VAT

print("VAT: "+str(VAT)+"%")

This calculates the total payable fee

amount = fees - VAT*fees/100

This prints the total payable fee

print("Amount to pay: "+str(amount))

This prints a thank you message

print("Thank you...")

User Anga
by
3.9k points