Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Don't use programming language. Write the algorithm steps in English Complete the algorithm that outputs the average value of all positive numbers found in a

Don't use programming language. Write the algorithm steps in English

Complete the algorithm that outputs the average value of all positive numbers found in a list.

Assume that a positive number is a number greater than 0.

For example:

- Given a list with the following contents: [8, -4, -1, 7, 0, -3, 4, -1, -6, -3, 6, 5, 11, -4, 0, 5, 1]

- The output should be 6, because (8+7+4+6+5+11+5+2)/8 = 6

Complete the algorithm given the following first steps and also provide a flow chart:

1. Input items into list

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions