0% found this document useful (0 votes)
8 views1 page

Python Programs for Discounts and Bills

The document contains a series of programming tasks in Python, including calculating discounts on mobile prices, computing electricity bills based on different unit rates, converting temperatures between Celsius and Fahrenheit, creating a calculator, and using a match case system to display city names based on user input. Each task requires user input and specific calculations or conversions. The document outlines the criteria and rates for each task clearly.

Uploaded by

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

Python Programs for Discounts and Bills

The document contains a series of programming tasks in Python, including calculating discounts on mobile prices, computing electricity bills based on different unit rates, converting temperatures between Celsius and Fahrenheit, creating a calculator, and using a match case system to display city names based on user input. Each task requires user input and specific calculations or conversions. The document outlines the criteria and rates for each task clearly.

Uploaded by

sachikabhatia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Q1.

XYZ shop is offering a discount on a mobile as per given below


PRICE Discount
upto 10000 15%
10,000-20000 20%
above 20000 30%

Write a python program to accept the price (P) of a mobile from user ,
calculate the discount (D) based on the above criteria and print the payable
amount(P-D) after awailing the discount

Q2. Write a program in python to calculate the electricity bill according to


the following criteria:

Unit Rate
upto 100 Rs.10 per unit
next 200 Rs.20 per unit
above 300 Rs.25 per unit

Accept Value from user and calculate the electricity bill

Q3. Write a program in python to calculate the electricity bill according to


the following criteria:

Unit Rate
upto 100 Rs.0.8 per unit
next 200 Rs.1 per unit
above 300 Rs.2.5 per unit

Accept Value from user and calculate the electricity bill

Assume that a meter rent on 500 is charged and added to the total amount

Q4. Write a menu driven program to accept the temperature celsius and convert that
into farenheit and vice versa
Q5. Write a menu driven program for a calculator
Q6. Using the match case system in Python, write a program to display the name of
the city according to the users choice. d- Delhi M-
K-Kolkata C- Chennai

You might also like