Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the algorithm which is step by step not the code Write an algorithm that takes 2 integers as input (e.g. a and b)

please write the algorithm which is step by step not the code
image text in transcribed
Write an algorithm that takes 2 integers as input (e.g. a and b) generates a list of numbers between the 2 inputs inclusive and resums the average of all the numbers in the list that are divisible by 3 as an output. Example: when the input integers are [0,15] the output should be 9 (since there are 5 numbers divisible by 3 from 0 to 15,1.e.3,6,9,12,15 )

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago