0% found this document useful (0 votes)
490 views1 page

CS126-8L: Computer Programming 1 (Laboratory) : Directions

This document provides instructions for a programming lab assignment involving flowcharts and pseudocode. Students must create a flowchart and pseudocode for 3 problems - calculating the surface area and volume of a cylinder, determining the day of the week for a given date, and calculating the factorial of a given number. The document specifies the formatting and submission requirements and notes points will be deducted for not following instructions.

Uploaded by

Karl Espina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
490 views1 page

CS126-8L: Computer Programming 1 (Laboratory) : Directions

This document provides instructions for a programming lab assignment involving flowcharts and pseudocode. Students must create a flowchart and pseudocode for 3 problems - calculating the surface area and volume of a cylinder, determining the day of the week for a given date, and calculating the factorial of a given number. The document specifies the formatting and submission requirements and notes points will be deducted for not following instructions.

Uploaded by

Karl Espina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CS126-8L: Computer Programming 1 (Laboratory)

Directions:

1. Use a Word Processor or Online Tool to create your flowchart and pseudocode. Divide
your page into two columns: flowchart should be on the left side and pseudocode on the
right.
2. Save your flowchart and pseudocode in PDF format with the filename: FLNAME-PRAC01
(e.g. GFUENTES-PRAC01.pdf)
3. Once done, upload your file on Blackboard.
4. Failure to follow instructions will get a 5-point deduction. Please be guided accordingly.

Practical # 1 (100 points total)

SEQUENTIAL

1. Surface Area and Volume (10 points each for Flowchart and Pseudocode)

Create a flowchart and a pseudocode to calculate the surface area and volume of a
cylinder and display the results. Use the formulas shown below
where pi (use pi instead of π) is approximately equal to 3.1416, r
is the radius and h is the height.

𝐴 = 2𝜋𝑟ℎ + 2𝜋𝑟 2
𝑉 = 𝜋𝑟 2 ℎ
SELECTION/CONDITIONAL

2. Calendar (15 points each for Flowchart and Pseudocode)

December 1, 2005 falls on a Thursday. Make a program that would input a numeric day
(1-31 only) and output the day of the week the day falls. For example, if 18 is entered
for the day, the program must display “SUNDAY”, if 20 was entered, “TUESDAY” must
be displayed and so on.

ITERATIVE/LOOPING

3. Factorial or n! (25 points each for Flowchart and Pseudocode)

Create a flowchart and a pseudocode to find the factorial of a number n (n! = 1x2x3x…n).
Example: 5! = 1x2x3x4x5 = 120

You might also like