Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE USE PYTHON 3! There are 4 total questions. 6 Average of List Problem Submissions Leaderboard Discussions From a list of numbers, calculate the average.

PLEASE USE PYTHON 3! There are 4 total questions. image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
6 Average of List Problem Submissions Leaderboard Discussions From a list of numbers, calculate the average. The length of the list will vary. -99 will signal the end of the valid input Input Format Inputs will be whole numbers. Sample input: 80 90 75 95 -99 Constraints Do not use any functions besides int, input, and print. There will always be at least one valid number input. Output Format Just output the average. Sample output 85.0 Sample Input 0 80 90 75 95 -99 Sample Output 0 85.0 6 Max Problem Submissions Leaderboard Discussions Without using a function besides int, input, range, and print, from a series of 5 inputs, output the largest number entered Input Format Input will be five whole numbers. Sample input: 7 5 9 NW in Constraints Only use int, input, range, and print. No other functions! Output Format Just output the largest number. Sample output 9 Sample Input 0 5 9 3 2 Sample Output 0 9 6 Count of Evens Problem Discussions Submissions Leaderboard The first number input will be the number of subsequent numbers that will be input to process. From the numbers to process, keep a count of the number of even numbers. After processing all numbers, output the count of even numbers. Input Format Sample input: 75932 Constraints Input will be whole numbers. Output Format Just one number for the count of even numbers that were input. Sample Input 0 3 2 3 4 Sample Output 0 2 Explanation o The first number (3) indicates that there will be three numbers to process. The next three numbers are the ones that need to be read and processed. Since 2 of the 3 numbers are even the output should be 2. 6 Find Second Largest Problem Submissions Leaderboard Discussions Without using a function besides int, input, range, and print, output the second largest number entered. Input Format The first number input will be the number of subsequent numbers that will be input to process. Constraints Only use int, input, range, and print. No other functions! Output Format Just the second largest number. Sample Input o 3 WN 4 Sample Output 3 Explanation o The first number (3) indicates the number of numbers to process. From the numbers to process, the second largest is 3 so that is output

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 Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

3. SCC Soft Computer

Answered: 1 week ago

Question

2. KMPG LLP

Answered: 1 week ago

Question

5. Wyeth Pharmaceuticals

Answered: 1 week ago