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
Tom [10]
2 years ago
10

Write python code that does the following: Ask the user to enter as many as number they want; Then find the sum and the average

of these numbers; Print both results. *Tip- you should use while loop and when the user enters a specific word, they can continue to add another number.
Computers and Technology
1 answer:
Hunter-Best [27]2 years ago
7 0

Answer:

It goes like:

______________________________

#taking inpit for n numbers user wanna enter and save it in a variable n,

n=int(input("Enter the no. of no you want to enter: ")

#While loop after initialising a varaible to make suure the loop runs specific number of times

a=0

sum=0

while a>n:

b=int(input("Enter the number: "))

sum+= a

# printing the sum and average after rounding sum/n upto 2 digits after decimal.

print("sum:", sum, "/naverage:", round(sum/n,2) )

______________________________

You might be interested in
Before going into space, astronauts spend many hours training on flight simulators allowing them to learn how to fly without lif
MaRussiya [10]

Answer:

The short answer is, for full-mission flight simulators, specifically by NASA, are built with actual hardware and supported by simulation software. These software take into account every possible scenarios that could be adjusted based on the training. As for the hardware, they receive signals from the software on what they should do.

Explanation:

Some technologies involved are (which are also part of the FAA's requirements):

  1. 6 Degrees of Freedom for motion
  2. Visual systems
  3. Realistic acoustics
  4. Visual effects

This also involves a lot of robotics.

On the topic of motion:

One big and important feature is how motion is simulated - which takes a combined effort of both software and hardware to actually simulate how external forces can also affect the body.

It also takes into account the vibration that is experienced during launch.

The 6 degrees of freedom for motion includes:

  1. Up and down
  2. Left and right - sliding motion
  3. Back and forward
  4. Yaw - turning motion
  5. Pitch - look up and down
  6. Roll

For flight simulators, there are several levels and requirements being used in the aviation training industry. But one thing that you need to know is that the hardware and software mostly take into account motion.

On the topic of visual systems:

The pilots or crew should have a visual representation of what the outside world looks like with at least 150 degrees of view.

Realistic acoustics:

During simulations, actual sounds should also be present based on the real-life sounds produced during flight.

Visual effects:

If the pilot pivots to the right, or is about to breach the exosphere, the system's display should also take that into account and show it to the crew. This also includes visual effects for specific motions being done.

And as a bonus:

Just until recently, everything was analog (meaning, with dials, buttons, and levers) for the actual aircraft simulation that the pilots/astronauts are using. Update are now being made in NASA and SpaceX along with other rocket and spacecraft companies to move from analog to digital (with touch screens).

While this is an abridged version, it should help you to understand the complexities of a flight simulator.

8 0
3 years ago
Suppose an IP packet is fragmented into 10 fragments, each with a 1% (independent) probability of loss. To a reasonable approxim
Marysya12 [62]

Answer:

a. 0.01

b. 0.001

c. The identification field of the packet fragment can be used to uniquely identify and collate the fragments lost in transmission.

Explanation:

The probability of losing a packet is 10% or 0.1, so the probability of losing the packet twice during transmission;

= 0.1 x 0.1 = 0.01

When any fragments have been part of the transmission, the probability of the packet is dependent on the fragments;

= 0.01 x 0.1 = 0.001

The identification field is a unique 16-bit value assigned to an IPv4 packet, when a packet is fragmented for transmission, its field is used to collate the unique fragments in the packet.

6 0
2 years ago
Select the correct answer.
Crank

Answer:

Sensing elements.

Explanation:

Sensing elements are the device which connect channels feedback and return it to the control system input. There are many sensors used for feedback control such as Tachometer, Encoders, Accelerometers and rate gyroscopes.

3 0
3 years ago
Why is wider channel bandwidth good?
Nookie1986 [14]

Answer:

The wider channel bandwidth is efficient and good as it help in increasing the speed of the transmission. Due to the wider channel of the bandwidth it also lead to consuming less energy of the battery and make cost effective.

Due to the wider bandwidth, the number of clients can easily share and transfer the data in the channel and also make the transmission complete.

If the channel of the bandwidth is double then, the single transmission can easily carry more data. Hence, it also lead to double the speed of the transmission.

7 0
3 years ago
Since the 1960s, there have been five major generations, or cycles, of computing. Which represents those generations in order?
sergiy2304 [10]

Answer:a) Mainframes, miniframes, PCs, desktop Internet computing, mobile computing

Explanation: The hierarchy of the computers or computing are in the generation is:-

  • Mainframe:-designed for the execution of huge data processing , storage and execution.
  • Miniframe:-has similar functioning as the mainframe but on smaller scale and version.
  • Personal computer(PC):-It is designed for the individual purpose and according the need of the user.
  • Mobile computing:-computing that can be done on the mobile phone similar to the computing on the personal computer
  • Internet computing:-the computing of the mobile and computer system with the facility of the internet connectivity.

7 0
3 years ago
Other questions:
  • Which method tries all possible passwords until a match is found?
    13·1 answer
  • What is an apprenticeship
    7·1 answer
  • Most smartphones use operating systems developed by ________. Select one: A. Symbian and Apple B. Apple and Microsoft C. Microso
    13·1 answer
  • The spreadsheet ends after you reach column Z and row 99. True or false
    12·1 answer
  • A company accidentally sends a newsletter with a mistyped website address. The address points to a website that has been spoofed
    8·1 answer
  • 50 POINTS!!!!!!!!!!!<br><br> Give at least two examples of how the transport layer is used.
    13·2 answers
  • I need help <br> with a question<br> what can i write for ex when he mad
    13·2 answers
  • How is the architecture converted into software code? Elaborate the steps its passes through with help of examples / Diagram.
    15·1 answer
  • What would be an ideal scenario for using edge computing solutions?
    6·1 answer
  • What kind of AR target category makes sense for a playing card with a picture on it?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!