Assignment # 3 + Lab Task
Assignment # 3 + Lab Task
IF ELSE STATEMENT
Q1. Write a simple program using if else statement to find the positive
and negative number.
Q2. Write a program and the ask the age from the user and identify using
if else statement that if age is greater than 18 or less than 30 then print
You are eligible for this job if not then print you are not eligible for this
job.
Q4. Write a simple program to calculate the gpa of students. If the gpa is
greater than 3.95 then 100% scholarship, if gpa is greater than 3.90 or
less than 3.95 then the scholarship is 75%, if gpa is greater than 3.50 or
less than 3.90 than the scholarship is 50%, if gpa is greater than 3.25 gpa
is less than 3.50 then the scholarship is 25% and if gpa is less than 3.00
then you got 0% scholarship.
Q5. Write a program to find smallest number out of 5 given numbers.
Q6. Write a program to find factorial of number if user enter odd number
and find cube of number if user enter even number.
Deadline: 19/12/2021