Question: This is Assignment 1 the question is referring to. Programming assignment 3 (Nested Logic): Exercise 1: Rewrite your solution to Assignment 1, Exercise 1, so
Programming assignment 3 (Nested Logic): Exercise 1: Rewrite your solution to Assignment 1, Exercise 1, so that the processing repeated until a negative digit is read. That is, embed your solution within another loop that continues to prompt for a digit and calculates the sum of the digits from zero through digit as long as digit is non-negative. The process stops when digit is negative. Be sure to add this information to the prompt. Rewrite the program documentation at the beginning of the program to reflect this change. Run your program once using the same data used in Assignment 1, Exercise 1. Answer for 0: Answer for 3: Answer for 7: Answer for 9: Turn in: Your answer and code for Exercise 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
