Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started