Question: Question 4 Use while loop to write a program that calculates the product of any series of numbers until a certain input is provided (you
Question 4 Use while loop to write a program that calculates the product of any series of numbers until a certain input is provided (you can pick what value will trigger this, make a comment in your code to point out the value.) a) Do the same thing, but now using do-while. b) Do the same thing using a for loop c) Submit 3 codes for this question with one screen shot for each version. You can have one set of test cases (4 test cases at least) for all three versions of your program 1 This is a good opportunity to explain your algorithm independently of its type. The same algorithm can be applied/implemented using any kind of loop? Question 4 Use while loop to write a program that calculates the product of any series of numbers until a certain input is provided (you can pick what value will trigger this, make a comment in your code to point out the value.) a) Do the same thing, but now using do-while. b) Do the same thing using a for loop c) Submit 3 codes for this question with one screen shot for each version. You can have one set of test cases (4 test cases at least) for all three versions of your program 1 This is a good opportunity to explain your algorithm independently of its type. The same algorithm can be applied/implemented using any kind of loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
