Pseudo Code for Practice
Suggestion: Summer-2025 (Semester Final)
Assignment:01 (Changed) MTE 0613-1105
Deadline: 26-10-2025
Full Marks: 20
1. Dhaka City’s water authority uses a tiered pricing model for household water consumption:
• Up to 50 liters: 0.50 tk/per liter
• 51–100 liters: 0.75 tk/per liter
• Above 100 liters: 1.00 tk/per liter
Design a pseudocode for the system that automatically calculates the monthly water bill for
each household based on their usage.
2. You are planning a road trip from Dhaka to Cox’s Bazar, covering a total distance of 400
km. Your car’s fuel efficiency is 15 km per liter. However, the price per liter of fuel changes
daily, and you want to estimate your total fuel cost based on a list of daily prices. Write
pseudocode to estimate the total fuel cost for the trip, assuming you drive equal distance
each day and fuel prices vary.
3. A university wants to automate its student result evaluation process. The passing criteria
are:
• The average score across all subjects must be ≥ 40
• No individual subject score can be below 35
Design a pseudocode-based solution that evaluates whether a student passes or fails based
on their subject scores.
4. A bank wants to help customers visualize how their fixed deposit will grow over time using
compound interest. Design a pseudocode-based solution that calculates and displays the
future value of a fixed deposit using compound interest.
5. You have installed smart meters to monitor daily energy consumption for your fan,
refrigerator, and lights. Each device records its usage in kilowatt-hours (kWh) per day. You
want to estimate the total energy used daily and project the monthly electricity cost. Design
a pseudocode to calculate the total daily energy consumption and estimate the monthly cost
based on a given rate per kWh.
6. Your fitness app tracks the number of steps a user takes daily and motivates them by
showing how many calories they burn. The app uses the following rule:
• Every 20 steps = 1 calorie burned
Design a pseudocode-based solution that calculates the total calories burned based on the
number of steps taken.
Page 1 of 2
7. A factory pays its hourly employees based on the following policy:
• Regular rate applies for up to 40 hours per week
• Overtime rate is 1.5× the regular rate for any hours worked beyond 40 hours
Design a pseudocode-based solution that calculates an employee’s weekly wage based on
total hours worked and their hourly rate.
8. A supermarket offers tiered discounts based on the total purchase amount:
• 10% discount if purchase is more than 1000 tk
• 20% discount if purchase is more than 5000 tk
Design a pseudocode-based solution that calculates the final payable amount after applying
the appropriate discount.
9. A cyclist logs their daily distance (in kilometers) for 7 consecutive days. You are asked to
design a system that evaluates their weekly performance. Write pseudocode to calculate the
following:
• Total distance covered in the week
• Average daily distance
• Best performance (maximum distance in a single day)
10. A hospital tracks the occupancy of 5 wards. Each ward has a defined bed capacity and a
number of currently occupied beds. The hospital wants to automate the calculation of the
overall occupancy rate to monitor resource utilization. Design a pseudocode-based solution
that calculates the overall occupancy rate across all wards.
Page 2 of 2