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
4 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]4 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
Which is better intel or amd real debate.
natima [27]

I believe Intel is better at handling games. Not saying AMD isn't good, just not as good. AMD is better for handling multiple task. I personally don't mind either.

8 0
3 years ago
Read 2 more answers
HELP ASAP, AND YES I KNOW, WRONG CATEGORY. SORRY!
Anastasy [175]

Answer:

A. ensemble.

Explanation:

A musical ensemble can be defined as a group of people who play instrumental and vocal music. It is also known as a music group and carries a distinct name. The word ensemble is derived from the Middle French ensemblée, meaning together at the same time.

A rock band will come under the category of a musical ensemble as it is also a group of people performing instrumental music or vocal music.

Therefore, option A is correct.

3 0
4 years ago
Consider the following static method, calculate.
vfiekz [6]

Answer:

return 8 * x

Explanation:

Given

The attached code segment

Required

Which single statement can replace the program body

From calculate(), we have:

x =  x + x;\\ x =  x + x;\\ x =  x + x;

The first line (x = x + x) implies that:

x=2x

So, on the next line; 2x will be substituted for x

i.e.

x = x + x becomes

x = 2x + 2x

x = 4x

So, on the third line; 4x will be substituted for x

i.e.

x = x + x becomes

x = 4x+ 4x

x = 8x

In programming: 8x = 8 * x:

This means that: return 8 * x can be used to replace the body

6 0
3 years ago
What is NOT powered by the PSU of your computer?
Yuliya22 [10]
Peripherals like your monitor or your printer.
3 0
3 years ago
Hey can someone help?
Zinaida [17]
Send an email to it!
4 0
3 years ago
Read 2 more answers
Other questions:
  • When technology advances which of the following always takes place?
    6·2 answers
  • You should code width and height dimensions for images because:
    15·1 answer
  • One of the most toxic components of a computer is the
    11·1 answer
  • He memory unit of a computer has 2 20 words. The computer has instruction format with four fields; an operation code field, a mo
    15·1 answer
  • When performing actions between your computer and one that is infected with a virus, which of the following offers NO risk of yo
    11·2 answers
  • Explain what is meant by information technology (IT). Explain what is meant by information systems (IS). Why is it important to
    7·1 answer
  • Topic: Pseudo-codes
    9·1 answer
  • Data source contains addresses of the merge fields. true or false​
    8·1 answer
  • What is your favorite anime?
    11·1 answer
  • Write the following abbreviations in full next to the question number
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!