Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Find the values of the following variables a , b , c , d , and e . [ 2 . 5 ]

1. Find the values of the following variables a, b, c, d, and e.[2.5]2. Manual trace the values of i, and value_final every time their value change. [2.5]3. In the manual tracing, show the value of variable i every time its value changes. [2.5]4. Show the manual tracing for the array A elements. [2.5] Section-B 5. Write a program to perform the following operations: a) Assign LAST_FOUR_DIGITS_OF_YOUR_STUDENT_ID +3 to integer variable a. b) Add 11 to a and assign that to integer variable b. c) Divide b by 15 and assign that back to b. d) Add a and b and assign the sum to a new float variable c. e) Increment the value of c by 1. f) Print the values of a, b and c.[2.5]6. Write a program to perform the following operations. Write the then conditions using nested conditional statements. a) Assign (LAST_THREE_DIGITS_OF_YOUR_STUDENT_ID %17)+3 to integer variable a. b) Assign (LAST_TWO_DIGITS_OF_YOUR_STUDENT_ID %21)+5 to integer variable b. c) Take an integer variable c from user. d) If c is larger than a and b, then check if c is even or odd. If even, then print: c is the largest and even. Otherwise print: c is largest and odd. e) If c is larger than a only, then check if divisible by 3 or not. If divisible, then print: c crossed a and divisible by 3. Otherwise print: c is not divisible by 3. f) If c is larger than b only, then check if divisible by 5 or not. If divisible, then print: c crossed b and divisible by 5. Otherwise print: c is not divisible by 5.[2.5]7. Write a program to compute the summation of the following series. (-j)+(i)+(2i+j)+(3i+2j)+.....+(ni+(n-1)j) If the sum is an even number, display your student id; otherwise display your name. [2.5]8. Write a program to perform the following operations. a) Assign (LAST_TWO_DIGITS_OF_YOUR_STUDENT_ID %21)+5 to integer variable b. b) Declare a one-dimensional integer array A of size 10. c) Initialize the array values with a%7+3i, Where a = LAST_FOUR_DIGITS_OF_YOUR_STUDENT_ID and i = array index. d) Find the sum of the numbers that are stored in even numbered indices in the array.solve this question c language

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

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago