0 ratings0% found this document useful (0 votes) 25 views7 pagesAgustinchristianjames - 6278 - 1018247 - ALGORITHM - AGUSTIN - CHRISTIAN - JAMES - BSCE 2-1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
AGUSTIN, CHRISTIAN YAMES
Bsee 2-1
D Write ao olgocitnm, pseudocode, amd Arow A FlowEhort %© Find Ane AA OF cLctongie:
+ Algorimes:
@ Decore & VarmOlES , 1 for vase, 1 For we Height, and 1 for +e area
1D) Lek wwe user Input we pace and reighT.
©) Rerporm ne Multiplication wemween the vase ond reight and Assign Wt to «ne Area:
d) display me Area.
+ Reeudoco de®
Ler 05% =O, height + and area 0
Input vase and neignr
Area s wase x neight
QutRLT Area
+ Flowenart!2) weite an algoritnm, psewdOcodt, and draw a plowonett to determing whemer ne
recent HOW POESEd oF Foiled o Cure, a SrUdEN* need ar oWerage OF TF ONgive teCr
+ Aigeritemn!
A vedore, v Variables, 5 for me Aadends, and 1 for Mverae
Lex ane User Input we Addends
© Perper ame Addison wetweer ane adaends wee divided by 5 and Assign is TO Average
Die menage te greoner man oF equal To 7 Ouiput “posced”
Ae Average is ieee thAN 75 Owput “pained”
+ Reeudocode®
Lex S008 +0, SerIWwos O, SceTHres +O, KerFour 20, SorFive =O, and AVE =O
Anpud CorOne, Wer WO, SoeMnret, SerFour, Sor Fue
Aue > (SerOne 4 SerIWOs SorTHERE + Sor Four Ser Five) |S
\q Ave 2 45,
Output “passed”
ose
Durput “goi ted”
endig
+ Flowonor t=
G@aer)
(GeO =O, SFWO = 0, Ser THER
20
foic:0 ec.
TSPUT ScrOne, SerTWO, See THRE
‘SEF FOUT, Soe FIVE
tan 7 BONS B/E
ws REDE te
L—.@5D creore an algoritnen, pseudocode, and drow a plowcnert %at tae meek, mumves ond
mulled mem TogetnEr, ard prieTS out tnEim product:
+ Algerian |
®D vecore, A Voriaptes, 3 cor ne Faross, and 1 For Product
1D Lex We User Input the FOrcTOrs
© Perporm we Multiplication verween tHe Factors and Assign it 1 he Product,
Jd) Priek Producr
+ Rsendocode!
Lex FOne +O, FIWOFD, FILO ond Product =0
\epUt FOoe, FIwe, ETHER,
Proguck = FOne » FIO 7 FIRS
Print Product
1 Bowenact |
TOne:0, FINO =O
Fineeg: 0, Product 20
Tapwt FOne, ree 7
Elves,
J
ProdiOX: FOne # FTWO ¥ FIER |
\
Prien Proauct /
||) Creone an cigoriitnen , p&eudocode, and draw a Flowcnary that PerFOrME we Following:
Ask a wsee 1 enter a cum ber. IE the cumber If vEIWEED O ana 4O, write +E Word
BLUE: Ie Mme numbEC 16 wErWeen 41 ond FD write me Word RED. iF are numer i¢ between
Bl arg WO, write Me Word YELLOW. If i F any orMEr number, write it ig MOT Ie Correct
ioe prion
+ mgocitnen
4) Veciore 1 Vora, 1 per ae Numoer
¥) LAK ame User WnEUX the Number
© tg Numper (6 vEIWeeA 0 and HO ouput “BLUG"
We Number 1g verMeen AI and gO Overt “RED
te Number is werween Blond 100 Dur gut “YELLOW”
Ve Number w geeoter anan 10 Oureas “HH co me correct color option"
+ Pseudocode +
ber Mus = O
Tepe Kuen
\g OL nun £ 40
Durgut *eLute
ME AL tum £00
Duper “ REO"
lg B14 pum £100
butgur “MELLON
Use
DureUY TW IE not ne correct color gption®+ Flowonort!
@
=
ie [cose se: /—$—@
no
EAE mon 50D [owns -ee0'/——@
vo
Kine es ~yeuow" /——@
Jo
Teas
at orton T +e
5) create on otgorimm, penciocede,, ond draw a Flow chart wok performs *me ROWING
number eycten grading’.
1.00 = 49 -100 2-00 + 35- $3 3-00 = 45
4.25 = 4 -aw 2:15 2 $154 pov = 74 veloo
Lp = a % 2p t 24-8 Error = 100 aoe
1.35 + 3-10 195 7 We it+ Mapritinen
9) Deelore 2 Variable, 1 For NUmOeT
1D ser me, User Input ane Number
© le me Number de berween %-100 Ourpur “4-00”
Vp we Humber @ werweer AH-AU Outer “4-29"
We the Number ic ewer a1 Outpt “1-50”
lp the Numer if petween $£-A0 ourput “4-9
lp te Numpec is between $5-19 Owlput *2-00"
lp te Number ic beeen F204 Outpur “2-25”
lp me Number ig BeNNEer FAH Ooreun > 2-90"
\e tre Number ic berweer Fe-F¢ Output 2.95"
We the Number jg 95 Output *3-00"
Ug tre Namber is FH VeIOW OUxfus 5-00"
lg tHe NUMbEC is [OF aDove OUApUt ~ereor”
+ Rsendocode
tet Nuen a
ingut Nur
te 99 £ Nuen £107 \p gat num £ 9
dutput 4.00" Output *2. 90"
te ANE Num Eo
but gut 4.25"
Vp ML Num £43
Dut put “4.507
tg 99 4 num £ a0
outqut “1. 35"
Ve 95 5 num 4 $F
Output ©7200"
Wp 42S num £94
Durqut “7.25°
tp tek Nuen £76
Ourput “2950
lp Nuns 95
output “5.00"
Wp Num £34
Dut gut * 5-00"
cise,
Dua put “peor”+ Fowoners!
NE ouxpar 93)
Ts Woe)
ee)! output “1.00"/ SY
v
¥
Wo
No @ ves
~ Output “5-00 (2)
Kiama 8 [omen 0] =
4
NO. ® Ou put
” “teror”
{ied wae dong > ES / Ourgut “1-40
? ; 8
END
aa eS [our wvast/
No
| 5 _Joupn*a.00]
) v
No @
iss [nn 9 [
@