Question: Modify the following program to demonstrate the following: 1: round-up 2: round-down 3: integer value 4: display a number with three places of decimal [

 Modify the following program to demonstrate the following: 1: round-up 2:

Modify the following program to demonstrate the following: 1: round-up 2: round-down 3: integer value 4: display a number with three places of decimal [ ] # Activity 1.1 # This program displays the following # floating-point numbers in a column # with their decimal points aligned. num1 = 127 .899 num2 = 3465. 148 num3 = 3.776 num4 = 264.821 num5 = 88. 081 num6 = 799.999 # Display each number in a field of 7 spaces # with 2 decimal places. print ( format (num1, '7.2f' ) ) print ( format (num2, '7. 2f' ) ) print ( format (num3, '7. 2f' ) ) print( format (num4, '7.2f' ) ) print ( format (num5, '7.2f' ) ) print( format (num6, '7.2f' ) )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!