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
Oxana [17]
2 years ago
15

Design a loop that asks the user to enter a number. The loop should iterate 10

Computers and Technology
1 answer:
yarga [219]2 years ago
4 0

There are actually a couple of questions in here. I'll try to answer them in Python, which kind of looks like psuedocode already.

1. Design a loop that asks the user to enter a number. The loop should iterate 10 times and keep a running total of the numbers entered.

Here, we declare an empty array and ask for user input 10 times before printing a running total to the user's console.

<em>numbers = [] </em>

<em>for i in range(10): </em>

<em>    numbers.append(input("number: "))  </em>

<em>print(f"running total: { ', '.join(numbers) }")</em>

<em />

2. Design a program with a loop that lets the user enter a series of numbers. The user should enter -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered.

Here, we declare an empty array and ask for user input forever until the user types -99. Python makes it really easy to get the min/max of an array using built-in functions, but you could also loop through the numbers to find the smallest as well.

<em>numbers = [] </em>

<em>while True: </em>

<em>    n = int(input("number: ")) </em>

<em>    if n == -99:  </em>

<em>        break </em>

<em>    numbers.append(n) </em>

<em>print(f"largest number: { max(numbers) }")   </em>

<em>print(f"smallest number: { min(numbers) }")    </em>

<em />

You might be interested in
_________________ component defines the correct granularity for access controls and oversees the relationships between identitie
Otrada [13]

Answer:

<u>Authorization</u> component defines the correct granularity for access controls and oversees the relationships between identities, access control rights, and IT resource availability.

Explanation:

Access control is a security technique that verifies the permission that a person or device has to enter an area and to what extent. This function is within the identity and access management of a company. Authorization is the definition of what a specific user can do within an application, that is, to what information and operations they have access, in other words, it refers to the management of access to protected resources and the process of determining whether a user is authorized to access a particular resource. Authorization and access control are ways of enforcing access policies. Authorized persons may access certain resources for their job functions and identify and audit the accesses made.

8 0
2 years ago
Plzzzz plzzzzz helpppp meeeeee dueee tidayyyy i beggggggg
Talja [164]

Answers:

Lever- a rigid bar resting on a pivot, used to help move a heavy or firmly fixed load with one end when pressure is applied to the other

Pulley- a wheel with a grooved rim around which a cord passes. It acts to change the direction of a force applied to the cord and is chiefly used (typically in combination) to raise heavy weights

Wheel and axle- a simple lifting machine consisting of a rope which unwinds from a wheel on to a cylindrical drum or shaft joined to the wheel to provide mechanical advantage.

Inclined plane- a plane inclined at an angle to the horizontal.

Wedge- a piece of wood, metal, or some other material having one thick end and tapering to a thin edge, that is driven between two objects or parts of an object to secure or separate them.

Screw- a short, slender, sharp-pointed metal pin with a raised helical thread running around it and a slotted head, used to join things together by being rotated so that it pierces wood or other material and is held tightly in place.

<em>hope this helps :)</em>

5 0
3 years ago
Given 3 random numbers.
Mila [183]

Explanation:

I do not know php, but can do in C/Java

8 0
2 years ago
When people seek information to support their point of view and discount data that do not
Julli [10]

Answer:

The correct answer to the following question will be "Confirmation".

Explanation:

It is still the method of receiving and reviewing relevant private individual contact in response to a statement for clarification on a specific product concerning claims in financial reporting.

  • A confirmation or clarification means something might be accurate. It is evidence of it or definitive confirmation of doing or about something.
  • As people try evidence to endorse their opinion and dismiss facts that do not confirm.
3 0
2 years ago
What is one way programmers notify users of program updates? Email messages Magazine advertisements Public service announcements
Vikki [24]
I believe the answer is email notices
3 0
2 years ago
Other questions:
  • What is the best overall approach to education and career development for IT professionals?
    14·1 answer
  • What will happen if Sam goes to the View menu, clicks Toolbars, and then clicks Picture?
    12·2 answers
  • What do the points on this website do?
    14·2 answers
  • Karen took an assessment with 291 questions, and it described her preferred style of working, learning, leading, risk-taking and
    13·1 answer
  • Address Resolution Protocol (ARP) is a protocol for mapping an IP address to a physical machine address that is recognized in th
    10·1 answer
  • A computer program is tested by 5 independent tests. If there is an error, these tests will discover it with probabilities 0.1,
    5·1 answer
  • Use the_____icon to insert a new record.<br><br> A. *<br> B. X<br> C. =<br> D. &amp;
    11·1 answer
  • After the explosion of the Union Carbide plant the fire brigade began to spray a curtain of water in the air to knock down the c
    6·1 answer
  • The valid call to the function installApplication is
    5·1 answer
  • How will wireless information appliances and services affect the business use of the Internet and the Web? Explain.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!