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");
__________ ____ ___ _______ _________ ________ ________ _____ _______ ___ ____.
________ ____ ________ _____ ________ _________ ______.
______ ________ ________ _________ ____ ____ _________ _____ _____ _______ __________ _______.
_________ ________ _______ ____ _____ _______ _________ __________ ____ _________ _______.
___ ______ ______ ___ _________ _____ __________ ______ _____.
_____ _____ ______ _________ _______ _______ ___ ______ __________.
________ _______ ________ _________ ___.
___ ___ _______ _______ __________ _____ __________ _________ _____ __________.
_______ _______ _________ ______ _______.
_____ __________ ____ __________ __________ __________ ___ ___.
___ ____ _________ _____ ____ _________ _________ __________ ___.
________ ___ ________ ____ _____ _____ __________ ____ __________ _____ _____ _______.
____ _________ _______ ____ __________ ___ _________ _______.
_______ ____ ___ ________ ____.
_____ ______ ___ ________ ________ _______ __________.
_______ ________ ___ ________ _____ ______ __________ _______ _______ ___ ______ ____.
_____ _______ _________ _____ _________ ___ _______ _______ _______.
___ ___ __________ _______ _____.
__________ ______ _____ ______ _____ ________ __________ __________ __________ ___.
___ _____ ___ ______ _______ __________ _________.
___ ______ __________ __________ ________.
_______ _______ ________ ______ ___ ____ ________ __________ ________.
_____ _____ _________ _____ ___ ______ _____ _________.
______ __________ _______ ___ __________ ________ ________ ___ _______ _________ __________ _______.
__________ _________ _____ _________ __________ _________.
______ ____ ______ ________ ____ _____ __________ _____ _________.
__________ __________ ____ ___ ________ ____ ____ _____ ______ _________.
_____ ___ ___ _______ _________ _____.
___ _________ ________ ________ _________ _____ _______ _____ _________ ____.
____ ___ ________ ______ __________ _______ _____ _______ ______ ______ _____.
________ _____ _________ ___ ______ _______ __________ _____ ________ ___ ______ ________.
_______ _____ __________ _________ ________ _______ __________ _____ __________ _____ ___ ___.
___ ________ _________ ____ ________ ______.
______ ______ _____ _____ __________ _____ ____ _________.
_______ _____ _______ __________ ________ ______ _________ _________ ______ _______.
_________ ______ _____ __________ ______ _______ ___ ___ ___ ______ _________ ___.
_________ __________ ___ ________ _________ ________ ____ __________ ____.
_____ __________ _______ ____ ____ __________ ___.
________ _____ ___ ________ ________ ____ _____ _____ _____.
____ __________ ___ ____ _____.
______ ______ __________ ________ __________ ____ ____ ___ _____.
_____ _______ ____ ____ _________ ____ ________ _____.
______ _______ ______ _____ __________ _________ _________.
_______ _______ __________ _______ ______ ____ ___ ____ ____ _________ ____ _________.
___ _________ _________ _____ ______ ___ ____ __________.
________ ______ ________ ________ ________ _________ _________ ________ __________ _______ _____.
_________ ______ ___ __________ _______ __________ _______ _______ ___ ___ _____ ______.
____ ___ ________ ___ ____ __________ _________ ________.
_______ ____ _______ _________ _______ ___ ________ ________.
__________ _____ _________ __________ _____ ______ __________ ____ _____.
_________ __________ _______ _________ __________ ___ ______ _______ ________ ___.
_________ ________ ________ __________ ________ __________ ________ ___ ____ _______ _______ ___.
____ ______ _____ _________ ____ ___ _________ _________ ___ ____.
____ _________ _____ _______ ___ ___ ______.
____ ________ _________ __________ _________ _____ ________ ________ ________ _________ ___ ___.
_____ _____ ___ ___ _________ __________ ______ ____ ____ ________ _______ __________.
________ _________ _______ _________ _____ ________ _______ ___ ____ _________ _______.
___ __________ ________ ________ _______ _____ _____ _________ _______ ______ ___ ____.
_______ __________ ________ ____ _____ ________ _____ _______ _____ ________.
_______ ________ _______ _______ _________ _______ ___ ________ _______ _____ ___ ______.
________ _______ ______ __________ ______ ____.
_______ _____ _________ ______ ___ ______ __________ _______ _______ ______ ________.
____ ________ _________ _______ _______ __________ _____ _________.
_____ ________ _______ _________ ______ _________ _______ _______ __________.
_______ ______ _______ _____ ______ ________ ___ ______ _____.
___ ______ _________ ___ ___ ___.
__________ ___ _________ ________ ____ _________ __________ _________ ______ ________ _________ _____.
_______ ______ _______ _______ ___ ______ __________.
________ _______ ___ ________ _____.
_______ _________ _____ _________ ___.
_____ _________ _________ ___ _________ __________ _______.
________ _________ _____ _____ _________ ________ __________ ____ _________ _____.
_______ _______ ____ ________ _____ __________ ________.
______ _______ _______ _______ _____ _________ ________ __________.
__________ ____ __________ _______ ______ __________ __________ ____ __________ _________.
____ _______ _________ _________ __________ _________ __________ _____.
_________ _______ _________ ___ _____ __________ _____ _________.
___ ________ _____ __________ _______ _____ ____ ________ _______ _______.
__________ ___ ________ ___ _______ ___ ____.
________ ______ _________ _________ _______ ________ __________ ______ ____ ________ _________ __________.
___ ____ _____ ______ ____ __________ ______.
_______ ______ ______ __________ _____.
_______ _____ _______ ______ ________ _______.
________ _____ _____ _______ ______ ____ ______ _____.
__________ ___ ______ ____ ________ ____ _______.
___ ________ __________ ____ _____ _________ ______ ________ _____ ___ _________ ______.
_______ __________ _____ ________ ______ _______ ________ ______ ______ ____.
___ ___ __________ ____ _________.
________ _____ _________ ____ __________ ______ ________ _____ _____.
_________ _____ ______ _____ ____ ______.
_________ ______ ______ _________ ________ _____ ______.
__________ ______ _________ __________ _____ __________.
____ _____ _______ ____ ____ _______ _________ ______ ______ ______ _____ ______.
______ __________ _______ ___ ___ ______ _________ _______ ________ ________.
____ _______ _______ _____ ____ ______ _______ __________ __________ ________.
___ ___ ________ _________ ________ ________ ___ _____ __________ _____.
______ _____ ____ __________ _________ ________ ____ ___ ____ ____ __________ ______.
_____ _____ ______ _____ ______ ___ _____ ________ _______.
__________ __________ ____ _______ ___ _______.
_________ _________ ___ _____ _______ _________ ________ ___ ___.
__________ _____ ______ _________ ____ _______ _____ ___.
______ __________ __________ ___ __________ ______ __________ ____ ___ __________ _______ ___.
____ ________ ______ ___ _____ ________ __________ _______ _________ _________ ____ ________.
_________ _____ ________ __________ ___.
_______ ___ _____ _____ _______ _________ ___ ___ _________ ____ _______.
_________ ___ ___ _______ ______ _______ __________ _______ ____.
______ __________ __________ ___ ___ __________ _____ ______ _____.
_____ ________ ______ _______ __________ _________ _______.
______ _________ ______ _______ __________ _____.
__________ _______ _______ ____ ___ _______ _________ __________ _________ ___ _______ _______.
__________ ___ __________ _______ ____ ________ ____ __________ __________ _________.
______ ____ __________ _________ ____ ________ _______.
_______ ____ ________ _______ ________ _________ ________ ________ ______.
_______ ____ ___ __________ _____ _________ ____.
_________ _______ _____ ___ ________ ___ ______ _______ _______ ______ __________.
____ _____ __________ _____ ____ ______ __________ ________.
___ ___ _________ ___ _____ ___ ________ ______.
___ _____ ______ ___ _____ ______ __________ ________ ________.
________ __________ ______ ______ _____ _________ __________ _____ _____ __________ ____.
__________ ___ _________ _________ ______ __________ ________ _________ ______ _____.
________ _______ __________ ___ ______ ____ _______ _________ ____ ___ ___ ________.
_________ ______ _________ ________ _________ ___ _______ ___ ________ _______.
____ ________ _________ _______ __________ ___ _______ ___.
______ __________ ____ ______ ______ _______ ______ __________.
_____ ___ _________ ___ ___ ________ ________ _________ _________.
____ ____ _____ ________ _____ ____ _____ _______ __________ ________.
_______ _________ _____ ____ ___ ___ _______ ________ __________ _____ __________.
______ ________ _____ ____ ____ __________ _________.
_____ ___ ____ __________ ___ __________ ______ _________ __________ ______ __________.
____ ____ _________ __________ __________ _________ _________.
__________ ______ ______ __________ _______ ______ ______ __________.
______ ___ ___ ________ ____ _________ __________ _______ ___ _________ ____.
_____ _________ ___ ______ __________ ________ ________ ______.
_________ _________ _________ __________ ___ ________.
______ ________ ____ _______ ____ ___ __________ _______ _____ ______ ______.
___ ____ _______ ________ _______ ___ _______ _______ _______ __________.
_________ ___ ___ _______ ____.
_______ _____ __________ _________ __________ ______ ________ _______ _____.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required