Questions: 1 978

Answers by our Experts: 1 850

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 program C that prompts the user to input: 4 quizzes, 4 laboratory exercises and 4 assignments in percentage for Class Participation. Class Participation=(avgQuiz+avgLab+avgAssignments)/3 *40%. The user will input the prelim exam. Percentage of PrelimExam=prelimexam*60%. The program should output the Prelim Grade: Prelim Grade = class participation + percentage of Prelim Exam. Put a remarks: if the grade is greater than or equal to 75 display PASSED, otherwise FAILED

SAMPLE RUN:

Class Participation

Quiz 1: 95

Quiz 2: 75

Quiz 3: 87

Quiz 4: 70

Average: 81.75

Lab. 1: 90

Lab. 2: 85

Lab. 3: 88

Lab 4: 80

Average: 85.75

Assignment 1: 80

Assignment 2: 75

Assignment 3: 86

Assignment 4: 95

Average: 84

Class Participation: 33.53

Prelim Exam: 89

%: 53.4

Prelim Grade: 86.93

Remarks: PASSED


You’re tasked with pairing up people with each other but you need to figure out how well both of them work together. In order to find out how effective each pair is, you need to create a program that adds both of their values and returns their sum.


Input

-1000<= x <= -1000

-1000<= y <= -1000


Two int inputs separated by a space

100·100






Your task is to develop a circular linked-list-based simulation of the Josephus problem. The simulation will be text-based. The user should be presented with a text-based menu asking him to enter the total number of people (n), the starting point (i), direction (clockwise/anti-clockwise), and number to be skipped (k).

Let’s take an example. • For n =15 (i.e. number of people is 15) • k = 2 (i.e. every 2nd person is killed) • starting point (i) = 1 • direction = clockwise

Initial scenario: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

After 1 st iteration: 1 3 5 7 9 11 13 15

After 2nd iteration: 3 7 11 15

After 3rd iteration: 7 15

After 4th iteration: 15 (15 remains in the end). The program stops here.


please give the right as given in the question and also show your output.


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.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS