Largest Price Algorithm Flowchart
Use immediately

Largest Price Algorithm Flowchart

START

max= prices [i]

maxIndex=i

i< 100

Prices [maxIndex]*=0.9

STOP

Prices [i] > max

I= 0

Maxprice = [i]

Max Index = i

i+1

YES

NO

NO

YES

Find the largest price among 100 given values and reduce it by 10%

21
0
0
publish time: 2021-09-27
Ashley

Step 1: Read the 100 prices. Step 2: Compare the first price with the next and let the greater of the two be ‘max’ in the ‘max index.’ Step 3: Loop it until the largest price has been found. Step 4: Reduce the ‘max’ value by 10% using the formula: prices [max index] = prices [max index] x 0.9. Step 5: Print.

See More Related Templates

Dibujo1
trabajo de diagrama de flujos
Dibujo1
17
0
0
Sebastian Baron Lopez