Question: 5. Write the Python program to: input a 3 decimal place number and a 4 decimal place number; add the numbers; and using the trunc

 5. Write the Python program to: input a 3 decimal place

5. Write the Python program to: input a 3 decimal place number and a 4 decimal place number; add the numbers; and using the trunc function from the math library; calculate the integer portion of the sum The program should print a message that includes: the two numbers that were input, the sum formatted to 2 decimal places, and the truncated sum. On another line, the program will print the unformatted sum. Submit screen shots of the program code and the output

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 Databases Questions!