Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

?? why Given 4 floating-point numbers Use a string formatting expression with conversion specifers to output their product and their average as integers (rounded), then

?? why
image text in transcribed
image text in transcribed
image text in transcribed
Given 4 floating-point numbers Use a string formatting expression with conversion specifers to output their product and their average as integers (rounded), then as floating-point numbers Output each rounded integer using the following: print (f'\{your_value:.off') Output each floating-point value with three digits after the decimal point, which can be achieved as follows: print ( \( f^{\prime}\{y o u r \text { _value: }, 3 f\}^{\prime} \) ) Ex If the input is: 8.310.45.04.8 the output is: 2072.72072.6807.125 0/10 main.py When done developing your program, press the Submit for grading button below This will submit your program for auto-grading Latest submission - 10:34 PM EST on 03/04/23 Total score: 0/10 Only show failing tests Downlosed this submission 1.Positive integers a 0/3 File "maini.py", line 5 20727 Syntaxbzco5: Invalla syntax Your output Your program produced no output 2 Some negative integers a File "main.py", tine 5 20727 Given 4 floating-point numbers Use a string formatting expression with conversion specifers to output their product and their average as integers (rounded), then as floating-point numbers Output each rounded integer using the following: print (f'\{your_value:.off') Output each floating-point value with three digits after the decimal point, which can be achieved as follows: print ( \( f^{\prime}\{y o u r \text { _value: }, 3 f\}^{\prime} \) ) Ex If the input is: 8.310.45.04.8 the output is: 2072.72072.6807.125 0/10 main.py When done developing your program, press the Submit for grading button below This will submit your program for auto-grading Latest submission - 10:34 PM EST on 03/04/23 Total score: 0/10 Only show failing tests Downlosed this submission 1.Positive integers a 0/3 File "maini.py", line 5 20727 Syntaxbzco5: Invalla syntax Your output Your program produced no output 2 Some negative integers a File "main.py", tine 5 20727

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions