0% found this document useful (0 votes)
2 views

pythoncode

The document outlines a series of programming tasks that involve basic calculations and data input/output operations. Tasks include calculating salaries with various components, determining week and month names, computing averages and discounts, performing arithmetic operations, and analyzing integers. The document serves as a guide for implementing various functions in programming related to mathematics and user input.

Uploaded by

hs.ghai1980
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

pythoncode

The document outlines a series of programming tasks that involve basic calculations and data input/output operations. Tasks include calculating salaries with various components, determining week and month names, computing averages and discounts, performing arithmetic operations, and analyzing integers. The document serves as a guide for implementing various functions in programming related to mathematics and user input.

Uploaded by

hs.ghai1980
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 34

Q1) Input salary and calculate total salary with hra, da and print total

salary
Q 2- Input salary and calculate commission and print total salary.
Q 3- Enter week day and print week day name.
Q 4- Enter month and print month name.
Q 5- Enter marks of two subjects and calculate average marks to give
remarks.
Q 6- Enter quantity and price of product to calculate discount and
net price.
Q 7- Input salary and calculate hra, da, pf accordingly and print gross
and net salary.
Q 8- Menu driven program for arithmetic operations for two
numbers.
Q 9- Menu driven program to calculate area or perimeter of a
rectangle.
Q 10- Menu driven program to input number and calculate suitable entered
power.
Q 11- To input number and print positive, negative, zero accordingly.
Q 12- To find the sum of 1,2,3….,10.
Q 13- To calculate the sum of 10,20, 30……,100.
Q 14- Input 10 integers and calculate their sum.
Q 15- Input 10 integers and calculate the sum, sum of odd, sum of
even.
Q 16- To input 10 integers and find the largest.
Q 17- To input 10 integers and find the smallest.
Q 18- To input 10 integers and find the sum of integers divisible by
10.
Q 19- Input integer and calculate factorial.
Q 20- Input integer and print the table of the integer.
Q 21- To input sides of triangle and print equilateral, isosceles,
scalene accordingly.
Q 22- Menu driven program to calculate volume of sphere or
cylinder.
Q 23- Enter first name and last name and print full name.
Q 24- Enter percentage and give remarks.
Q 25- Enter integer and print table using for function.
Q 26- To input character and display uppercase or lowercase.

You might also like