write an algorithm by using pseudocode which


Write an algorithm by using pseudocode which:

  • Inputs top speeds of 5000 cars
  • Outputs fastest speed and the slowest speed
  • Outputs average speed of all the 5000 cars

fastest = 0: count = 0

slowest = 1000

repeat

input top_speed

total = total + top_speed

if top_speed > fastest then fastest = top_speed

if top_speed < slowest then slowest = top_speed

endif

endif

count + count + 1

until count = 5000

average = total * 100/5000

print fastest, slowest, average

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: write an algorithm by using pseudocode which
Reference No:- TGS0355427

Expected delivery within 24 Hours