Write an interactive C program for “BCA Student Semester-End Results” which
prompts the user with the following menu options on the opening menu and
performs the corresponding functionalities:
1) Registration Status (Registration details like enrolment no, current semester,
fee-details, study centre, regional centre etc)
2) Courses in the Current Semester
3) Assignment Submission Schedules
4) Assignment Marks (semester-wise, course-wise till current semester)
5) Term End Exam Marks(semester-wise, course-wise till current semester)
6) Quit
#include <stdio.h>
int main()
{
while (1) {
printf("|-----------------------Menu-----------------|\n");
printf("| 1. Registration status. |\n");
printf("| 2. Courses in current semestr. |\n");
printf("| 3. Assignment Submission schedules. |\n");
printf("| 4. Assignment marks. |\n");
printf("| 5. Term end exam results. |\n");
printf("| 6. Quit. |\n");
printf("|--------------------------------------------|\n");
printf("Selection: ");
int number;
scanf("%d", &number);
if (number == 1) {
printf("|--------------------Registration Status----------------------------|\n");
printf("| Enrolment Number: 1910100001 |\n");
printf("| Current Semestr: 1 |\n");
printf("| Tuition Fee for one Semestr: 5000$ |\n");
printf("| Study Centre: Cambridge Academy |\n");
printf("| Regional Centre: Colorodo State |\n");
printf("|-------------------------------------------------------------------|\n");
}
if (number == 2) {
printf("|-------------------------Courses-------------------|\n");
printf("| Applied Mechanics |\n");
printf("| Physics |\n");
printf("| Calculus |\n");
printf("| Linear Algebra |\n");
printf("| Cyber Security |\n");
printf("| Differential equations |\n");
printf("| Finance |\n");
printf("| English |\n");
printf("| History |\n");
printf("|---------------------------------------------------|\n");
}
if (number == 3) {
printf("|---------------Assignment schedules----------------|\n");
printf("| Applied Mechanics - 18.12.2020 11:00 P.M |\n");
printf("| Physics - 19.12.2020 12:00 P.M |\n");
printf("| Calculus - 20.12.2020 03:00 P.M |\n");
printf("| Linear - 16.12.2020 04:00 P.M |\n");
printf("| Cyber Security - 16.12.2020 04:00 P.M |\n");
printf("| Differential equations - 15.12.2020 09:00 P.M |\n");
printf("| Finance - 18.12.2020 10:00 P.M |\n");
printf("| English - 16.12.2020 11:00 P.M |\n");
printf("| History - 17.12.2020 12:00 P.M |\n");
printf("|---------------------------------------------------|\n");
}
if (number == 4) {
printf("|---------------Assignment marks--------------------|\n");
printf("| Applied Mechanics - 12/30 |\n");
printf("| Physics - 25/30 |\n");
printf("| Calculus - 28/30 |\n");
printf("| Linear - 30/30 |\n");
printf("| Cyber Security - 15/30 |\n");
printf("| Differential equations - 20/30 |\n");
printf("| Finance - 28/30 |\n");
printf("| English - 28/30 |\n");
printf("| History - 29/30 |\n");
printf("|---------------------------------------------------|\n");
}
if (number == 5) {
printf("|-----------Term end exam results-------------------|\n");
printf("| Applied Mechanics - 98/100 |\n");
printf("| Physics - 94/100 |\n");
printf("| Calculus - 79/100 |\n");
printf("| Linear - 92/100 |\n");
printf("| Cyber Security - 90/100 |\n");
printf("| Differential equations - 93/100 |\n");
printf("| Finance - 68/100 |\n");
printf("| English - 78/100 |\n");
printf("| History - 75/100 |\n");
printf("|---------------------------------------------------|\n");
}
if (number == 6) {
break;
}
}
return 0;
}
Comments
Leave a comment