Consider a simple app for processing student class attendance and course work scores then issue aremark on whether the student can sit for end of trimester examination or not. The app will promptuser to enter the total number lessons attended, then it will prompt the user to key in scores forassignment 1, assignment 2, assignment 3 ,continuous assessment test 1 and continuous assessmenttest 2. The app should sum the coursework scores(assignments and continuous assessment tests). Tovalidate students before they sit for end of trimester examination, the criteria is as follows:Status remarkLessons attended exceed 4 and has done allassignments and continuous assessment testsIssue exam cardLessons attended exceed 4 and has done allassignments and one continuous assessment testWritten permission from the registrar to sit forexamIn all other cases Repeat unitRequired: Using the flow chart you created in assignment 1, write a C program to implement thisscenario.
Question
Consider a simple app for processing student class attendance and course work scores then issue aremark on whether the student can sit for end of trimester examination or not. The app will promptuser to enter the total number lessons attended, then it will prompt the user to key in scores forassignment 1, assignment 2, assignment 3 ,continuous assessment test 1 and continuous assessmenttest 2. The app should sum the coursework scores(assignments and continuous assessment tests). Tovalidate students before they sit for end of trimester examination, the criteria is as follows:Status remarkLessons attended exceed 4 and has done allassignments and continuous assessment testsIssue exam cardLessons attended exceed 4 and has done allassignments and one continuous assessment testWritten permission from the registrar to sit forexamIn all other cases Repeat unitRequired: Using the flow chart you created in assignment 1, write a C program to implement thisscenario.
Solution
Sure, here is a simple C program that implements the scenario described:
#include <stdio.h>
int main() {
int lessons, score1, score2, score3, test1, test2, total;
printf("Enter total number of lessons attended: ");
scanf("%d", &lessons);
printf("Enter scores for assignment 1, assignment 2, assignment 3: ");
scanf("%d%d%d", &score1, &score2, &score3);
printf("Enter scores for continuous assessment test 1 and test 2: ");
scanf("%d%d", &test1, &test2);
total = score1 + score2 + score3 + test1 + test2;
if (lessons > 4 && total > 0) {
printf("Issue exam card\n");
} else if (lessons > 4 && (score1 + score2 + score3 > 0) && (test1 > 0 || test2 > 0)) {
printf("Written permission from the registrar to sit for exam\n");
} else {
printf("Repeat unit\n");
}
return 0;
}
This program first prompts the user to enter the total number of lessons attended, the scores for three assignments, and the scores for two continuous assessment tests. It then calculates the total score. If the student has attended more than 4 lessons and has a total score greater than 0, the program issues an exam card. If the student has attended more than 4 lessons and has completed all assignments and at least one test, the program requires written permission from the registrar for the student to sit for the exam. In all other cases, the student must repeat the unit.
Similar Questions
Develop the Internal mark calculation system based on the attendance percentage using Java. Get the student name, register number, total number of working days in the semester and Number of days present. Calculate attendance percentage of the students and award attendance mark based on the following condition. Attendance percentage >=90 – 5 MarksAttendance percentage >=80 and < 90 – 4 MarksAttendance percentage >=75 and < 80 – 3 MarksAttendance percentage < 75 - 0 MarksImplement using inheritance
The system records attendance details for multiple students, capturing their name, roll number, and attendance status for various subjects. Each subject has a total of 20 classes in a semester. Users can input the number of classes students have attended and calculate their attendance percentage. If a student's attendance falls below 75% for a particular subject, the system identifies it and calculates the number of classes they need to attend to reach a minimum of 75% before the semester concludes.Sample Input:
Consider an application for a training institute. Here, a participant can enroll for multiple courses. A course can be enrolled by many participants. Assessments are conducted for courses and marks are awarded to participants. A participant is allowed to take assessment only once for a course. A participant can enroll for a course only if he/she has undertaken the prerequisite course. The below relations are created for the application.Participant (ParticipantId, Name, Address)Course (CourseId, Desc, Duration, Prerequisite)Assessment (CourseId, Marks, ParticipantId)Identify the Primary key for Assessment relation.CourseIdMarksParticipantId{CourseId, ParticipantId}
The form of assessment that evaluates the students’ progress throughout a course can BEST be referred to as Question 1Answera.formative.b.continuous.c.diagnostic. d.summative.
Assessment that monitors learning progress is known as …a.placement assessmentb.formative assessmentc.diagnostic assessmentd.summative assessment
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.