Question: PLEASE WRITE IN PYTHON CODE: PROBLEM: For the is program you should implement a simple adding calculator. The program should continually accept inputs (one number
PLEASE WRITE IN PYTHON CODE:
PROBLEM:
For the is program you should implement a simple adding calculator. The program should continually accept inputs (one number at a time) from the keyboard and sum the numbers up. When a 0 (zero) is entered the the program should print the subtotal of the numbers that have been entered from the last time a zero was entered. When two 0's (zeroes) are entered consecutively then the program should print the total of all inputs that have been entered and the program should stop.
RULES:
Your program should continue indefinitely if two consecutive 0's (zeroes) are not entered.
SAMPLE:

Sample Run [Not part of the official output 10 subtotal: 17 subtotal: 28 -20 subtotal: -8 total: 37 Make sure that when the second consecutive zero is entered only the total gets printed. Not both the subtotal and total Here is a good test case for that: Sample Run[Not part of the official output] subtotal: 0 total: e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
