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() {
_______ ____ ________ ____ _______ ______ ______.
___ __________ _________ __________ __________ __________ _____ _______ ___ ___ ___ ______.
______ _______ ____ ________ __________.
_____ ___ ________ __________ ______ ____ __________.
_____ ____ _____ _______ ______ __________ ___.
____ ________ ______ _________ ____ _______ ______ _________ ____ ____.
_____ ________ ________ ________ ________ ___ ____ ___.
______ __________ _______ ___ ____ __________ _______ ____ _____ ____ ______.
___ ____ ______ _______ _____ ____ ______ _____.
_______ ___ _______ _____ _________ _________ _____ ______ ______ ______.
____ ___ _______ ___ __________ _________ _________ ____ ________ _________.
______ __________ ________ ___ ______ _______ __________ _______ _______ _____.
_________ ______ _________ _____ _____ ____ ___ _________ _________.
_______ _____ ________ ____ _________ ______ ______ ________ ______ _____ _____.
__________ _________ ___ ___ ______ _______ _____ _________.
___ __________ _____ ______ ______ ________ _______ ___ ____ _____.
_________ _____ ____ _________ _____ _______ _______ _________.
______ ___ _______ __________ __________ ______.
____ ______ ______ ______ ________ ______ ___ ________ ________.
________ ___ ______ ____ _______ ________ ___ ____ ______.
________ _______ ____ ________ ________ _______ ___ __________ _____.
_____ ___ ______ _____ _________ _________ _____ _____.
_______ _______ ___ ________ ________ _________ ____ _______.
___ __________ ___ _________ ________ _______ ______ _______ ____ __________.
_________ _____ _________ _______ ____ __________ _________ _____ __________ ____.
_____ ___ __________ ______ ____ __________ ____ ________ ______ _______ _______.
___ ________ _________ ______ _______ _____ _________ _____ __________ __________.
_________ ______ ______ ___ ______ _________ ________ _______ _________ ________.
____ _________ __________ _______ _____.
______ ______ _______ _______ ____ ____.
_____ _____ ____ ________ _______.
_______ ____ ________ ____ ________ __________.
_____ _________ _______ __________ _____ ______ _______ ____ ____ _____ ___.
____ ____ __________ _______ __________ ____ _____.
____ _____ ____ ___ ___ ________.
_________ _____ ______ _____ ________.
_______ ______ __________ _____ ____ _______ ________ _________ ______ ______ ________.
______ ______ _______ __________ _______.
_____ _____ __________ ______ _________ _____ __________ _____ ________ _____ _________.
___ ___ ____ ___ __________ ________ _______ ______ _________.
__________ ____ _____ _____ _____ _________.
______ ____ _________ ____ __________ ____ ______.
____ __________ __________ __________ __________.
_________ ________ _________ _________ ______.
______ ____ ________ ___ _________ ________ ________ ___ _________ ________ _________ ___.
____ ___ _________ ________ ___ _________ ________.
_________ ________ __________ ________ __________ ___ _____ __________ _____ ______ _____ __________.
______ _____ ___ _______ ________ _____ _______ _____.
__________ ______ _____ ___ _______ _______ ______.
____ __________ ____ ____ ______ ______ ____ __________ _________ ________ _________ _______.
_________ ___ __________ _____ ___ ________ ___ _____ _________ ______ ____.
____ ________ ___ ______ _________ __________.
____ ________ __________ __________ _____ ____ _________ ______ _________.
________ ____ ________ _______ ___ ____ ________.
_______ ____ _______ _____ _________ ______.
_______ __________ _________ ___ __________ _____.
______ _________ _____ ________ ___ _____ _______ ______.
___ ______ _____ ______ __________ _____ _______ __________ __________ _____ ______ _______.
__________ ___ ____ ____ _________ ____ ________.
________ _________ ____ _____ ___ ____ _________ __________ _________.
_____ ___ __________ _____ __________ ____.
__________ _________ _________ ________ _____ _____.
______ ________ _____ _______ _______ ______ _________ ______ _________ _____.
_________ _________ ____ ___ ___ _________ ______ ______ ___.
___ _________ ______ __________ __________.
___ ______ _______ __________ ______ _______ ______.
__________ _________ ____ __________ ____ _________ _________ ____ _______ ____ _____.
___ ______ _________ ______ __________ _________ ______ _____ _______ _________ _________ ____.
________ ________ _______ _____ _______ ____ _______.
_________ _______ _______ ________ ____ ___ _____ _____ ________ ______ _____.
_______ _______ _________ ________ ______ _______ __________ ______ ______ ____ _______ ____.
___ _______ _____ _______ ______ ___ ________ ______ ______ ________.
_________ ____ ____ ________ ________ __________ ______ __________ __________ _______ ___ ________.
_______ _____ ___ _________ ___ _________.
______ ______ ___ __________ _____ ______ _____ ___ ___ _______ _______.
____ __________ __________ _____ __________ __________ _____ ________ _______ ____.
_______ _________ _____ ______ _________ __________ __________ ____ _____ ______ _____.
____ ___ _______ ____ ________.
____ _________ _____ __________ ___ ______ ____ _____ _______ _________.
________ ___ _____ _____ ________ __________ ___ ____.
___ ____ ________ ____ ________ _______ _____ _______.
_________ ____ __________ ________ __________ _________ _________ ______ _______ _____ __________.
_____ ________ __________ _________ _________ ____.
___ ______ _______ _________ _________ _________ ________ ____.
___ __________ ________ __________ _____ ____ _____ _________ ______.
____ ______ ____ ________ _____.
____ ___ ______ _____ __________ _________ ___ __________ ____.
________ ________ ____ ____ ______ ___ _______ __________.
__________ ________ ______ ________ __________ ________ ______ ______ _______ _____ _______ _________.
_______ __________ ___ _____ ___ _______ _________ _____ ______.
_______ ______ _____ __________ ___ _________.
_______ __________ ______ __________ ______ __________ ________ _______ ____ __________ _______ __________.
_______ __________ ______ ___ ____ ___ ________.
________ _____ ___ ______ _______.
______ ______ __________ ______ _____ ___.
____ _________ __________ ___ ________.
_____ ____ ___ _________ _________ __________ _____.
______ _______ _______ _____ ____ _____ _____ _______.
_____ ________ __________ ____ _____ _______.
___ _______ ____ _________ __________ ______ ____ _______ _______ _______ _________.
____ _____ ____ _________ ______.
_____ _______ _______ _______ ___ ___ ____ __________.
________ _________ _________ ____ ______.
_______ ________ __________ _____ _____ __________ _____ _________ ____.
_________ _______ _______ _______ __________ ______ _______ _____ __________ ____ ________ ______.
_______ _________ ____ ____ ___ ___ _________ ______ _________.
__________ _______ __________ __________ __________ ______ _________ ________ _________ ________.
_________ ____ _________ ____ _____ ___ _____ _____.
_____ ____ ____ _________ ______ ___ _______ ______.
___ ______ ___ ___ _______ ___ ____ _____ ______.
__________ ____ __________ _______ __________ _________ ________ _______ ________ ___ _______ _____.
_________ ____ ___ __________ _________.
______ __________ _________ _______ ______ _____.
___ ______ __________ ______ __________ __________ __________ ____ ____ ___ ____ _____.
__________ __________ ______ _______ ________ _______.
_______ _________ _______ ____ ________.
____ _______ _____ ___ _______ ________ ____ ___ ________ __________ ________.
_________ __________ ___ ____ ___ ____ ____ _____.
_________ _________ _______ __________ _________ ________ ________ _________.
______ ________ ___ ________ _____ ___ __________ ___ ________ ____.
______ ______ _________ ____ __________ ___ ____ ___ ___ ____ _______.
_______ ____ __________ ___ __________ ___ _______ _________ ____ __________.
____ _______ ________ _________ _____ ______ __________ __________ _____ __________ _________.
__________ __________ ________ _____ _________ ________ _____ _______ _____ __________ ___.
__________ _________ _____ _______ ________ ___.
________ _______ _________ ___ _________ __________ ________ _______ _________ __________ ____ __________.
_____ ______ _______ _____ __________ ___ ______ __________ __________.
_______ __________ _____ _____ ________ __________ _____ _____ __________ __________ _________.
__________ _________ ___ _____ __________ _______ ___.
_______ ____ _______ _____ ________ _______ ____ ____ __________ _________.
_________ _____ ______ ___ __________ ____ _____ __________ ____ ____.
______ __________ _________ ______ ______ ______ _________.
_______ _______ ____ ______ _________ ______ _______ ________ ___ ________.
_______ __________ ____ _________ ________ ___ _____ __________ _____ ________ ____.
___ ________ _______ ______ ________ _________ ___ ____ __________ ______ ___ _______.
_________ _________ ________ ___ ____ ____.
_______ ____ ________ ______ __________ ________ __________ _______ ___ ____.
______ _________ ____ _____ __________ _________ ________ _________ ___ ____.
________ __________ _____ ______ ___.
__________ ______ ______ _________ _________ _________ ______ __________.
_____ ______ ____ ______ _____ ________ _____ ______ ________ ___.
_________ _________ __________ ________ _____ ______ _______ ___.
__________ _______ ________ _________ _________.
__________ _____ ___ ____ ___ _____ ____ ________ __________ ___.
__________ _________ __________ _____ ________ ______ ____ _________.
________ _____ ___ _________ ______.
_______ ______ ______ ______ ________.
__________ _____ _____ ____ ________ ___ ________ ___ ______ _____ ___ ____.
___ ____ ____ _______ _____ _________ __________ ______ ___ _________.
________ __________ _____ ___ _________ ______ __________ ______.
__________ _________ ____ _____ _________ ____ ___ ______ _____ ______.
______ ______ _____ ____ ________ ___ __________ ____ _________ ______.
_______ _____ ________ ____ __________ ______ ______ _______ _________ _____.
__________ ___ __________ ___ ________ _________ ______ __________ _______ _____.
______ ___ _______ ______ ______ _______.
_____ _________ ________ __________ __________ _____.
_________ ___ _______.
Get Full Answer on WhatsApp