Write an interactive C program which prompts the user with the following options on the opening menu
1) General Information of the Learner Support Centre(LSC)
2) Programmes activated in the study centre
3) Scheduling of theory/practical sessions for BCA-MCA programmes
4) Academic Councillor’s Details
5) Schedules for Assignment submissions for various programmes
6) Quit
Enter your choice:
If an “1” is entered, prompt the user to enter the study centre code and know the genearl details
about the study like name of the learner support centre(LSC), name of the regional centre, name of
the study centre coordinator, programme in-charge details etc. If “2” is entered, it should give the
details of all the programmes those are activated in the LSC. If “3” is entered, it should give the
schedules for the theory and practical counselling sessions for BCA and MCA programmes for the
current session. If “4” is entered it should display the details of the academic councillors’
associated with respective programmes. If “5” is entered it should display the assignments
submission schedules for various programmes for the current session activated in that LSC. If the
user enters any letters or numbers other than the choice, redisplay the prompt. All output should go
to the terminal and all input should come from the keyboard.
Here's an interactive C program that implements the menu-based functionality you described. The program prompts the user with the menu options, reads the user's choice, and displays relevant information based on the selected option.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Structure to hold information about a program
struct Program {
char name[100];
char coordinator[100];
};
// Function to display general information about the Learner Support Centre (LSC)
void displayLSCInfo(int studyCentreCode) {
// You can replace this with actual data retrieval logic based on the studyCentreCode
printf("General Information for Study Centre Code %d:\n", studyCentreCode);
printf("Learner Support Centre Name: Sample LSC\n");
printf("Regional Centre Name: Sample Regional Centre\n");
printf("Study Centre Coordinator: John Doe\n");
printf("Programme In-Charge: Jane Smith\n");
printf("\n");
}
// Function to display details of activated programs
void displayActivatedPrograms() {
// Sample data for demonstration
struct Program programs[] = {
{"BCA", "Alice Johnson"},
{"MCA", "Bob Williams"}
};
printf("Programmes Activated in the Study Centre:\n");
for (int i = 0; i < sizeof(programs) / sizeof(programs[0]); ++i) {
printf("Program: %s\n", programs[i].name);
printf("Coordinator: %s\n", programs[i].coordinator);
printf("\n");
}
}
// Function to display scheduling of theory/practical sessions
void displayScheduling() {
// Sample data for demonstration
printf("Scheduling of Theory/Practical Sessions for BCA and MCA Programmes:\n");
printf("BCA Theory Sessions: Monday and Wednesday, 10:00 AM - 12:00 PM\n");
printf("MCA Theory Sessions: Tuesday and Thursday, 2:00 PM - 4:00 PM\n");
printf("BCA Practical Sessions: Friday, 3:00 PM - 5:00 PM\n");
printf("MCA Practical Sessions: Saturday, 9:00 AM - 11:00 AM\n");
printf("\n");
}
// Function to display academic councillors' details
void displayAcademicCouncillors() {
// Sample data for demonstration
printf("Academic Councillors' Details:\n");
printf("BCA Academic Councillor: Emily Brown\n");
printf("MCA Academic Councillor: Michael Davis\n");
printf("\n");
}
// Function to display assignment submission schedules
void displayAssignmentSchedules() _________ _______ _________ _______ ______.
_____ _________ _____ __________ ______ ___ ______ ________ _____ _______ ______ _______.
____ __________ _____ ___ ___.
___ __________ ___ _______ ____ _______ _____ ________ _________ ______ ______ _______.
_____ _________ ______ ____ ____ ___ _________.
____ ___ _______ _____ __________ ______.
_______ _______ ___ ____ _________ ________ ________ ________ _______.
______ _______ _____ _______ ___ _________ _____ __________ ________ ___ ______ ______.
____ _________ _______ _______ __________ ________ ___ ___ ______ ____ _____ _____.
_______ _______ _______ __________ ________ __________ ________ ______.
_____ _______ ______ ____ _________.
____ ___ ______ _____ ___ _____ _______ ___.
_____ _______ _____ _______ _____ ___ _________ ___.
____ _____ __________ _________ __________ _____ ___ __________ _______.
________ _______ ___ ___ _________ __________ ________ ___.
___ ____ ____ ___ _______.
___ _____ _______ _____ _______ _________ ___ _____ _____ ________ __________.
____ _______ ________ ____ ___ _________ __________ ________ ____ ___ _________ ____.
________ _____ _____ _____ _________.
___ ______ _________ ______ ____ _________ ______.
__________ _______ ________ ______ ___.
_______ ___ ______ __________ ______.
____ ______ _____ ____ __________.
________ _____ _______ ____ _____.
___ ______ ________ _______ _______ _____ ____ ____ _______ _______ _________ _________.
_____ ______ _________ ______ ____ ___.
____ _____ ______ _________ _______ _____ __________.
_______ __________ ____ ______ _____ __________ _____ ________ __________ _________ ________.
_________ _____ ____ _________ ________ _________ _________.
_______ _____ _____ _______ _________ __________ ___ ______ _____.
_______ _______ _________ ________ _____ __________ ___.
____ _______ ___ ________ ___ ___ ________ __________ _____ _____.
____ _______ ______ ______ _______ _________ _______ _______.
____ ___ ____ _________ ____ ______ ______.
____ __________ _________ _______ ____ _____ ____ ________ _____ __________ ____ ___.
________ _________ ______ ______ _________ __________ ____ ________ _______.
___ ___ ______ ___ ___ ________ _____.
____ _______ _________ ___ _______ ___ ________ _______.
_____ _______ ______ ________ ______ ______ ___ _______.
________ ______ ______ ______ _____ _________.
__________ ______ _______ ____ _____ ___ ___ ______.
__________ ________ ___ __________ __________ ________ __________ ________ __________ ________ ________.
_________ ____ _________ _________ _______ __________ _________.
_________ ________ ____ __________ ____ __________.
______ ____ _______ ________ _______ _________ ________ ________ _____ _________ _____.
___ ____ _____ ____ __________ _______ _____ _____ _________ _________ ______.
______ _________ ______ _________ _______ ____ ___.
_________ ________ _________ _________ ______ ____ ___ ________ _________ ____ _________ ________.
__________ __________ ___ _______ ________.
_____ _____ __________ _________ ____ ___ ____ ____ _____.
_____ ____ ____ ____ ________ ______ ______.
________ ______ _______ __________ ______ _______.
_____ ____ ___ __________ ____ ________ _____ _______ ____ _______ __________.
_______ __________ ___ _____ ________ _________ ______ ______ ________ ________.
_____ ___ _____ __________ ______ _____ __________ _______ _________ ___.
_______ ______ _________ ___ __________ ______ ______ _____.
___ ____ __________ ___ ______ ___ ______ _________ _______ ____ ______.
______ __________ _________ ___ __________ _________ ______ ______ _____ ___ ________ _________.
_________ _____ ________ ___ ___ ______ __________ _________ _______ __________ ______.
_____ ________ ______ ________ __________ ______ ___ ___ __________.
_________ _________ _______ ____ __________ ___ ________ __________ _______ _____ ___.
___ ______ ___ _____ _________.
________ _________ ________ _________ ___ ________ _________ ____ _____ __________ _______ _____.
________ ______ __________ ___ __________ _____ ____ __________ _______ ____ __________.
_________ _____ ______ __________ ____ _____ ____ _________ _____ __________ ____ __________.
____ ___ ________ _____ ___ _________.
___ ______ ____ ____ _____ ____ _____ _______.
_______ _________ __________ ________ ______ _____ _____ __________ ___ _____ ________.
________ _________ ____ _________ _________ __________ _______ ____ __________ ________.
_________ ______ _________ _______ __________ ______ _____ _____ ______ _________.
_______ _________ _______ ____ ____ __________ _________ ____ ______ ____ _________ ________.
__________ _____ ____ ________ ________ _______ ________.
_______ _______ _______ ___ ____ __________ _____ ________ ____ _______ ______ _________.
________ __________ ______ ______ _______.
______ _________ ___ ___ _______ ___ _______ _______ _______ ___ _________ _____.
___ __________ ______ _________ _________ _____ _____ _____.
_____ ________ ______ __________ _____.
________ _______ ___ ________ ________ ___ ________ ______ _____.
___ _______ ___ _____ _____ ______.
__________ __________ ______ _________ _____ ___ __________.
____ ____ ___ _______ _________ ____ ________ __________.
____ ________ ___ ____ ________ ________ _______ __________.
______ ________ __________ _______ __________.
______ ________ ___ ___ ____ ___ __________ ______ ____ ______ __________ ________.
____ _______ ___ _____ __________ ____ ___ __________ __________ _____ _________.
____ ________ _________ _________ ______ __________ _______ __________.
______ ____ ______ ____ ______ _______.
______ _____ ______ ________ _________ __________ _______ ____ ______.
_______ ___ _______ ________ _________ ___ _____.
______ ________ _____ ____ ________ ______ _____.
_________ ___ _______ ________ ________ _________.
_______ _____ _______ ________ _______ ____ ______ ________ _______.
____ __________ __________ __________ _____ _________ ____ _________ ______ _____ __________ _________.
__________ ____ _________ ________ _____ ____.
________ _____ __________ _________ _____ _____ _____ ____ __________ __________ ____ __________.
_________ ________ __________ _________ ______ _________.
____ ________ ____ _________ ____ _______ _______ ____ ____ __________ ______ ______.
___ __________ __________ __________ _________ __________ _________ _______.
______ __________ _________ __________ _____ ______ _______.
_______ _____ ______ ___ ______ _______ _____ _______ ____.
_________ _________ _____ ____ _______ ____ _____ ________ _____.
______ ___ ______ _________ _________.
______ __________ _______ _____ _________ _____ ____ __________ ____ ______ __________ _______.
______ ______ ___ _________ _______ _____ __________ _________ _________ ______ ___ ___.
___ __________ ________ ____ _________ ________ ____ ________ __________ _________ ______ ______.
_________ _________ ____ ___ _____ _________ ________ ___ ___ _________ ______.
_______ ________ ___ ___ ______ __________ ________.
_______ _______ _____ ______ ___.
________ _______ __________ _______ ____ __________ ______ ________.
___ _____ ____ ______ ___ ________ ______ ___ ____ ___.
____ _______ ___ _______ ____.
__________ ____ _____ ____ _______ ____ ___ ____ ________.
_________ ______ _____ ______ ___ _______ _________ ________ __________.
_________ ____ ____ ___ ________ ________ ______ __________ __________ ______ ___.
____ __________ _____ ___ __________ __________ ____ ______ ____ ________ __________ ___.
________ ______ _____ _______ _____ _______ ____ ____ ______.
_________ ______ _______ _______ _______ ______ _____ ____ ___ ___ ______ __________.
_______ _______ ________ ____ _________ ___ _____ ______ __________ ___.
________ _________ ______ _______ __________ ______.
______ _________ ___ _______ _______ __________ _________ _________ __________ ________ _________ ______.
_____ __________ _________ _____ _________ ________.
_________ __________ _____ __________ _______ ____ ___ _______ _______ _________.
_______ ____ _______ _________ ______ __________ ______.
______ ________ ________ ____ _____ _______ ________ _________ _______.
_______ ______ _____ ___ ________ ___ _______.
________ ____ _______ ________ __________ ________ _______ _________ _________.
_________ _____ _____ __________ _________ __________ ___ ______.
______ _________ ______ _______ ______ _______ _________ ___ ___ ________.
____ ________ ________ ___ _____ ____ ______.
_________ _______ _________ ___ _________ ________ _______ ________ ___ ___.
___ ______ ______ ___ _____ ___ _______ ____ _________.
__________ ____ ___ __________ _________ ______ _________ ____ ______ _____.
____ _______ _______ ____ _________ ______.
______ ___ _________ _________ ___ _____ ____.
___ _______ ______ _________ _______ ____ _________ ___ _____ _______.
_______ ____ __________ ______ _____ ______ ______ _____ _____ ______ _________.
___ _________ _____ _______ __________ ________.
______ _______ _____ _________ ____ _______ _____.
__________ _______ _____ ___ ____ _________ __________ _________ _____ __________.
Get Full Answer on WhatsApp