Question: a ) Identify the errors from the following program #include Int main ( ) { Int a , b; Int div; Scanf ( % f
a Identify the errors from the following program #include Int main Int a b; Int div; Scanfff &a b; Divab; Printfd Div; Return ; b Check whether the following variables are valid or invalid. If it is invalid, mention the reason. Sum val, Sumval, $Sumval, Sumval, Sumval, sum val c Find the values of the following variables int a; int b; float c; float d; int e; float ffloat; a Find output when input values of b are and respectively scanfd &b; printfStart
; if b printfHello
; else ifb printfWorld
; else if b&&b printfUIU
; else if bb printfCSE
; else printfError
; printfStop; b Write the following program using the Switch Case statement in Programming Language C #include int main int choice; ifchoicechoice printfCSE
; else if choice printfUIU
; else if choice printfBye; return ; a Draw a flowchart to find the sum of the following series. Also show the sum value on monitor. b Write a program to calculate the online average of positive floating point numbers taken from keyboard as inputs. Follow the sample input and output given below for understanding the logic. United International University UIU Dept. of Computer Science & Engineering CSE Page of Sample Input Processing Output on Monitor num Average num num Average num num Average num Average a Show manual tracing for the following code segment fori; i; i for j; ji; j printfdj; printf
; b Write a program to perform the following operations i Declare an integer array of size ii Read n integer numbers from keyboard and store them in the array, where n is input integer from keyboard iii Find the sum of the numbers that are stored in odd number indices in the array iv Also show all the integer numbers of the array on monitor a Show manual tracing for the following code segment char str; char str; strcpystrCSE; strcpystrUIU; strcatstr str; strrevstr; putsstr; printf
; putsstr; int istrlenstr; printf
The length of s isd str i; b Write a program to determine the maximum among the numbers that are stored in ith row of the two dimensional array Ann where i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
