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

Major Assignment

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)
72 views1 page

Major Assignment

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

Centre for Data Science

Institute of Technical Education & Research, SOA, Deemed to be University

Applied Computational Thinking (CSE 1401)


M AJOR A SSIGNMENT-1: BASED ON COMPUTER SCIENCE FUNDAMENTALS ,
COMPUTATIONAL THINKING , P YTHON BASICS , AND LOGICAL REASONING TO
SOLVE PROBLEMS

1. Write a program to calculate the electricity bill ( accept number of unit from user) according to the
following criteria:

• 0-100 Units : No charge


• Next 100 Units: Rs. 5 per Unit
• After 200 Units: Rs. 10 per Unit

(a) Write a python program to calculate the electricity bill for the user.
(b) Print the usage of electric Units and break-up of the user’s bill.
(c) Categorize the usage of electricity for the user as the following:
• 0-150 Units : Low consumption
• 151 - 200 Units: Average consumption
• After 200 Units: High consumption
and print a warning message.
(d) If the usage shows a high consumption alert, then give a 10% discount on the bill.
(e) Compare bills for two users and print bill amount of the highest consumer.

You might also like