IGNOU BCSL-021-C Language Programming Lab, Latest Solved Assignment (July 2023 - January 2024 )

ignoustudymentor.com

Q1. 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.

Note: You must execute the program and submit the program logic, sample input and output along with the necessary documentation for this practical question. Assumptions can be made wherever necessary.

#include <stdio.h>
int main() {
int choice;
// Print the menu options
printf(“1) General Information of the Learner Support Centre(LSC)\n”);
printf(“2) Programmes activated in the study centre\n”);
printf(“3) Scheduling of theory/practical sessions for BCA-MCA programmes\n”);
printf(“4) Academic Councillor’s Details\n”);
printf(“5) Schedules for Assignment submissions for various programmes\n”);
printf(“6) Quit\n”);
printf(“Enter your choice: “);
// Get the user’s choice
scanf(“%d”, &choice);
// Assume that the information is already available and hardcoded
// Switch on the user’s choice
switch (choice) {
case 1:
// Get the study centre code
printf(“Enter the study centre code: “);
scanf(“%d”, &choice);
// Print the general information of the LSC
printf(“Name of the Learner Support Centre: ABC Learning Support Center\n”);
printf(“Name of the Regional Centre: XYZ Regional Center\n”);
printf(“Name of the Study Centre Coordinator: John Doe\n”);
printf(“Name of the Programme In-charge: Jane Smith(BCA), David Johnson(MCA)\n”);
break;
case 2:
// Print the list of programmes activated in the LSC
printf(“List of programmes activated in the LSC: “);
printf(“1. Bachelor Of Computer Application (BCA)\n”);
printf(“2. Master of Computer Application (MCA)\n”);
break;
case 3:
// Print the schedule of theory/practical sessions for BCA-MCA programmes
printf(“Schedule of theory/practical sessions for BCA-MCA programmes: “);
printf(“Session: August 2023 – January 2024\n”);
printf(“BCA:\n”);
printf(” – Theory Session: Mondays and Wednesdays, 6:00 PM – 8:00 PM\n”);
printf(” – Practical Session: Fridays, 3:00 PM – 5:00 PM\n”);
printf(“MCA:\n”);
printf(” – Theory Session: Tuesdays and Thursdays, 7:00 PM – 9:00 PM\n”);
printf(” – Practical Session: Saturdays, 2:00 PM – 4:00 PM\n”);
break;
case 4:
// Print the details of the academic councillors’ associated with respective programmes
printf(“Details of the academic councillors’ associated with respective programmes: “);
printf(“BCA Programme:\n”);
printf(” – Name: Emily Johson\n”);
printf(” – Email: emily045@gmail.com\n”);
printf(” – Phone: +1 (929) 235-7036\n”);
printf(“MCA Programme:\n”);
printf(” – Name: Robert Smith\n”);
printf(” – Email: robert367@gmail.com\n”);\
printf(” – Phone: +1 (408) 555-1234\n”);
break;
case 5:
// Print the assignments submission schedules for various programmes
printf(“Assignments submission schedules for various programmes: “);
printf(“BCA Programme:\n”);
printf(” – Assigment 1: September 15, 2023\n”);
printf(” – Assigment 2: October 10, 2023n”);
printf(“MCA Programme:\n”);
printf(” – Assignment 1: September 20, 2023\n”);
printf(” – Assignment 2: October 15, 2023\n”);
break;
case 6:
// Quit the program
break;
default:
// Invalid choice
printf(“Invalid choice.\n”);
break;
}
return 0;
}

BCSL-021
BCSL-021
BCSL-021
BCSL-021
BCSL-021
BCSL-021
BCSL-021
BCSL-021
ignoustudymentor.com

BCSL-021

Download Now

BCSL-021

Other Questions With Answers

Other Subjects

Click Here

Student Quick Services

error: Content is protected !!