Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago