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

Python Programs for Basic Calculations

The document contains a list of 15 Python programming tasks that involve user input and various calculations. Tasks include inputting personal information, performing mathematical operations, converting temperature units, calculating salaries and bills, and applying discounts and taxes. Each task is designed to demonstrate different programming concepts and functionalities in Python.

Uploaded by

shramishtha51
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)
23 views1 page

Python Programs for Basic Calculations

The document contains a list of 15 Python programming tasks that involve user input and various calculations. Tasks include inputting personal information, performing mathematical operations, converting temperature units, calculating salaries and bills, and applying discounts and taxes. Each task is designed to demonstrate different programming concepts and functionalities in Python.

Uploaded by

shramishtha51
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

Write python programs using input statement:

1. WAP (write a program ) to input your name, fname, mname dob, address and display
2. WAP to input 2 numbers and perform all the mathematical operations
3. WAP to input temperature in centigrade convert it into Fahrenheit
4. WAP to input temperature in Fahrenheit and convert it into Centigrade
5. WAP to prove that (a+b)2 = a2+2ab+b2
6. WAP to input weight in quintals convert it into kilograms, grams, milligrams
7. WAP to input time in hours convert it into minutes , seconds
8. WAP to input name of three items, Quantity, and rate find bill amount print all details along
with customer name
9. Implement the above program and give 15% discount on bill amount and find net amount.
10. WAP to input employee name and basic salary provide following allowance on basic salary
a. HRA 25% of basic
b. DA 80% of basic
c. TA 15% of basic
d. Find NETSALARY where NETSALARY = basic+HRA+DA+TA
e. Deduct 10% PF(provident fund) from NETSALARY
f. Find GROSS where GROSS=NETSALARY-PF
11. WAP to find simple interest and find monthly installments according to entered number of
years, input customer name, loan amount, rate of interest and time period display all the details
as output
12. WAP to input name, fname, mname, admno, marks of 4 subjects find total and percentage, print
mark sheet
13. Implement the program no. 8 add 18% GST on bill amount GST will be calculated as 9% CGST
and 9% SGST print net bill display all details
14. WAP to print electric bill enter consumer name, BP number, previous units consumed present
unit consumed, find total unit consumed, per unit rate is Rs. 2.50, find bill amount add following
charges
a. 10 % meter charges on bill amount
b. 2% power grid charges on bill amount
c. 2.5% maintenance charges on bill amount
d. Find net bill charges
15. WAP to print telephone bill , input customer name, telephone number, previous calls, present
calls, provide 50 free calls , find total calls , find charges , per call charges is Rs 1.5 , add 12.5%
service tax on charges , 5% line maintenance charges and find net payable amount . print all
details .

You might also like