1.
Student Grading System:
Imagine you're building a program for a school to assign grades based on student marks.
- If marks are 90 and above, assign Grade A.
- If marks are between 75 and 89, assign Grade B.
- If marks are between 60 and 74, assign Grade C.
- If marks are below 60, assign Grade D.
The program should prompt the user to input the student's marks and display the appropriate grade.
2. Cinema Ticket Pricing:
You're creating a ticket booking system for a cinema hall where ticket prices vary based on the
customer's age.
- Children under 12 years: $5 per ticket
- Adults between 12 and 60 years: $10 per ticket
- Senior citizens above 60 years: $7 per ticket
The program should ask for the user's age and calculate the ticket price.
3. Electricity Bill Calculator:
Create a program for an electricity company to compute monthly bills based on units consumed.
- First 100 units: $1 per unit
- Next 100 units (101-200): $2 per unit
- Above 200 units: $3 per unit
The program should prompt the user to enter the number of units consumed and then calculate and
display the total bill.
4. Online Store Discount Program:
Design a program for an online store to apply discounts based on the purchase amount.
- Purchases above $500: 20% discount
- Purchases between $200 and $500: 10% discount
- Purchases less than $200: No discount
The program should ask the user to input their total purchase amount and display the final amount
after applying any discount.
5. Hotel Room Booking Rates:
You're creating a booking system for a hotel.
- Standard Room (1-3 days): $100 per day
- Deluxe Room (4-7 days): $90 per day
- Suite Room (more than 7 days): $80 per day
The program should prompt the user to input the number of days they want to stay and calculate the
total booking cost based on the duration.
6. Bank Loan Eligibility Check:
Create a program to check if a person is eligible for a loan based on their salary.
- Salary above $30,000: Eligible
- Salary between $20,000 and $30,000: Eligible with co-signer
- Salary below $20,000: Not eligible
The program should prompt the user to enter their salary and display the eligibility result.
7. Gym Membership Fee Calculator:
Design a program for a gym that charges membership fees based on age.
- Age less than 18: $20 per month
- Age between 18 and 40: $35 per month
- Age above 40: $30 per month
The program should ask the user to input their age and display the monthly membership fee.
8. Library Late Fee System:
Develop a program for a library to calculate late fees for returned books.
- 1-5 days late: $2 per day
- 6-10 days late: $5 per day
- More than 10 days late: Membership suspension
The program should ask for the number of late days and display the fine or suspension notice.
9. Blood Donation Eligibility Checker:
Create a program that checks if a person is eligible to donate blood.
- Age must be between 18 and 60
- Weight must be more than 50 kg
The program should prompt the user to enter age and weight, and then display if they are eligible.
10. Movie Recommendation Based on Age:
Write a program that suggests movies based on the user's age.
- Below 13: Suggest animated movies
- 13 to 17: Suggest teen movies
- 18 and above: Suggest action and drama movies
The program should take age as input and suggest the appropriate movie type.
11. Parking Fee Calculator:
Create a program to calculate parking charges.
- Up to 2 hours: $5 flat
- 2-5 hours: $10 flat
- More than 5 hours: $10 + $2 for each additional hour after 5 hours
The program should ask for the number of hours and compute the total parking fee.
12. Online Quiz Grading:
Build a program to grade an online quiz based on score percentage.
- 90% and above: "Outstanding"
- 70%-89%: "Very Good"
- 50%-69%: "Good"
- Below 50%: "Fail"
The program should input the score percentage and print the grade.
13. Water Usage Billing:
Design a program for a municipality to calculate water bill based on usage.
- Up to 50 liters: $0.5 per liter
- 51-100 liters: $0.75 per liter
- Above 100 liters: $1 per liter
The program should input liters used and calculate the water bill.
14. Employee Bonus Calculation:
Create a program to calculate bonus based on years of service.
- More than 10 years: 10% of salary as bonus
- 5-10 years: 5% of salary
- Less than 5 years: No bonus
The program should input years of service and salary, and output the bonus amount.
15. Speed Limit Checker:
Write a program to check if a driver is within the speed limit.
- Speed limit is 60 km/h
- If speed is over 60, display "Over Speeding" with a fine of $50
- If speed is within limit, display "Speed is OK"
The program should ask for the driver's speed and print the appropriate message.
16. E-commerce Free Shipping Check:
Build a program to determine if a customer qualifies for free shipping.
- Purchases over $100: Free shipping
- Purchases below $100: $10 shipping charge
The program should ask the total purchase amount and show shipping cost.
17. Academic Scholarship Award:
Create a program to check if a student qualifies for a scholarship.
- GPA 3.8 and above: Full Scholarship
- GPA between 3.5 and 3.79: Half Scholarship
- GPA below 3.5: No Scholarship
The program should input the GPA and output the scholarship result.
18. Voting Eligibility Program:
Develop a program to check voting eligibility.
- Age 18 and above: Eligible
- Below 18: Not eligible
The program should input the age and display the eligibility status.
19. Temperature Conversion and Check:
Create a program that accepts temperature in Celsius.
- Convert it to Fahrenheit.
- If Fahrenheit is more than 100F, display "High Temperature".
The program should input temperature and perform conversion + check.
20. Marathon Participation Check:
Design a program to check eligibility for a marathon.
- Participants must be 18 years or older
- Must have completed a 10 km practice run within 90 minutes
The program should input age and practice run time and determine eligibility.