You are on page 1of 7

NCE1102 - COMPUTER FUNDAMENTALS AND PROGRAMMING

2nd Semester, School Year 2021 - 2022

ALGORITHM: PSEUDOCODE AND FLOWCHART


Activity No. 2

Submitted by

ROSAROS, KENT ARNEL T.


Student Number

Submitted to

Engr. ERROL JOHN M. ANTONIO


Assistant Professor, DCpE

<<MARCH 21, 2022>>


ALGORITHM: PSEUDOCODE AND FLOWCHART
Activity No. 2

I: INTENDED LEARNING OUTCOMES

At the end of this work, students will be able to:


■ Understand and analyze computational problems;
■ Formulate pseudocode, and
■ Translate pseudocode into flowchart diagrams.

II: TASKS

Instructions:
■ Perform each of the following instructions given in each section.
■ Use letter-sized white paper. Use the prescribed document template.
■ Copy the problem for each item; show the complete solution, and box your final
answers/
■ Write legibly and organize your works.
■ Follow the guidelines in scanned works. Scan your work using the recommended tool --
please see guidelines here on how to scan and submit hand-written works.

I: Formulate pseudocode and draw the flowchart for the following computational problems.

1. Determine the type of triangle based on its three sides.


Equilateral: All sides are equal
Isosceles: Tow sides are equal
Scalene: No sides are equal
2. Based on the Richter Scale below, determine the type of earthquake based on its
magnitude.

3. Create a simple application to compute the estimated tuition fee. The user shall input
the number of units of lecture (unit_lec) and lab (unit_lab) respectively. A lecture
unit costs around 1700.00 and a laboratory unit cost around 1850.00. Sub tuition fee
(sub_tfee) is the sum of lecture and laboratory tuition fees. Aside from these fees,
students shall also pay laboratory fees (lab_fee) which cost 10% of the laboratory
sub-tuition fee if the number of total laboratory units is less than 6, otherwise, the
laboratory will be charged at 8%. The miscellaneous fee (misc_fee) shall also be
charged to the students at a fixed rate of 850.00.

Total tuition fees (total_tuition) can be computed as the combined lecture tuition
fee, laboratory tuition fee, laboratory fee, and miscellaneous fee. The students have two
payment options: CASH (1) with a 10% discount on the total and INSTALLMENT (2) with
an additional 3% charge of the total tuition fee. Display final tuition fee (final_fee).

Challenge: Create a simple guessing game. The computer will generate a random number and
the player will be given a chance to guess it. If the user guesses it correctly, the computer shall
put a congratulatory message. Otherwise, the computer shall provide a hint of whether
“higher” or “lower”. The game will continue to execute until the player guesses it right. Display
the number of guesses the player made at the end of the program.

***Nothing Follows***
*

<<Delete these lines>>

<<Provide the screenshots here. >>

<<Oh! Not sure of how to place your scanned work?>>

<<Check the guidelines on the link provided above>>

<<Delete these lines>>

You might also like