Questions: 1 680

Answers by our Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a C program. The program should output the average of quizzes, laboratory exercises and assignments and compute the equivalent percentage by getting the 40%. Input the major examination and get the equivalent by getting the 60% of it. The program should output the Prelim Grade: Prelim Grade = class participation + major examination

Remarks: if the grade is greater than or equal to 75 display PASSED, otherwise FAILED



SAMPLE RUN:

Class Participation

Quiz 1: 90

Quiz 2: 95

Quiz 3: 89

Quiz 4: 80

Average: 88.5

Lab. 1: 100

Lab. 2: 95

Lab. 3: 80

Lab 4: 70

Average: 86.25

Assignment 1: 100

Assignment 2: 80

Assignment 3: 89

Assignment 4: 75

Average: 86

Class Participation: 34.73

Prelim Exam: 95

%: 57.00

Prelim Grade: 91.73

Remarks: PASSED


Problem 01: Write a for loop which will print the following numbers:



100



90



80



.



.



.




Problem 02: Write a for loop which will print summation of all the numbers which are divied by 3 and 5 between 30-120.

Write a program in C to display the multiplication table of a given integer. Go to the editor


Test Data :


Input the number (Table to be calculated) : 15


Expected Output :


15 X 1 = 15


...


...


15 X 10 = 150

Write a program in C to display the cube of the number up to given an integer. Go to the editor


Test Data :


Input number of terms : 5


Expected Output :


Number is : 1 and cube of the 1 is :1


Number is : 2 and cube of the 2 is :8


Number is : 3 and cube of the 3 is :27


Number is : 4 and cube of the 4 is :64


Number is : 5 and cube of the 5 is :125

What is the process to create increment and decrement statement in C? Describe the difference between = and == symbols in C programming? Describe the header file and its usage in C programming?

How to declare array in c? Briefly explain the different types of array with simple example.

Write a program to:

  1. 1. Read Test 1 and Test 2 marks and store in array test1 and array test2 where each array stores 5
  2. elements.
  3. 2. Total up marks from test1 and test2 arrays and store in array named total.
  4. 3. Print the total marks from array total.

Use pointers to access array members.

Write a program that reads the values for the width, length, and height of a rectangular box using three variables of double type in the function main(). Pass values of these variables to a function, which calculates the volume and surface area for six sides of the box. The volume and surface area of the box passed back from two other arguments of this function are printed out in the function main(). Check your program with the user input for the width, length, and height of 2, 3, 4 meters, respectively.


For each of the following, write a single statement that performs the indicated task. Assume that long integer variables value1 and value2 have been defined and that value1 has been initialized to 200000.

 

a) Define the variable lPtr to be a pointer to an object of type long.

b) Assign the address of variable value1 to pointer variable lPtr.

c) Print the value of the object pointed to by lPtr.

d) Assign the value of the object pointed to by lPtr to variable value2.

e) Print the value of value2.

f) Print the address of value1.

g) Print the address stored in lPtr. Is the value printed the same as the address of value1?


 

LATEST TUTORIALS
APPROVED BY CLIENTS