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
pogonyaev
3 years ago
14

Given 3 floating-point numbers. Use a string formatting expression with conversion specifiers to output their average and their

product as integers (rounded), then as floating-point numbers. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('%0.2f $ your_value)
Ex: If the input is:
10.3
20.4
5.0
the output is:
11 1050
11.90 1050.60
Computers and Technology
1 answer:
jarptica [38.1K]3 years ago
5 0

Answer:

Following are the program in the Python Programming Language.

#get input from the user

x = float(input())

#get input from the user

y = float(input())

#get input from the user

z = float(input())

#find the average  

average =(x+y+z)/3

#find the product  

product = x*y*z

#print the result in given format

print('\n%d %d'%(average,product))

#print the result in given format

print('%0.2f %0.2f'%(average,product))

Explanation:

<u>Following are the description of the program</u>:

  • We set three variables 'x', 'y', and 'z' that accept float type values from the user.
  • Then, set variable 'average' that store the average of the following values that is given by the user.
  • Set variable 'product' that store the multiplication of the following values that is given by the user.
  • Finally, we print the average and the product in the following format  that is given in the statement.
You might be interested in
What is better for the sd card use as portable storage or use as internal storage?
Sever21 [200]
It depends on what you’d need it for.

> Portable Storage <
- Good for traveling.
- Good for porting stuff from a device to another device.

> Internal Storage <
- Better if you are using it for one device.
- Increase device storage.
5 0
3 years ago
Hoda wants to create a new presentation in PowerPoint with existing graphics and designs. What is the easiest and fastest way fo
Paul [167]

Answer: a

Explanation:

6 0
4 years ago
A company has a legacy application using a proprietary file system and plans to migrate the application to AWS. Which storage se
PtichkaEL [24]

A company has a legacy application using a proprietary file system and plans to migrate the application to AWS. Which storage service should the company

use is

D. Amazon EFS

Explanation:

  • A company has a legacy application using a proprietary file system and plans to migrate the application to AWS. Which storage service should the company

        use is

  • D. Amazon EFS
  • Amazon Elastic File System (Amazon EFS) provides a simple, a fully managed elastic NFS file system for use with AWS Cloud services.
  • EFS is NFS filesystem.
  • It has two storage classes,
  • the Standard storage class
  • the Infrequent Access storage class
  • Amazon EFS is highly suitable to support a broad spectrum of use cases from home directories to business-critical applications.
4 0
3 years ago
What is one key difference between the radiation and convection zones?
Anuta_ua [19.1K]
 convection requires a medium is not the main difference, it is simply the most obvious aspect of what is a fundamentally different mechanism for transfering energy. Convection is the transfer of energy by movement of a medium, whereas radiation is the transfer of energy by, well, thermal radiation. Conduction also requires a medium, but, again, it is a fundamentally different mechanism than either convection or radiation; in this case it is the transfer of energy through a medium.

Unfortunately, analogies are hard but if you can visualize the particles involved, it would help. Picture the red hot iron you mentioned. On a molecular level, the material is emitting lots and lots of photons (hence why it is glowing red). The creation of these photons takes energy; energy from the heat of the iron. These photons leave the iron, pass through the environment, and eventually collide with some other object where they are absorbed and deposit their energy. This is radiative heat transfer. If that energy is deposited on your retina or a CCD (like in a digital camera), an image forms over time. This is how infrared goggles work and they would work equally well in high vacuum as here on earth.

In conduction, the next simplest example, there is no generation of photons (physics nerds forgive me for the sake of simplicity). The individual atoms in the object are vibrating with heat energy. As each atom gains energy from it's more energetic neighbors, so it gives up energy to its less energetic ones. Over time, the heat "travels" through the object.

In convection, the molecules of gas near the object gain energy, like in the conduction case, but those same molecules that gained energy then travel through the environment to some other location where they then give off their heat energy.

In summary:

radiation = generated and absorbed photonsconduction = molecules exciting their neighbors succesivelyconvection = molecules heated like in conduction, but then move to another location
7 0
3 years ago
How can my computer catch a virus?
Lapatulllka [165]
By going on sites that are not secure or dowloding thigs 
4 0
3 years ago
Other questions:
  • The biggest factor in determining the price of a mortgage is:
    14·1 answer
  • What information medium is used to access information from the Internet in the form of HTML pages?
    12·1 answer
  • When naming a file to upload into an assignment in blackboard, it is okay to use special characters?
    13·1 answer
  • 1| def saveUserProfile(firstName, lastName, age, height, country):
    7·1 answer
  • Janelle is at the store and can't decide whether to buy steak for dinner or bring home pizza. To get a quick response from her p
    13·1 answer
  • Given two variables, is Empty of type boolean, indicating whether a class roster is empty or not, and number Of Credits of type
    10·1 answer
  • Match the installation type to its description.
    9·1 answer
  • Suppose Host A sends Host B a TCP segment encapsulated in an IP datagram. When Host B receives the datagram, how does the networ
    11·1 answer
  • A program that organizes sequences of automated provisioning tasks. A. Application Packager B. Sequence Manager C. Sequence Logg
    14·1 answer
  • Chantal has configured the network at her company's new headquarters with a number of VLANs. All devices joined to the individua
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!