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
erastova [34]
3 years ago
12

(2) Design pseudocode for a program that accepts numbers from the user until the special number 555 is entered (you should use a

n indefinite loop for this.) After the user enters the special value, your program should output the number of numbers entered AND the sum of those numbers.
Computers and Technology
1 answer:
elena-s [515]3 years ago
7 0

Answer:

Pseudocode is explained below

Explanation:

# Create a variable to count the numbers.

numberOfNumbers = 0

# Create a variable to store the sum of numbers.

sumOfNumbers = 0

# Create a constant to store the special numbers.

constant specialNumber = 222

# Start the loop.

while True:

{

   # Prompt the user to enter a number.

   num = input("Enter a number: ")

   # Break the loop if the number is

   # equal to the special number.

   if num == 222:

   {    

       break

   }

   

   # Otherwise, add the number in the current

   # sum and increment the number of values.

   else:

   {

       sumOfNumbers = sumOfNumbers + num

       numberOfNumbers = numberOfNumbers + 1

   }

}

# Display the values.

print("The number of numbers = ", numberOfNumbers)

print("The sum of numbers = ", sumOfNumbers)

You might be interested in
Digital Media Equipment: Best Practices Quiz
natulia [17]
  1. <u>False:</u> Location of a video or photoshoot is not important when it comes to preplanning the shoot.
  2. <u>True:</u> Booms are large adjustable poles to mount microphones.
  3. <u>False:</u> It doesn't matter what you clean your camera lens with- you should just grab whatever cloth you have.
  4. <u>True:</u> Safety should be the most important thing when conducting a photo or video shoot.
  5. <u>True:</u> It's important to properly clean and store your equipment after a photo or video shoot.

<h3>What is a photoshoot?</h3>

A photoshoot can be defined as a photography session that involves the use of <u>digital media</u> equipment to take series of pictures (photographs) of models, things or places, etc., especially by a professional photographers.

<h3>The digital media equipment in a photo or video shoot.</h3>

Some examples of the <u>digital media</u> equipment that are used in a photo or video shoot include the following:

  • Boom
  • Camera
  • Microphone
  • Lenses
  • Battery
  • Tripod

Read more on photoshoot here: brainly.com/question/26643795

4 0
2 years ago
Explain why the operating system hides certain folders ​
Licemer1 [7]

Answer:

Its a error mistake or its alive hiding evidence for an invasion

6 0
3 years ago
IMPORTANT!!<br><br> How can you get real answer keys for edmentum (plato) courses as a student?
dimulka [17.4K]

Answer:

Looking up the answer on google works but in my experience if you put the whole question onto brainly then look for the one with the best stars and most then the answer will be correct, thats how i have 100% on all my assingments, sorry if this isnt the answer you wanted but it helps

Explanation:

4 0
3 years ago
Write steps: To open an old documents​
myrzilka [38]

Answer:

1.Click.

2.Choose “All Programs”

3.Then select, the “Microsoft Office” folder.

4.Now, open your desired Office application. 5.for e.g Microsoft Word 2010.

6.Once the application opens, select.

Click.

7.Now, select the document you wish to open in Office 2010 and click.

3 0
3 years ago
What is the name for an object that is what it appears to be?
Gnesinka [82]
That would be a symbol
8 0
3 years ago
Other questions:
  • It is safe to use your bright headlights if there is a car ahead of you within 300 feet
    9·2 answers
  • Hit and Slopes Program: A Write a program that can be used by a ski resort to keep track if local snow conditions for one week.
    15·1 answer
  • Binary is best interpreted by a computer because?
    8·2 answers
  • How do optical discs store data? select one:
    15·1 answer
  • What form of communication are they using​
    6·1 answer
  • Erewrxdnnefwn q wedsvd
    6·1 answer
  • JAVA<br>plzz help...............​
    7·1 answer
  • If the starting address location changes, in which of the following cases, the program has to be recompiled? Select one: a. Both
    12·1 answer
  • Use the drop-down menus to complete statements about audio file formats.
    10·1 answer
  • The people on this platform are unbelievably nice. its almost rare to see this type of kindness online these days. Just wanted t
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!