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

Problem#1: Fill in the blank: (a) Every statement ends with a (b) The place hold

ID: 3754946 • Letter: P

Question

Problem#1: Fill in the blank: (a) Every statement ends with a (b) The place holder symbol in a string of characters that is ouput using printf is (c) The (d) The escape character "in' in printf or scanf statement causes the cursor to move to the statement is used to make control decision in a C program line on the screen (e) A block of statements in-between symbols andin C program can be the body of function like main0 or the body of if or while or for statements Problem#2: Answer correctly looking at the following C statements: (a) scanf("%d%d", & number1, number2); Identify the error in this scanf statement: and write the correct statement (b) ifc7) printf"c is less than 7ln"); Identify the error in this if statement: and write the correct statement: (c) Compute the value of x in the statement: x int x; x7 +3*6/2*5 1; (d) Rewrite the statement 'total total+ j' by using the symbol + (e) Place the parenthesis )' properly and rewrite y Answer: so the value of y in the following is computed to 54: nt y; y 35 +4 *62 Problem#3: write the for loop statement to perform the following action: (only need the for loop as answer) Pseudo-code given for action: (a) Declare variable a to 101 and sum 0 10I (b) Write for loop to sum the integers from a -100 to a 200; (c) Print the value of sum with output as The sum of integers from 101 to 200 is??? Answer: (you do not have to use all 6 lines) Line#1 : Line#2 Line#3 Line#4 Line#5 Line#6

Explanation / Answer

We are allowed to answer only four sub parts. But I am adding few more here

1a) semi colon

1b) %s

1c) if

1d) next line or new line

1e) { and }

2a) & is missing in second variable

2b) => order is wrong. It has to be >=.

2c) 51

2d) total += j;

2e) y = 3*((5+4)*6)/3

In case of any doubts, please comment.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote