100% found this document useful (1 vote)
818 views

PP1 - Seat Work Exercises - Algorithm (Dagdag)

The document provides instructions for completing seat work exercises on algorithms. Students are asked to write algorithms to solve three problems: 1) check a password, 2) convert money from pesos to dollars, and 3) display numbers from 1 to 5. Sample algorithms are provided as examples to solve each problem using basic programming logic and steps.

Uploaded by

John Dagdag
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
818 views

PP1 - Seat Work Exercises - Algorithm (Dagdag)

The document provides instructions for completing seat work exercises on algorithms. Students are asked to write algorithms to solve three problems: 1) check a password, 2) convert money from pesos to dollars, and 3) display numbers from 1 to 5. Sample algorithms are provided as examples to solve each problem using basic programming logic and steps.

Uploaded by

John Dagdag
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PP1 - Seat Work Exercises - Algorithm

Program Logic Formulation - Algorithm

Direction:

 Write your activity in a bond paper, use MSWord, or in one sheet yellow paper
 You may also create a flowchart using online flowchart generator
 For those who used bond paper or yellow paper, take a picture of it and upload it on
canvas.
 For those who used MS. Word or flowchart generator uploads the file on canvas.
 File naming convention is: PrelimP1
 Submit your activity in canvas

1. Given the value of the password is “JRU”, write an algorithm that if the user input the correct
password, it will display “Password is Accepted” if not “Password is Incorrect”

2. Write an algorithm that will input the value of money in Peso denomination and output its
equivalent in Dollars. Conversion factor: 1 dollar = 49.59 peso.

3. Write an algorithm that would display numbers from 1-5

Answer: PROBLEM #1

Step 1: START
Step 2: INPUT PASSWORD
PASSWORD = JRU
Step 3: READ PASSWORD
Step 4: IF (PASSWORD = JRU) THEN
PRINT “PASSWORD IS ACCEPTED”
Else
PRINT “PASSWORD INCORRECT”
Step 5: END
ANSWER: PROBLEM #2

Step 1: START
Step 2: READ MONEY AS PESO (PHP)
Step 3: USD = 49.59 PHP
Step 4: PRINT MONEY IN DOLLARS (USD)
Step 5: END

ANSWER: PROBLE #3
Step 1: START
Step 2: NUMBER = 5
NUMBER = NUMBER +1
Step 3: WHILE NUMBER <= 5
Step 4: DISPLAY NUMBER
Step 5: END

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy