Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

I need help with these questions? Please help

OpenStudy (anonymous):

i got number 5: to be 5.8, 25, ?, 19 and 19

OpenStudy (anonymous):

the first print the addition of {1,2,3,4};, if result =0, later result = 0 + 1, later result = 1+2, later result = 3+3, later result = 6 + 4, when it finish the value of result is 10.

OpenStudy (anonymous):

what about question 3 and 4? any ideas

OpenStudy (anonymous):

yes in a moment please jejeje

OpenStudy (anonymous):

thank you

OpenStudy (anonymous):

in the number 3 it is also an addition but there is a break, it is common to see when you are using a structure like switch, in this case the break stops the function inmediatly after the condition "if (i == 2)" when the for is in the tird cycle it would be (a[i] = 3), it is the same to say condition (i == 2) where a[2] = 3. then the result or print would be 3... look at it a[] = {1,2,3,4}; imagine each number is "i" and there the count starts li 1=0, 2=1, 3=2, 4=3 (0,1,2,3) are four numbers this secuence will be to i, then if you call a[1]=2

OpenStudy (anonymous):

sorry man, i programmed that in codeblook and the result was 3, so you right and i learned someting jejeje,

OpenStudy (anonymous):

4. Fill in the blanks with single characters, given the following character strings: int i = 3; char Copilot[] = "Chewbacca"; char Princess[] = "Leia"; char Master[] = "Obi Wan"; Copilot[0] chewbacca Copilot[i] ? Princess[i+1] ? Master[2*i] ? Master[i-3] Obi Wan

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!