Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions