Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please explain how to get answers, without using the program. Ex. answer for Pro

ID: 441433 • Letter: P

Question

Please explain how to get answers, without using the program. Ex.

answer for

Problem 1

i / i>0 / cout i cubed=i^3 / i--

10 / T / check / check / 10 cubed = 1000

9 / T / check / check / 9 cubed =729

8 / T / check / check / 8 cubed= 512

7 / T / check / check / 7 cubed = 343

6 / T / check / check / 6 cubed = 216

5 / T / Check / Check / 5 cubed= 125

4 / T / check / check/ 4 cubed= 64

3 / T / check / check/ 3 cubed= 27

2 / T / check / check / 2 cubed = 8

1 / T / check / check / 1 cubed=1

0 / F (exit)

Explanation / Answer

7.

//i =5, j=1

// k=(2*i)-j

//exit when k<0

//prints i j k

//increments j

//decrements i

//loop


//print i j k



i=5

j=1


enter loop

k=2*5-1 = 9

k<0 false

print i j k

j=j+1=2

i=i-1=4


k=2*4-2 = 6

k<0 false

print i j k

j=j+1=3

i=i-1=3


k=2*3-3 = 3

k<0 false

print i j k

j=j+1=4

i=i-1=2


k=2*2-4 = 0

k<0 false

print i j k

j=j+1=5

i=i-1=1


k=2*1-5 = -3

k<0 true

exit


print i j k