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
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
Get step-by-step solutions from verified subject matter experts
