Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Lab Exercise: Algorithm & Flowchart for Temp Conversion, Circle Area & Perimeter, Simple I, Lab Reports of Physics

Algorithms and flowcharts to solve various mathematical problems, including converting temperature from celsius to fahrenheit, finding the area and perimeter of a circle, calculating simple interest, and comparing two or three numbers. Students can use these solutions as a reference for their programming assignments or projects.

What you will learn

  • What is the formula to find the area of a circle using an algorithm and flowchart?
  • How to find the smallest number among two using an algorithm and flowchart?
  • How to calculate simple interest using an algorithm and flowchart?
  • How to convert temperature from Celsius to Fahrenheit using an algorithm and flowchart?

Typology: Lab Reports

2020/2021

Uploaded on 11/01/2021

Tiel02
Tiel02 🇵🇭

5 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LABORATORY EXERCISE NO. 2: PROGRAM METHODOLOGIES
Practice.
1. Design an algorithm and flowchart to convert temperature from Celsius to Fahrenheit.
Algorithm
Flowchart
-Start
-Read Celcius (C)
-Compute Fahrenheit (F) as (Cx9/5)+32
-Write (Display) Fahrenheit
-Stop
2. Design an algorithm and flowchart to find the area and perimeter of a circle.
Algorithm
Flowchart
-Start
-Read radius (r)
-Set Pi (π)=3.14
-Compute Area (A)of a circle as π x r x r
-Compute Perimeter (P) of a circle as 2 x π x r
-Write (Display) Area and Perimeter
-Stop
Start
Read C
F = (Cx9/5) +32
Stop
Start
Read r
π=3.14
A= π x r x r
P=2 x π x r
Write A, P
Stop
pf3
pf4

Partial preview of the text

Download Lab Exercise: Algorithm & Flowchart for Temp Conversion, Circle Area & Perimeter, Simple I and more Lab Reports Physics in PDF only on Docsity!

LABORATORY EXERCISE NO. 2: PROGRAM METHODOLOGIES

Practice.

  1. Design an algorithm and flowchart to convert temperature from Celsius to Fahrenheit. Algorithm Flowchart
  • Start
  • Read Celcius (C)
  • Compute Fahrenheit (F) as (Cx9/5)+
  • Write (Display) Fahrenheit
  • Stop
  1. Design an algorithm and flowchart to find the area and perimeter of a circle. Algorithm Flowchart
  • Start
  • Read radius (r)
  • Set Pi ( π)=3.
  • Compute Area (A)of a circle as π x r x r
  • Compute Perimeter (P) of a circle as 2 x π x r
  • Write (Display) Area and Perimeter
  • Stop Start Read C F = (Cx9/5) + Write F Stop Start Read r π=3. A= π x r x r P=2 x π x r Write A, P
  1. Design an algorithm and flowchart to find simple interest. Algorithm Flowchart
  • Start
  • Read Principal Amount (P), Rate of interest (r), and Time period (t)
  • Compute for Simple Interest (SI) as P x r x t
  • Write (Display) Simple Interest
  • Stop Start Read P, r, and t SI=P x r x t Write SI
  1. Design an algorithm and flowchart to find the largest of three numbers. Algorithm Flowchart Step 1:Start Step 2: Read A, B, and C Step 3: If A>B go to step 4,otherwise go to step 5 step 4:if A>C go to step 6,otherwise go to step 8 step 5:if B>C go to step 7,otherwise go to step 8 step 6:Write A then go to step 9 Step 7 :Write B then go to step 9 Step 8 : Write C then go to step 9 Step 9: Stop Start Read A, B, and C A>B? No Yes B>C? A>C? Yes Yes No No Write B Write A Write C