You are on page 1of 4

1.

Input Process Output

edge 1. Prompt user to enter edge. sidesurface, totalsurface,


volume
2. Read for edge.

3. Calculate sidesurface, totalsurface and


volume.

4. Display sidesurface, totalsurface and


volume.

2.

Input Process Output

width, length 1. Prompt user to enter width and length. areafloor, numtiles

2. Read width and length.

3. Calculate areafloor.

4. Display areafloor.

5. Calculate numtiles.

6. Display numtiles.

3.

Input Process Output

width, length, 1. Prompt user to enter width and length. areawall, volumepaint, costjob
pricepaint
2. Read width and length

3. Calculate areawall.

4. Display areawall.

5. Prompt user to enter pricepaint.

6. Read pricepaint.

7. Calculate volumepaint and costjob.

8. Display volumepaint and costjob.

4.

Input Process Output

basesalary, 1. Prompt user to enter basesalary, totalpay


totalsales, totalsales and commrate.
commrate
2. Read basesalary, totalsales and
commrate.

3. Calculate totalpay.

4. Display totalpay.
5.

Input Process Output

beginbalance, 1. Prompt user to enter beginbalance, endbalance


withdrawals, withdrawals and deposits.
deposits
2. Read beginbalance, withdrawals and
deposits.

3. Calculate federaltax and endbalance.

4. Display endbalance.

6.

Input Process Output

firstint, secondint 1. Prompt user to enter firstint and sums, diff, prod, quot
secondint.

2. Read firstint and secondint.

3. Calculate sums, diff, prod and quot.

4. Display sums, diff, prod and quot.

7.

Input Process Output

serialstudent, 1. Prompt user to enter serialstudent and serialstudent, grade


scorestudent score student.

2. Read serialstudent and scorestudent.

3. Determine grade based on scorestudent.

4. Display serialstudent and grade.

8.

Input Process Output

weight 1. Prompt user to enter weight. totalcharge

2. Read weight.

3. Determine costperkg based on weight.


4. Calculate totalcharge.

5. Display totalcharge.

9.

Input Process Output

1. Display “num square cube” num, square, cube

2. Loop num from 1 to 20.

-Calculate square

-Calculate cube

-Display “num square cube”

10.

Input Process Output

Payroll 1. Loop nopayroll 0 to 999. totalpayroll

-Prompt user to enter payroll.

-Read payroll.

-Increment nopayroll by 1.

-Calculate totalpayroll.

2. Display totalpayroll.

11.

Input Process Output

firstint, num 1. Prompt user to enter firstint. totalnum, averagenum

2. Read firstint.

3. Loop numcount to firstint.

-Prompt user to enter num.

-Read num.

4. Calculate totalnum and averagenum.

5. Display totalnum and averagenum.

12.

Input Process Output

totalemp, 1. Prompt user to enter totalemp. Regpay, otpay, totalpay,


empnum, totalemppay
2. Read totalemp.
empname,
payrate, workhr, 3. Loop empcount to totalemp.
othr
-Prompt user to enter empnum,
empname, payrate, workhr and othr.

-Read empnum, empname, payrate,

workhr and othr.

-Calculate regpay, otpay and totalpay.

-Display regpay, otpay and totalpay.

4. Calculate totalemppay.

5. Display totalemppay.

You might also like