Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please I want only the iteration table. please help fast . For the following problem, write Algorithm and iteration table and Python program. Do the
please I want only the iteration table. please help fast
. For the following problem, write Algorithm and iteration table and Python program. Do the Python program on Moovit.vit.ac.in. Write algorithm, iteration table and Python program on plain paper by hand. Submit one pdf file containing all pages. 1. Speed Summary At a location, speed of N number of vehicles has been recorded. These speeds will be input one by one. Write a program that displays the following items as a summary of speeds. A frequency table as shown below: Number of % of vehicles Speed Range vehicles (2 decimals) 1-20 Count 1 Count1/N*100 21-40 41-60 61-80 81 and above Maximum speed Average speed (round off to one decimal) Answer: Algorithm 1. Start 2. Input N 3. Initialize maxspd=0, sum=0, count=1 4. Initialize spd1=0, spd2=0, spd3=0, spd4=0, spd5=0 5. If countmaxspd) then maxspd=spd sum=sum+spd count=count+1 go to 5 6. Print header line: speed range, No. of vehicles, % No. of vehicles 7. Print 1-20, spd1, spd1/N 8. Print 21-40, spd 2, spd2/N ... 9. Print maxspd 1 of 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started