3. Write a function that receives a floating-point numbers and rounds it
to two decimal places. For example, 127.565031 rounds to 127.57000.
Then write a program that prompts the user to input a floating-point
numbers, call the rounds function, and prints ceiling, floor, and rounded
value.
Hint: To round, you must convert the floating-point number to an
integer and then back to a floating-point number.
4. Write a function to compute the perimeter and
3. Write a function that receives a floating-point numbers and rounds itto two decimal places. For example, 127.565031 rounds to 127.57000.Then write a program that prompts the user to input a floating-pointnumbers, call the rounds function, and prints ceiling, floor, and roundedvalue.Hint: To round, you must convert the floating-point number to aninteger and then back to a floating-point number.4. Write a function to compute the perimeter and
การแปล กรุณารอสักครู่..