Question: Programming Instructions Test 3 Test 4 > run Enter number of roots ( positive integer ) : 2 Enter value increment ( positive integer )
Programming Instructions Test
Test
run
Enter number of roots positive integer:
Enter value increment positive integer:
Test
run
Enter number of roots positive integer:
Enter value increment positive integer:
Test
Write a program which reads in the number of roots and a value increment and outputs a table of roots dots for the given number of
roots and values of equal to i times the increment up to and including The values in the table are displayed with two digits after the
decimal place.
Determine the appropriate loops statements to use while or for statements do not use the dowhile statement when a task requires
looping.
Study the tests below to help you understand program behavior. Use the following tests and your own tests to run against your solution in
Develop mode. These are the same tests that your solution will be executed against when you submit your work in Submit mode. User
input is in bold:
Sample Runs Program Behavior
User in put is in bold:Enter number of roots positive integer:
Number of roots must be positive.
Enter number of roots:
Number of roots must be positive.
Enter number of roots:
Enter value increment positive integer:
Value increment must be positive.
Enter value increment:
Value increment must be positive.
Enter value increment:
Value increment must be positive.
Enter value increment:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
