Question: Programming Instructions Test 3 Test 4 > run Enter number of roots ( positive integer ) : 2 Enter value increment ( positive integer )

Programming Instructions Test 3
Test 4
> run
Enter number of roots (positive integer): 2
Enter value increment (positive integer): 25
Test 5
> run
Enter number of roots (positive integer): 5
Enter value increment (positive integer): 51
51,7.14,3.71,2.67,2.20,1.93
Test 6
Write a program which reads in the number of roots and a value increment and outputs a table of roots x12,x13,dots for the given number of
roots and values of x equal to i times the increment up to and including 100. The values in the table are displayed with two digits after the
decimal place.
Determine the appropriate loop(s) statements to use (while or for statements - do not use the do-while 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): -5
Number of roots must be positive.
Enter number of roots: 0
Number of roots must be positive.
Enter number of roots: 1
Enter value increment (positive integer): -10
Value increment must be positive.
Enter value increment: 0
Value increment must be positive.
Enter value increment: -1
Value increment must be positive.
Enter value increment: }10
 Programming Instructions Test 3 Test 4 > run Enter number of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!