#include<stdio.h>
int main()
{
//variable declaration
float tm1,tm2,tm3,ett,total,avg;
//ask user for three term test marks
printf("\n Enter three term test marks");
//read three marks
scanf("%f%f%f",&tm1,&tm2,&tm3);
//validate three marks. -ve marks or greatyer to
25 will not be allowed
if(tm1<0 || tm1>25 ||tm2<0 || tm2>25
|| tm3<0 || tm3>25 )
{
printf("\n
Invalid term test Marks");
exit(0);
}
//ask user for end term mark
printf("\n Enter the mark of end of term
test");
//read the end term mark
scanf("%f",&ett);
//validate end term mark. -ve marks or greatyer
to 100 will not be allowed
if(ett<0 || ett>100)
{
printf("\n
Invalid end of term test Mark");
exit(0);
}
//compute the average percentage of three term test
marks
avg = ((tm1*100)/25 + (tm2*100)/25 +
(tm3*100)/25)/3;
//compute the final percentage of mark by adding
the percentage of term tests and end term test //by 2
total = (avg + ett)/2;
//display the total percentage marks
printf("\n Percentage : %5.2f",total);
//condition for pass percentage
if(total >=50)
printf("\nRESULT : PASS");
else //display the result fail
printf("\n RESULT : FAIL");
}
OUTPUT

7.In an English class, a student is given 3 term tests (marked out of 25) and...
Tasks: Write a program to calculate the average score for a student. The class has three hands-on test (30%), two assignments (20%) and a final exam (50%). The maximum score for all test, assignment and exam is 100 points. Tips: 1. Determine who the end user is. 2. Determine what are input that the user needs to provide. 3. Determine the process of the input. 4. Determine the output from the process. 5. Construct a flow chart and C program.
Question First, you need to design, code in Java, test and document a base class, Student. The Student class will have the following information, and all of these should be defined as Private: A. Title of the student (eg Mr, Miss, Ms, Mrs etc) B. A first name (given name) C. A last name (family name/surname) D. Student number (ID) – an integer number (of type long) E. A date of birth (in day/month/year format – three ints) - (Do NOT use the Date class from...
In C Langage Write a grading program for a class with the following grading policies:- a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent and the two quizzes together count for a total of 25 percent. Grading system is as follows:-...
This C# program prints out a corresponding letter grade for a given mark. It uses a method (called MarktoGrade) to determine the letter grade. MarktoGrade takes one integer call by value formal parameter (called mark) and returns a char value that is the letter grade. All of the input and output (except an error message) is done in Main. There is one syntax error in this program that you will need to fix before it will compile (the error is...
Question 5.[15 marks] [Chapters 7 and 8] Data from a random sample of a recent large second semester stage 2 statistics course (STATS 20x) were collected. Below is some information on the variables collected. Variable Grade The student's final grade for the course: A, B. C, D Pass Whether the student passed the course: Yes, No Programme The programme the student is enrolled in: BA, BCom BSc, Other Sex The student's sex: Female, Male ผhether the student regularly attended class:...
Create a Student grading system. You should use a person base class (stores the name of the student). Derive a student class from the person class. The student class stores the student ID. The student class should also store the students 3 exams (Test 1, Test 2, and Test 3) and calculate a final grade (assume the 3 tests count equally). Create an array of students for a class size of 15 students. You can use the keyboard to read...
[15 marks] Suppose that students enrolled in one course are required to take four tests, and each student’s final grade for this course is the average of his/her grades of these four tests. This question asks you to write a program that can be used to compute the lowest final grade, highest final grade and the average final grade. General Requirements: Use a5q1.c as the name of your C source code file. We will use the following command on bluenose...
Model 1. A student taking a class will receive a grade based upon the following percentages: • test average 50% • homework average 20% • final exam grade 30% Her grades were: • 5 tests grades of 75, 65, 71, 52, and 87. Average = 70 • 8 homework grades of 90, 80, 10, 75, 92, 105, 90, and 100. Average = 80.3 • final examination grade of 79. Her final grade for the course was 75. 1. Using the...
Question 3: Construct a decision tree for the following scenario and given contingency table Suppose you are evaluating a program that uses a screening tool bullying. The school has an option to either implement a screening tool (alt) or do nothing (alt2). Below for an elementary school to address are the possible outcomes: Correctly identifying a bullied student means the concern can be addressed by obtaining the If the test identifies a student as bullied but the student is not...
Use C++ (2D Array) Write a program which: 1. Assigns data given below into the 2D array of integers which is 10x10. 2. Prints out the contents of the 2D array after assigning the data to make sure correct data was assigned. 3. Figures out and prints out the square root of the sum of ALL the elements in the 2D array. 4. Figures out and prints out the average of ALL THE ELEMENTS in the 2D array. 5. Figures...