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

Python Assingment1 (2)

The document outlines a series of programming assignments that require users to write Python programs for various tasks, including determining if a number is even or odd, finding the largest of three numbers, and checking if a character is a vowel or consonant. Additional tasks include calculating leap years, assessing product signs of integers, grading based on percentage, determining employee bonuses, calculating discounted prices, and computing Body Mass Index (BMI). Each assignment is designed to enhance programming skills through practical applications.

Uploaded by

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

Python Assingment1 (2)

The document outlines a series of programming assignments that require users to write Python programs for various tasks, including determining if a number is even or odd, finding the largest of three numbers, and checking if a character is a vowel or consonant. Additional tasks include calculating leap years, assessing product signs of integers, grading based on percentage, determining employee bonuses, calculating discounted prices, and computing Body Mass Index (BMI). Each assignment is designed to enhance programming skills through practical applications.

Uploaded by

sanketsutar6061
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment no 1

1.​ Write a program that asks the user to enter an integer and prints whether the number
is even or odd.
2.​ Write a program that prompts the user to enter three numbers and prints the largest
number.
3.​ Create a program that prompts the user to enter a character (alphabet) and prints
whether the character is a vowel or a consonant. Assume the input is a single
character.
4.​ Write a Python program to determine whether a given year is a leap year or not.
5.​ Write a program that prompts the user to enter three integers and prints whether the
product of those numbers is positive, negative, or zero.
6.​ Accept percentage from student and display grade according following data
Fail​ Below 35%
D​ Above 35%
C​ Above 55%
B​ Above 70+
A​ Above 80+
A+​ Above 90%
7.​ Company decided to give bonus to employees based on following criteria
Time period of service Bonus

More than 10 Years 10%

>=6 and <=10 8%

Less than 6 5%
Ask user to enter Salary and year of experience and print net bonus amount.
8.​ Create a program that calculates the discounted price for an item based on its
original price and prints the discounted amount. If the original price is greater than
1000, apply a 10% discount; otherwise, apply a 5% discount.
9.​ Write a Python program that calculates Body Mass Index (BMI) based on a person's
height and weight. Ask the user for their height (in meters) and weight (in kilograms).
Calculate BMI using the formula:
Underweight: BMI < 18.5
Normal weight: 18.5 <= BMI < 25
Overweight: 25 <= BMI < 30
Obesity: BMI >= 30

You might also like