Question: write a python code that keeps prompting the user for integers. Calculate the sum of the absolute values of all the numbers entered. if the

write a python code that keeps prompting the user for integers. Calculate the sum of the absolute values of all the numbers entered. if the input number is negative, then add its positive value to the sum. if the input number is positive, then add it to the sum directly. display the sum when the user enters 0. for example, if the input stream is 10, -20,30,-40,50 and 0, your program should display 150 because 10+20+30+40+50=150.
write a python code that keeps prompting the user for integers. Calculate

1. Write Python code that keeps prompting the user for integers. Calculate the sum of the absolute values of all the numbers entered. If the input number is negative, then add its positive value to the sum. If the input number is positive, then add it to the sum directly. Display the sum when the user enters 0. For example, if the input stream is 10, -20, 30, 40, 50, and 0, your program should display 150 (because 10 + 20 + 30 + 40 + 50 = 150). (35 pts)

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!