You are on page 1of 1

Programming Fundamentals

ASSIGNMENT #:01
____________________________________________________________________
You are required to design the algorithms and flow charts of the given problems.
Submission Date: 05-April-2016
NOTE:
1. Assignment should be in hard copy format.
2. Plagiarism will not be tolerated.
3. Submission of assignment after the due date, will direct to exercise marks
deduction policy.
____________________________________________________________________
Problem #1: To calculate the amount to be paid by a customer buying yummy
cupcakes for his birth day party.
Problem #2: To Calculate the Area of a Circle.
Problem #3: To Calculate Area of a Cube
Problem #4: To Calculate Area of Triangle
Problem #5: To Calculate the Volume of triangle
Problem #6: To Sum the two integer values
Problem #7:
Calculating Electricity Bills-I
The unit for electricity usage is kWh. For domestic usage, the monthly rate is
21.8 Rs/unit up to 200 units, 25.8 Rs/unit up to 800 units and 27.8 Rs/unit for
units consumed more than 800 units. Given the amount of electricity units (in
kWh) used by a customer, calculate the amount of rupees needs to be paid by the
customer to WAPDA. A bill statement needs to be printed out.
Problem # 8:
Calculating Electricity Bills-II
The unit for electricity usage is kWh. For domestic usage, the monthly rate is
21.8 Rs/unit for the first 200 unit, 25.8 cents/unit for the next 800 units and
27.8 Rs/unit for each additional unit. Given the amount of electricity units (in
kWh) used by a customer, calculate the amount of money needs to be paid by the
customer to WAPDA. A bill statement needs to be printed out.

You might also like