1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lara31 [8.8K]
3 years ago
5

Write an application that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If th

e score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic average.
Computers and Technology
1 answer:
lana [24]3 years ago
4 0

Answer:

scores = []

total = 0

count = 0

highest = 0

lowest = 10

while True:

   score = int(input("Enter quiz score: "))

   if score == 99:

       break

   

   if score < 0 or score > 10:

       print("Score must be between 10 and 0")

   else:

       total += score

       count += 1

       scores.append(score)

       

       if score > highest:

           highest = score

       if score < lowest:

           lowest = score

           

average = total / count

print("Scores:")

for s in scores:

   print(s, end=" ")

print()

print("The highest score is " + str(highest))

print("The lowest score is " + str(lowest))

print("The arithmetic average is " + str(average))

Explanation:

*The code is in Python.

Initialize the values

Create an indefinite while loop. Inside the loop, ask the user to enter the quiz score. If the score is 99, stop the loop. If the score is smaller than 0 or greater than 10, warn the user. Otherwise, add the score to total, increment the count by 1, and add the score to the scores list. Then, determine the highest and lowest value using if statements.

After the loop, calculate the average.

Print the valid scores, highest score, lowest score and arithmetic average

You might be interested in
A firewall is either software or dedicated hardware that exists between the __________ being protected.
Lapatulllka [165]

A firewall is either software or dedicated hardware that exists between the network and the resource being protected. this network security device monitors traffic to or from the network. It is based on set of rules about what data packets will be allowed to enter or leave a network.

5 0
3 years ago
30 points!!! Which type of a network is the Internet?
Eva8 [605]

Answer:

Wide Area Network or Public WAN

Explanation:

8 0
4 years ago
Read 2 more answers
If you are planning to carry a large balance on your credit card, which of the following credit card features should you look fo
Setler [38]

If you are planning to carry a large balance on your credit card, then you should choose Low APR. Why does it so? Because APR, acronym from Annual Percentage rate will give you guidance on how much the interest you have to pay as an additional charge from your loan.

<h3>Further explanation</h3>

Interested to know more about this answer, let's take a look at our Brainly explanation below.

First, what is APR, APR is the acronym from Annual Percentage Rates. It's an entity from the credit that comes from your credit card. The formula of APR is listed below.

(\frac{\frac{Fees+interest fees}{total loan}}{days of loan}\times 365 ) \times 100 = APR

<h3>Example in Calculation:</h3>

To give a clear view and explanation of what is APR, please take a look at data below. For example, Bob bought a new Macbook pro, that cost him 2500 USD in June 2017. He bought it by his credit card and he need to pay monthly the bill of credit card within 10 months. In middle of 2018, when he finished paid all the bill of his Macbook pro, he realize he paid 150 dollar of the interest. So the calculation of APR from his credit card is.

1. The cost of the product that you pay

             The interest of the payment is 150 dollar.

2. Sum the number and divide by the loan amount

             The percentage 150 dollar divided by 2500 dollar. It gives 0.06

3. Divide them by the day terms of the loan

             The term of the loan is 10 months or 300 days. So It gives 0.06 / 300 = 0.0002

4. Multiply the result to 365 days

              Follow it with 0.002 x 365 = 0.073

5. Multiply by 100 to get the amount in percentage

              It gives 7.3

So the APR is 7.3 %

Below is also some of the reasons why you should not pick the other choice or feature.

<h3>Why the other choices are not relevant:</h3>

B-Low balance transfer fee

Usually, people not using cash in regards to credit card usage. Why does it so, because credit card will give you extra charge to withdraw some money. It also applies to transfer fee, most of the bank provides a free transfer from one account to another account. Therefore low balance transfer is not aligned as the choice to pick a credit card.

C-Lots of credit card rewards

Credit card rewards are a gamification way of the credit card issuer and do you know that in the world only 10% of customers that are using it. It applies to the reward in another service, such as miles award and so on.

D-A large credit limit

The credit limit is entirely the right of the credit card issuer in deciding on how much the credit card should be issued. You can not just pick up the large credit limit without any approval from the institution that approves your credit limit.

Learn more

If you are interested more into this topic, we recommend you too also take a look at the following question.

  • annual percentage rates by monthly: brainly.com/question/8970458
  • annual percentage rate on mortgage : brainly.com/question/1398763
  • how do annual percentage rates: work:brainly.com/question/1361627

<h3>Core curriculum category</h3>

Grade: 12

Subject: Economy

Subchapter: Loan

5 0
4 years ago
Read 2 more answers
Groupthink refers toA) the willingness of individual group members to withhold contrary or unpopular opinions, even when those o
Ivan

Answer:

The correct answer is A.

Explanation:

Groupthink is a theory that is applied to decision making psychology in groups, developed by Irving Janis. The theory roots itself to the problem of conformity especially in group settings. When a decision is made in a group, some members, even though they believe that the decision made is wrong or can be better, get caught up in the conformity problem and follow the accepted solution to allign with the group's decision.

I hope this answer helps.

5 0
3 years ago
What is the binary number system? ​
Scilla [17]
DescriptionIn mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit.
6 0
3 years ago
Other questions:
  • Morgan's cursor is blinking in the center of the page but he would like to move it to the left margin. He should _____.
    10·1 answer
  • Part 2: students and courses, part 1  java review you may use an ide or a text editor, but i will test this by compiling and ru
    6·1 answer
  • Suppose that TCP's current estimated values for the round trip time (estimatedRTT) and deviation in the RTT (DevRTT) are 400 mse
    9·1 answer
  • What is the maximum rate at which computers A and B can communicate, via router X? (your answer should be in Mbps)
    12·1 answer
  • Which of the following is not a metamorphic agent?
    8·2 answers
  • How do you make Thumbnails and outros on Youtube for free?
    8·1 answer
  • You need a collection to represent secret agents. Every agent has a unique codename that identifies them, and an Agent object th
    14·1 answer
  • Dad Mystery
    9·2 answers
  • HELPPPPP Which tag used to add a new line:<br> A. ol<br> B. P<br> C. h1<br> D li
    7·1 answer
  • Which of these is an example of an online workspace?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!