Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Input a number with some fractional decimal digits, e.g. 71.545 Do all the followings: 1. convert the input to a float, name it F. 2.print

image text in transcribed

Input a number with some fractional decimal digits, e.g. 71.545 Do all the followings: 1. convert the input to a float, name it F. 2.print F without formatting, i.e. simply print it 3. convert F to an int and print the int without formatting 4. round the F to an int and print the rounded value without formatting 5. take the ceiling of F and print ceiling value without formatting 6.print F with formatting to two decimal places Note: Starting code (no import math provided) F_str = input ("Input a float: ") O Full Screen code.py + New ################################## #DO NOT REMOVE/CHANGE F_str = input("Input a float: ") # ################################## 3 4

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago