SlideShare une entreprise Scribd logo
1  sur  7
Télécharger pour lire hors ligne
Weekly Assessment # 2
Programming I
General Instruction: Write a flowchart of the following problems below. You may put your answers
here.
Example:
Problem: Add two numbers entered by the user.
Algorithm:
 Declare variables n1, n2 and sum (Process)
 Read the n1 and n2 (Input/Output)
 Add them and store the result in sum (Process)
 Display sum (Input/Output)
Answer:
START
Declare variables n1, n2 and
sum
Sum = n1 + n2
STOP
Read n1 and n2
Display sum
1. Print a “Hello World” Program.
2. Determine if the number is a prime number.
3. Converts the input dollar to its peso exchange rate equivalent
 Note: Dollar Rate – 58.88 Philippine Pesos
4. Calculate the return of investment.
 Note: Return of Investment = (Vf – Vi)/Vi
Where:
R = Return
Vf = Final Value
Vi – Initial Value
5. Find the difference of two numbers entered.
6. Calculate the sum of the first twenty numbers.
7. Arrange the numbers x,y,z in ascending order.
8. Print a “Hello World Program” in 15 times.
9. Find the smallest among three numbers entered by the user.
10. Find the even numbers between 15 and 150.
Flow Chart
1. Hello World
2. Prime Number
3.
Start
Input Dollar
Input Peso 58.88 Philippine
Pesos
4.
Print Peso
Stop
5.
6.
7.
8.
9.
10.

Contenu connexe

Similaire à Weekly Assessment # 2.pdf

ALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTSALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTSKate Campbell
 
CS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers Assig.docx
CS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers  Assig.docxCS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers  Assig.docx
CS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers Assig.docxannettsparrow
 
Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7comp274
 
Write the program that reads two numbers from the keyboard. It.docx
Write the program that reads two numbers from the keyboard. It.docxWrite the program that reads two numbers from the keyboard. It.docx
Write the program that reads two numbers from the keyboard. It.docxannetnash8266
 
Problem solving using Programming
Problem solving using ProgrammingProblem solving using Programming
Problem solving using ProgrammingKuppusamy P
 
The IPO Model of Evaluation (Input-Process-Output)
The IPO Model of Evaluation (Input-Process-Output)The IPO Model of Evaluation (Input-Process-Output)
The IPO Model of Evaluation (Input-Process-Output)Janilo Sarmiento
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsgovendaagoovenda
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsnoahjamessss
 
PYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdf
PYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdfPYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdf
PYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdflejeunehayneswowel96
 
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS - SARASWATHI RAMALINGAM
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS  - SARASWATHI RAMALINGAMPROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS  - SARASWATHI RAMALINGAM
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS - SARASWATHI RAMALINGAMSaraswathiRamalingam
 
Practice Exercise Set 1
Practice Exercise Set 1Practice Exercise Set 1
Practice Exercise Set 1rampan
 
Computer studies form iv - practical - 2000 - 2 - answers
Computer studies    form iv - practical - 2000 - 2 - answersComputer studies    form iv - practical - 2000 - 2 - answers
Computer studies form iv - practical - 2000 - 2 - answersHamza Kahemela
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfROWELL MARQUINA
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1Zaibi Gondal
 
Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxfaithxdunce63732
 
Write out the logic to the following problems.Example Repre.docx
Write out the logic to the following problems.Example Repre.docxWrite out the logic to the following problems.Example Repre.docx
Write out the logic to the following problems.Example Repre.docxherbertwilson5999
 

Similaire à Weekly Assessment # 2.pdf (20)

ALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTSALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTS
 
CS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers Assig.docx
CS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers  Assig.docxCS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers  Assig.docx
CS​ ​100​ ​–​ ​Critical​ ​Thinking​ ​w​ ​Computers Assig.docx
 
Tbp dca1 -2021-2
Tbp dca1 -2021-2Tbp dca1 -2021-2
Tbp dca1 -2021-2
 
Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7Cis 170 ilab 1 of 7
Cis 170 ilab 1 of 7
 
Write the program that reads two numbers from the keyboard. It.docx
Write the program that reads two numbers from the keyboard. It.docxWrite the program that reads two numbers from the keyboard. It.docx
Write the program that reads two numbers from the keyboard. It.docx
 
Problem solving using Programming
Problem solving using ProgrammingProblem solving using Programming
Problem solving using Programming
 
The IPO Model of Evaluation (Input-Process-Output)
The IPO Model of Evaluation (Input-Process-Output)The IPO Model of Evaluation (Input-Process-Output)
The IPO Model of Evaluation (Input-Process-Output)
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisions
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisions
 
PYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdf
PYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdfPYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdf
PYTHON PROGRAMMING - CODE THE PROGRAM BASED ON THE INSTRUCTIONS AND .pdf
 
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS - SARASWATHI RAMALINGAM
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS  - SARASWATHI RAMALINGAMPROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS  - SARASWATHI RAMALINGAM
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS - SARASWATHI RAMALINGAM
 
Practice Exercise Set 1
Practice Exercise Set 1Practice Exercise Set 1
Practice Exercise Set 1
 
Practical 01 (detailed)
Practical 01 (detailed)Practical 01 (detailed)
Practical 01 (detailed)
 
Computer studies form iv - practical - 2000 - 2 - answers
Computer studies    form iv - practical - 2000 - 2 - answersComputer studies    form iv - practical - 2000 - 2 - answers
Computer studies form iv - practical - 2000 - 2 - answers
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
 
Lab sheet 1
Lab sheet 1Lab sheet 1
Lab sheet 1
 
Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docx
 
Ict project pdf
Ict project pdfIct project pdf
Ict project pdf
 
Write out the logic to the following problems.Example Repre.docx
Write out the logic to the following problems.Example Repre.docxWrite out the logic to the following problems.Example Repre.docx
Write out the logic to the following problems.Example Repre.docx
 

Plus de CCSSenatorAbogadoAj

Diving Deep for Synonyms and Antonyms.pdf
Diving Deep for Synonyms and Antonyms.pdfDiving Deep for Synonyms and Antonyms.pdf
Diving Deep for Synonyms and Antonyms.pdfCCSSenatorAbogadoAj
 
Lab 5 - String Manipulation usingTASM Environment-1.docx
Lab 5 - String Manipulation usingTASM Environment-1.docxLab 5 - String Manipulation usingTASM Environment-1.docx
Lab 5 - String Manipulation usingTASM Environment-1.docxCCSSenatorAbogadoAj
 
Hannok_Wanwisa_Spring-202011.pdf
Hannok_Wanwisa_Spring-202011.pdfHannok_Wanwisa_Spring-202011.pdf
Hannok_Wanwisa_Spring-202011.pdfCCSSenatorAbogadoAj
 
Job Matching Experiences of Cotabato State University (CSU) Public Administra...
Job Matching Experiences of Cotabato State University (CSU) Public Administra...Job Matching Experiences of Cotabato State University (CSU) Public Administra...
Job Matching Experiences of Cotabato State University (CSU) Public Administra...CCSSenatorAbogadoAj
 
local_media5375011518898876798.docx
local_media5375011518898876798.docxlocal_media5375011518898876798.docx
local_media5375011518898876798.docxCCSSenatorAbogadoAj
 
Environmental Awareness and Practices-RESEARCH.docx
Environmental Awareness and Practices-RESEARCH.docxEnvironmental Awareness and Practices-RESEARCH.docx
Environmental Awareness and Practices-RESEARCH.docxCCSSenatorAbogadoAj
 
AU-Project-Report-Fulltext-132299.PDF
AU-Project-Report-Fulltext-132299.PDFAU-Project-Report-Fulltext-132299.PDF
AU-Project-Report-Fulltext-132299.PDFCCSSenatorAbogadoAj
 
argumentative essay on the issue of the government's transport modernization ...
argumentative essay on the issue of the government's transport modernization ...argumentative essay on the issue of the government's transport modernization ...
argumentative essay on the issue of the government's transport modernization ...CCSSenatorAbogadoAj
 

Plus de CCSSenatorAbogadoAj (20)

Diving Deep for Synonyms and Antonyms.pdf
Diving Deep for Synonyms and Antonyms.pdfDiving Deep for Synonyms and Antonyms.pdf
Diving Deep for Synonyms and Antonyms.pdf
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
out.pdf
out.pdfout.pdf
out.pdf
 
Lab 5 - String Manipulation usingTASM Environment-1.docx
Lab 5 - String Manipulation usingTASM Environment-1.docxLab 5 - String Manipulation usingTASM Environment-1.docx
Lab 5 - String Manipulation usingTASM Environment-1.docx
 
Hannok_Wanwisa_Spring-202011.pdf
Hannok_Wanwisa_Spring-202011.pdfHannok_Wanwisa_Spring-202011.pdf
Hannok_Wanwisa_Spring-202011.pdf
 
Job Matching Experiences of Cotabato State University (CSU) Public Administra...
Job Matching Experiences of Cotabato State University (CSU) Public Administra...Job Matching Experiences of Cotabato State University (CSU) Public Administra...
Job Matching Experiences of Cotabato State University (CSU) Public Administra...
 
Jenjen-Done..docx
Jenjen-Done..docxJenjen-Done..docx
Jenjen-Done..docx
 
local_media5375011518898876798.docx
local_media5375011518898876798.docxlocal_media5375011518898876798.docx
local_media5375011518898876798.docx
 
Justification.docx
Justification.docxJustification.docx
Justification.docx
 
Environmental Awareness and Practices-RESEARCH.docx
Environmental Awareness and Practices-RESEARCH.docxEnvironmental Awareness and Practices-RESEARCH.docx
Environmental Awareness and Practices-RESEARCH.docx
 
AU-Project-Report-Fulltext-132299.PDF
AU-Project-Report-Fulltext-132299.PDFAU-Project-Report-Fulltext-132299.PDF
AU-Project-Report-Fulltext-132299.PDF
 
antonyms lesson plan.pdf
antonyms lesson plan.pdfantonyms lesson plan.pdf
antonyms lesson plan.pdf
 
Activity-Shella.docx
Activity-Shella.docxActivity-Shella.docx
Activity-Shella.docx
 
azrael_activity.docx
azrael_activity.docxazrael_activity.docx
azrael_activity.docx
 
argumentative essay on the issue of the government's transport modernization ...
argumentative essay on the issue of the government's transport modernization ...argumentative essay on the issue of the government's transport modernization ...
argumentative essay on the issue of the government's transport modernization ...
 
Ayumi_Activity.docx
Ayumi_Activity.docxAyumi_Activity.docx
Ayumi_Activity.docx
 
Activity_100pesos.docx
Activity_100pesos.docxActivity_100pesos.docx
Activity_100pesos.docx
 
Activity1&2.docx
Activity1&2.docxActivity1&2.docx
Activity1&2.docx
 
UPCAT_Reviewer_2021_2022.docx
UPCAT_Reviewer_2021_2022.docxUPCAT_Reviewer_2021_2022.docx
UPCAT_Reviewer_2021_2022.docx
 
Weekly Assessment # 2.docx
Weekly Assessment # 2.docxWeekly Assessment # 2.docx
Weekly Assessment # 2.docx
 

Dernier

Help DISCUSSING PLANS WITH YOUR LOVED ONE
Help DISCUSSING PLANS WITH YOUR LOVED ONEHelp DISCUSSING PLANS WITH YOUR LOVED ONE
Help DISCUSSING PLANS WITH YOUR LOVED ONEbilalpakweb
 
Recycle Ann Arbor Brand Guide Presentation
Recycle Ann Arbor Brand Guide PresentationRecycle Ann Arbor Brand Guide Presentation
Recycle Ann Arbor Brand Guide Presentationmakaiodm
 
its a wip forever because i said so yeuh
its a wip forever because i said so yeuhits a wip forever because i said so yeuh
its a wip forever because i said so yeuhangelicafronda7
 
Bunavestire (33) The Annunciation in Art
Bunavestire (33) The Annunciation in ArtBunavestire (33) The Annunciation in Art
Bunavestire (33) The Annunciation in Artsandamichaela *
 
April LinkedIn Newsletter Image Slideshow.pdf TESTING #3
April LinkedIn Newsletter Image Slideshow.pdf TESTING #3April LinkedIn Newsletter Image Slideshow.pdf TESTING #3
April LinkedIn Newsletter Image Slideshow.pdf TESTING #3marissa753990
 
Smudge Animated Short Storyboards Sequence C
Smudge Animated Short Storyboards Sequence CSmudge Animated Short Storyboards Sequence C
Smudge Animated Short Storyboards Sequence Cmicahhansonart
 
04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?
04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?
04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?bilalpakweb
 
April LinkedIn Newsletter Image Slideshow.pdf with captions
April LinkedIn Newsletter Image Slideshow.pdf with captionsApril LinkedIn Newsletter Image Slideshow.pdf with captions
April LinkedIn Newsletter Image Slideshow.pdf with captionsmarissa753990
 
Rendezvous Arts on Chicago Tribune March20 2024
Rendezvous Arts on Chicago Tribune March20 2024Rendezvous Arts on Chicago Tribune March20 2024
Rendezvous Arts on Chicago Tribune March20 2024danwonclarinet
 
Music Magazine contents page inspiration
Music Magazine contents page inspirationMusic Magazine contents page inspiration
Music Magazine contents page inspirationLydiaAittayeb
 
Alex Matus - Professional Best Photographer
Alex Matus - Professional Best PhotographerAlex Matus - Professional Best Photographer
Alex Matus - Professional Best PhotographerAlex Matus Photography
 
Converse Shoe Designs by Anna Barto (Adobe Illustrator)
Converse Shoe Designs by Anna Barto (Adobe Illustrator)Converse Shoe Designs by Anna Barto (Adobe Illustrator)
Converse Shoe Designs by Anna Barto (Adobe Illustrator)Anna Barto
 
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcoolsiva1812
 
Meal Planning, Nutrition, and Digestion / TREATING CONSTIPATION
Meal Planning, Nutrition, and Digestion / TREATING CONSTIPATIONMeal Planning, Nutrition, and Digestion / TREATING CONSTIPATION
Meal Planning, Nutrition, and Digestion / TREATING CONSTIPATIONbilalpakweb
 
HOSPICE CARE DECISIONS—AND WHAT TO EXPECT
HOSPICE CARE DECISIONS—AND WHAT TO EXPECTHOSPICE CARE DECISIONS—AND WHAT TO EXPECT
HOSPICE CARE DECISIONS—AND WHAT TO EXPECTbilalpakweb
 
When a sudden medical emergency occurs—say, a spouse has a stroke
When a sudden medical emergency occurs—say, a spouse has a strokeWhen a sudden medical emergency occurs—say, a spouse has a stroke
When a sudden medical emergency occurs—say, a spouse has a strokebilalpakweb
 
Digital Marketing Creative Portfolio - Xandra Somera
Digital Marketing Creative Portfolio - Xandra SomeraDigital Marketing Creative Portfolio - Xandra Somera
Digital Marketing Creative Portfolio - Xandra SomeraXandra26
 
Ghostectives Storyboard (Work in Progress)
Ghostectives Storyboard (Work in Progress)Ghostectives Storyboard (Work in Progress)
Ghostectives Storyboard (Work in Progress)RyanLovett5
 
A selection of short panel comics by Petra van Berkum
A selection of short panel comics by Petra van BerkumA selection of short panel comics by Petra van Berkum
A selection of short panel comics by Petra van Berkumberkumpje1
 

Dernier (20)

Help DISCUSSING PLANS WITH YOUR LOVED ONE
Help DISCUSSING PLANS WITH YOUR LOVED ONEHelp DISCUSSING PLANS WITH YOUR LOVED ONE
Help DISCUSSING PLANS WITH YOUR LOVED ONE
 
Recycle Ann Arbor Brand Guide Presentation
Recycle Ann Arbor Brand Guide PresentationRecycle Ann Arbor Brand Guide Presentation
Recycle Ann Arbor Brand Guide Presentation
 
its a wip forever because i said so yeuh
its a wip forever because i said so yeuhits a wip forever because i said so yeuh
its a wip forever because i said so yeuh
 
Bunavestire (33) The Annunciation in Art
Bunavestire (33) The Annunciation in ArtBunavestire (33) The Annunciation in Art
Bunavestire (33) The Annunciation in Art
 
BELSOSI
BELSOSIBELSOSI
BELSOSI
 
April LinkedIn Newsletter Image Slideshow.pdf TESTING #3
April LinkedIn Newsletter Image Slideshow.pdf TESTING #3April LinkedIn Newsletter Image Slideshow.pdf TESTING #3
April LinkedIn Newsletter Image Slideshow.pdf TESTING #3
 
Smudge Animated Short Storyboards Sequence C
Smudge Animated Short Storyboards Sequence CSmudge Animated Short Storyboards Sequence C
Smudge Animated Short Storyboards Sequence C
 
04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?
04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?
04. MEMORY CARE: DEALING WITH DEMENTIA WHAT IS DEMENTIA?
 
April LinkedIn Newsletter Image Slideshow.pdf with captions
April LinkedIn Newsletter Image Slideshow.pdf with captionsApril LinkedIn Newsletter Image Slideshow.pdf with captions
April LinkedIn Newsletter Image Slideshow.pdf with captions
 
Rendezvous Arts on Chicago Tribune March20 2024
Rendezvous Arts on Chicago Tribune March20 2024Rendezvous Arts on Chicago Tribune March20 2024
Rendezvous Arts on Chicago Tribune March20 2024
 
Music Magazine contents page inspiration
Music Magazine contents page inspirationMusic Magazine contents page inspiration
Music Magazine contents page inspiration
 
Alex Matus - Professional Best Photographer
Alex Matus - Professional Best PhotographerAlex Matus - Professional Best Photographer
Alex Matus - Professional Best Photographer
 
Converse Shoe Designs by Anna Barto (Adobe Illustrator)
Converse Shoe Designs by Anna Barto (Adobe Illustrator)Converse Shoe Designs by Anna Barto (Adobe Illustrator)
Converse Shoe Designs by Anna Barto (Adobe Illustrator)
 
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
wndoNDKLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 
Meal Planning, Nutrition, and Digestion / TREATING CONSTIPATION
Meal Planning, Nutrition, and Digestion / TREATING CONSTIPATIONMeal Planning, Nutrition, and Digestion / TREATING CONSTIPATION
Meal Planning, Nutrition, and Digestion / TREATING CONSTIPATION
 
HOSPICE CARE DECISIONS—AND WHAT TO EXPECT
HOSPICE CARE DECISIONS—AND WHAT TO EXPECTHOSPICE CARE DECISIONS—AND WHAT TO EXPECT
HOSPICE CARE DECISIONS—AND WHAT TO EXPECT
 
When a sudden medical emergency occurs—say, a spouse has a stroke
When a sudden medical emergency occurs—say, a spouse has a strokeWhen a sudden medical emergency occurs—say, a spouse has a stroke
When a sudden medical emergency occurs—say, a spouse has a stroke
 
Digital Marketing Creative Portfolio - Xandra Somera
Digital Marketing Creative Portfolio - Xandra SomeraDigital Marketing Creative Portfolio - Xandra Somera
Digital Marketing Creative Portfolio - Xandra Somera
 
Ghostectives Storyboard (Work in Progress)
Ghostectives Storyboard (Work in Progress)Ghostectives Storyboard (Work in Progress)
Ghostectives Storyboard (Work in Progress)
 
A selection of short panel comics by Petra van Berkum
A selection of short panel comics by Petra van BerkumA selection of short panel comics by Petra van Berkum
A selection of short panel comics by Petra van Berkum
 

Weekly Assessment # 2.pdf

  • 1. Weekly Assessment # 2 Programming I General Instruction: Write a flowchart of the following problems below. You may put your answers here. Example: Problem: Add two numbers entered by the user. Algorithm:  Declare variables n1, n2 and sum (Process)  Read the n1 and n2 (Input/Output)  Add them and store the result in sum (Process)  Display sum (Input/Output) Answer: START Declare variables n1, n2 and sum Sum = n1 + n2 STOP Read n1 and n2 Display sum
  • 2. 1. Print a “Hello World” Program. 2. Determine if the number is a prime number. 3. Converts the input dollar to its peso exchange rate equivalent  Note: Dollar Rate – 58.88 Philippine Pesos 4. Calculate the return of investment.  Note: Return of Investment = (Vf – Vi)/Vi Where: R = Return Vf = Final Value Vi – Initial Value 5. Find the difference of two numbers entered. 6. Calculate the sum of the first twenty numbers. 7. Arrange the numbers x,y,z in ascending order. 8. Print a “Hello World Program” in 15 times. 9. Find the smallest among three numbers entered by the user. 10. Find the even numbers between 15 and 150. Flow Chart 1. Hello World
  • 3. 2. Prime Number 3. Start Input Dollar Input Peso 58.88 Philippine Pesos