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
postnew [5]
3 years ago
13

Write a program that inputs numbers and keeps a running sum. When the sum is greater than 100, output the sum as well as the cou

nt of how many numbers were entered.
Sample Run Enter a number: 1 Enter a number: 41 Enter a number: 36 Enter a number: 25 Sum: 103 Numbers Entered: 4
Computers and Technology
1 answer:
lyudmila [28]3 years ago
5 0

total = 0

count = 0

while total<=100:

   total += int(input("Enter a number: "))

   count += 1

print("Sum:",total)

print("Numbers Entered:",count)

I wrote my code in python 3.8. I hope this helps

You might be interested in
Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program n
WARRIOR [948]

Answer:

#include <iostream>

using namespace std;

int main ()

{

 float number = 0.0;

 float check = 45.6;

 cout << "Enter Numeber";

 cin >> number;

 if (number > check)

   {

     cout << " Greater than 45.6" << endl;

   }

 else

   {

     cout << " Lesser than 45.6" << endl;

   }

 return 0;

}

Explanation:

declare and initialize float type variable number. Float is used to cater for decimal but not using to much space which is used by double data type. Check value is stored in other variable called check.

Take input from user in number and write an if statement to check whether entered number is less than 45.6 or greater.If number is lesser than check display message "Greater than 45.6" other wise display message "Lesser than 45.6"

5 0
4 years ago
What came first, the internet or WIFI?
horsena [70]

Answer: wifi

Explanation:

because you can't have the internet if you don't have wifi to power it up

4 0
3 years ago
What are the disadvantages of a Cessna 172?
Brut [27]

Answer:

The 172 accounted for 17-percent of the active fleet and flew 16-percent of the hours flown while accounting for six-percent of the fatal accidents.

Explanation:

In a two-year period there was but one fatal 172 accident that was due to a mechanical failure. That was an engine failure related to a valve. There were no fatal accidents related to fuel exhaustion or starvation.

Despite the good record in that area, the 172 is probably involved in just as many forced landings as any like airplane. It just appears more adaptable to impromptu arrivals than some other airplanes. The low landing speed contributes to this. There is no available statistic on this, but I would bet that most 172 forced landings don’t result in what the NTSB classifies as an accident.

I looked at fatal 172 accidents that occurred during two more recent years (2012 and 2013) when virtually all the NTSB reports were final as opposed to preliminary. There were 25 such accidents in the 48 contiguous states. If the methodology I used years ago is applied to that number, the 172 safety record appears to have improved, maybe substantially.

6 0
3 years ago
How do you turn off amber alerts on iphone?
olga2289 [7]
Https://www.imore.com/sites/imore.com/files/styles/larger/public/field/image/2016/04/amber-alert-notification-settings-screens.jpeg?itok=rLaycAMr
4 0
3 years ago
Read 2 more answers
Many common web page designs use columns that are about ____ of the width of the page to approximate traditional aesthetic propo
Rom4ik [11]
<span>Many common web page designs use columns that are about a third of the width of the page to approximate traditional aesthetic proportions.</span>
8 0
4 years ago
Other questions:
  • add is a method that accepts two int arguments and returns their sum. Two int variables, euroSales and asiaSales, have already b
    11·1 answer
  • The network administrator has configured the enterprise firewall to permit port 21 to allow FTP transfers to occur from outside
    8·1 answer
  • Assume that name is a variable of type String that has been assigned a value. Write an expression whose value is the first chara
    14·1 answer
  • Which process refers to starting up a computer?
    13·2 answers
  • What causes the natural event called El Niño? In a short paragraph, describe El Niño and the effects it has on Latin America.
    9·1 answer
  • Yuri, a medical assistant, has been asked to send an account of a patient's last office visit to another doctor's office. The te
    6·2 answers
  • CAN YOU PLEASE HELP WITH THIS DUE IN 10 MINUTES
    8·1 answer
  • What is the main advantage of using a WYSIWYG("what you see is what you get")editor when constructing a website
    5·1 answer
  • Select the correct answer.
    15·1 answer
  • A(n) ___ is a set of CPUs which work in parallel in an attempt to simulate the way the human brain works, although in greatly si
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!