Question 1: Discount Calculation Based on Age and Purchase Amount
Write a program that calculates a discount based on the following conditions:
If the customer is under 18:
o If the purchase amount is greater than 1000, give a 10% discount.
o Else, give a 5% discount.
Else (if the customer is 18 or older):
o If the purchase amount is greater than 5000, give a 20% discount.
o Else, if the purchase amount is between 2000 and 5000, give a 15%
discount.
o Else, if the purchase amount is below 2000, give a 5% discount.
Question 2: Student Marks and Attendance Evaluation
Write a program that checks the eligibility of a student for an award based on the
following criteria:
If the student’s marks are above 90:
o If the attendance is above 75%, print "Eligible for award".
o Else, print "Not eligible due to low attendance".
Else:
o If the marks are above 50 but less than or equal to 90:
If the attendance is above 90%, print "Eligible for award".
Else, print "Not eligible due to low attendance".
o Else, print "Not eligible due to low marks".
Question 3: Salary Bonus Calculation
Write a program to calculate the bonus based on the employee's experience and
performance rating:
If the experience is greater than 5 years:
o If the performance rating is "Excellent", print "Bonus: 25%".
o Else, print "Bonus: 10%".
Else (if the experience is 5 years or less):
o If the performance rating is "Excellent", print "Bonus: 20%".
o Else, if the rating is "Good", print "Bonus: 10%".
o Else, print "Bonus: 5%".
Question 4: Salary Deduction Based on Tax Brackets
Write a program that calculates tax deductions based on the salary:
If the salary is more than 100,000:
o If the person is married, deduct 25% tax.
o Else, deduct 30% tax.
Else (if the salary is less than or equal to 100,000):
o If the salary is more than 50,000, deduct 10% tax.
o Else, if the salary is less than or equal to 50,000, deduct 5% tax.
o Else, print "No tax".
Question 5: Eligibility for Driving License
Write a program to determine eligibility for a driving license:
If the age is 18 or above:
o If the person has passed the driving test, print "Eligible for license".
o Else, print "Not eligible due to driving test failure".
Else:
o If the age is 16 or above:
If the person has parental consent, print "Eligible for temporary
license".
Else, print "Not eligible due to lack of parental consent".
o Else, print "Not eligible due to age".
For PsuedoCode
1. Even or Odd Check
Write a program that checks if a number is even or odd.
2. Positive or Negative Check
Write a program that checks if a number is positive or negative.
3. Grade Check
Write a program that checks if the student passed or failed based on their marks.
Assume passing marks are 50 or above.
4. Check if Number is Greater Than 10
Write a program that checks if a number is greater than 10.
7. Check Whether Number is Zero
Write a program that checks if a number is zero.