You are on page 1of 2

CC102 : Computer Programming 1

Laboratory Activity 3

Date: _________________

Class Schedule: ________________________


Name: ________________________________ Student No.: ___________________ Score:
Name: ________________________________ Student No.: ___________________
GENERAL INSTRUCTIONS: Read, understand and give the needed requirements. Submit your output in
our portal. Filename: Surname1_Surname2_LabAct2.pdf

Machine Problem

Pepito Manongsong is a carpenter who wants an application to compute the price of any desk a customer orders,
based on the following: desk length and width in inches, type of wood, and number of drawers. The price is computed
as follows:

• The minimum charge for all desks is $200.


• If the surface (length * width) is over 750 square inches, add $50.
• If the wood is mahogany, add $150; for oak, add $125. No charge is added for pine.
• For every drawer in the desk, there is an additional $30 charge.

Type of Wood: Surface size: Do you want drawer? [Y-Yes, N-No]


[1] – Mahogany (add $150) Length:
[2] – Oak (add $125) Width: Enter no. of drawers:
[3] – Pine
Enter choice:

Sample Input Data and Computation: (Test Case No. 1)


Type of Wood: 1 Base Charge: 200.00
Surface Size: Type of Wood (1): 150.00
Length: 35 Surface size: 50.00
Width: 25 Drawer: 90.00
Drawer?: Y
No. of drawer: 3 Total Amount: $490.00

Sample Input Data and Computation: (Test Case No. 2)


Type of Wood: 3 Base Charge: 200.00
Surface Size: Type of Wood (3): 0.00
Length: 30 Surface size: 0.00
Width: 20 Drawer: 0.00
Drawer?: N
No. of drawer: 0 Total Amount: $200.00

*Drawer answer is No automatic the No. of drawer is set to 0 (zero).


*Display the result for the Surface Size computation.
Requirements:
I. Make an IPO and Flowchart
II. Give the program/source code. (Text file) Your program should have a comment on first line stating your
names (partners)
III. Give the screenshot/output
IV. Short Reflection on the programming activity

SCORING RUBRIC
(Encircle the score that reflects the actual accomplishment)

Requirement/Task Rating Comment


5 – Perfect
Correctness of IPO 3 – Passing
1 – For the effort
5 – Perfect
Correctness of Flowchart 3 – Passing
1 – For the effort
5 – Correct
Correctness of Program
2 – Incorrect
Adherence to the 5 – Complete
requirements/instructions 2 – Incomplete

REFLECTION
How did you work on this Activity? Narrate here.

You might also like