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
yuradex [85]
3 years ago
6

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

product as integers, then as floating-point numbers. Ex: If the input is 10.3 20.4 5.0 Then the output is: 11 1050 11.900000 1050.600000
Computers and Technology
1 answer:
kodGreya [7K]3 years ago
6 0

Answer:

number1 = float(input("Enter the first number: "))

number2 = float(input("Enter the second number: "))

number3 = float(input("Enter the third number: "))

avg = (number1 + number2 + number3) / 3

product = number1 * number2 * number3

print("Average - Product with integer numbers: " + str(int(avg)) + " " + str(int(product)))

print("Average - Product with float numbers: %.6f %0.6f" % (avg, product))

Explanation:

- Get three numbers from the user

- Calculate the average of the numbers

- Calculate the product of the numbers

- Print average and product of the numbers in required format

You might be interested in
CORRECT ANSWER GETS BRAINLIEST
guajiro [1.7K]

I saw that all of them are correct. In 1905, the Wright Brothers flew their plane for 39.5 minutes. In 1969, Neil Armstrong landed on the moon. And the Wright brothers went throughout the U.S and Europe to demonstrate their plane. I hope this helps.

7 0
3 years ago
Read 2 more answers
Do you think should give credit to people who invented viral dances?
guajiro [1.7K]

Answer:

michal jackson i think who credit to people invented viral dances.

3 0
3 years ago
Read 2 more answers
Pls help me pass my finals!!​
ale4655 [162]

Answer:

(a): power(2&-2)

The code is as follows:

<em>power = 2**-2</em>

<em>print(power)</em>

<em />

(b): Largest and smallest in a list

The code is as follows:

<em>num = [33,6,11,100,456,109,-4,366]</em>

<em>smallest= min(num)</em>

<em>largest= max(num)</em>

<em>print(smallest)</em>

<em>print(largest)</em>

<em />

(c): Loop in Python

(i) Loop are instructions that are repeated until a certain condition is met;

(ii) For loop, in python are used to iterate over a sequence or through a certain range;

The syntax is:

<em>for loop_element in range(iterating_range):</em>

The following is an illustration of for loop that iterates 5 times

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

Explanation:

(a): power(2&-2)

The ** is used to calculate power.

So, 2**-2 represents 2 raise to power -2

<em>power = 2**-2</em>

This prints the calculated power

<em>print(power)</em>

<em />

(b): Largest and smallest in a list

This initializes the list

<em>num = [33,6,11,100,456,109,-4,366]</em>

This calculates the smallest using min() function

<em>smallest= min(num)</em>

This calculates the largest using max() function

<em>largest= max(num)</em>

This prints the smallest and the largest

<em>print(smallest)</em>

<em>print(largest)</em>

<em />

(c): See answer section

3 0
3 years ago
Why MUST you request your DSO signed I-20 ship as soon as it is ready and who is responsible to request the I-20
Klio2033 [76]

Why MUST you request your DSO signed I-20 ship as soon as it is ready and who is responsible to request the I-20?

a. It is required you have an endorsed/signed I-20 when Customs and Border Patrol or police ask for it

b. We only keep an unsigned digital copy and cannot sign an I-20 after the fact

c. It is against U.S. regulations to send digital (signed or not) DS-2019s and must treat I-20s the same

d. You will need all signed original I-20s to make copies to apply for OPT, STEM and H-1B in the future, so get them now!

e. It is the student’s choice to request each term, however, we cannot go back retroactively to provide past copies

f. We can only provide a signed copy of current I-20 and if changes occur from previous semesters that information will not show

g. The original endorsed I-20 signed by a DSO will be destroyed after 30 days of issuance if not picked up, and it cannot be replicated

h. The cost to have I-20 shipped may go up at any time

i. All the above

Answer:

i. All the above

Explanation:

DSO means designated school officials and they have to do with Student and Exchange Visitor Program (SEVP)-certified schools where students have to get a Form I-20, “Certificate of Eligibility for Nonimmigrant Student Status which provides information about the student's F or M status.

What a student must request for from his DSO signed I-20 ship are all the above options.

8 0
3 years ago
Long answer questions.
EleoNora [17]

Answer:

  1. ans-I have outlined four types of communication, but I believe there are actually five types of communication: verbal, non-verbal, written, listening, and visual.
4 0
3 years ago
Other questions:
  • To include an online picture in a publication, navigate to the _____ tab.
    7·1 answer
  • The following program uses a variable workHoursPerWeek rather than directly using 40 in the salary calculation expression.
    12·1 answer
  • Consider a three sequentially stepped process named as Process A, Process B and Process C. Input comes into Process A. Output fo
    13·1 answer
  • which of the following is not a windows accessory? a. sticky notes b. windows 8 c. sound recorder or d. paint
    8·2 answers
  • Write an expression that computes the integer average of the int variables exam1 and exam2 (both declared and assigned values).
    15·1 answer
  • Which of the following statements is true of algorithms?
    15·1 answer
  • What is the alogarithm for solving the perimeter of a triangle
    11·1 answer
  • PYTHON CODING QUESTION
    10·1 answer
  • Collection activities acquire and extract data from the operational environment such that Processing and Exploitation can conver
    14·1 answer
  • Which command must you use at the command prompt to determine the names of the network interfaces (including the isatap interfac
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!