Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that reads scores whose values are between O and 100 until you input a sentinel number that is out of that range.

image text in transcribed
image text in transcribed
Write a program that reads scores whose values are between O and 100 until you input a sentinel number that is out of that range. At that point, it should print to standard output the number of scores read and the average of the scores (that are between 0 and 100 inclusive). If there is no valid score, do not print the average. . The average value should be formatted with the precision 2 (two decimal digits after the decimal point) SAMPLE RUN #1: Enter a score between 8 and 160 inclusive: 0 Enter a score between 8 and 10e inclusive: 1 Enter a score between 8 and 100 inclusive: 2 Enter a score between 8 and 100 inclusive: 3 Enter a score between and 100 inclusive: 1 There are 4 valid scores entered The average of all valid scores is 1.50 SAMPLE RUN #2: Enter a score betveen 8 and 100 inclusive: 100 Enter a score between 0 and 100 inclusive: 95 Enter a score between 0 and 100 inclusive: 92 Enter a score between 0 and 100 inclusive: 88 Enter a score between and ee inclusive: 79 Enter a score between 8 and 100 inclusive: 200 There are 5 valid scores entered The average of all valid scores is 90.80 t ApplicationsLab 9-More Rep... . Lab 9 Programm. .(c1388308grang Not secure : Write a program described below: Python 3 5.3 Shell, Untitled Lab 9 : Programming Exercise- Chromlam cslabserver2.cs.mtsu edulabs/1170/HTML python/tab9 PE7 hem 1. Read an integer value between 2 and 20 and store the value as upper. 2. Using a nested-loop print the multiplication table from 2 to the upper value. 3. Using a loop print the heading as shown below. SAMPLE RUN #1: What is the upper bound of multiplication table? 9 The multiplication table for 2 to 9 4 6 8 10 12 14 16 18 6 9 12 15 18 21 24 27 4 8 12 16 20 24 28 32 36 51 10 15 2 25 39 35 40 45 61 12 18 24 39 36 42 48 54 7 14 21 28 35 42 49 56 63 8 16 24 32 40 48 56 64 72 9 18 27 36 45 54 63 72 81 SAMPLE RUN #2: What is the upper bound of multiplication table? 12 The multiplication table for 2 to 12 3 45 6 7 8 9 10 11 12 21 4 6 8 10 12 14 16 18 2 22 24

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

List the principle goals of team-building activities.

Answered: 1 week ago

Question

How does a multipoint circuit differ from a point-topoint circuit?

Answered: 1 week ago