0% found this document useful (0 votes)
80 views6 pages

Cse 151 Project: Name: Roll No: Section Topic

This C program by Chizim Okoroba (roll number RA100138) is for a section A1001 project on the course details of Lovely Professional University. It displays menus to view details on the course criteria, duration/departments, program fees, mode of payment, and requisites/highlights by opening relevant text files. The user can navigate between these menus and exit the program.

Uploaded by

Victor Chizy O
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views6 pages

Cse 151 Project: Name: Roll No: Section Topic

This C program by Chizim Okoroba (roll number RA100138) is for a section A1001 project on the course details of Lovely Professional University. It displays menus to view details on the course criteria, duration/departments, program fees, mode of payment, and requisites/highlights by opening relevant text files. The user can navigate between these menus and exit the program.

Uploaded by

Victor Chizy O
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

CSE 151 PROJECT

NAME: CHIZIM OKOROBA


ROLL NO: RA100138
SECTION: A1001
TOPIC: UNIVERSITY COURSE DETAIL
*This project is based on Lovely Professional University course detail, and
some information have been modified and added for perfection of the project

Source code of project

#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
FILE *fp,*fp1,*fp2,*fp3,*ft,*ft1,*ft2,*ft3,*ft4,*ft5;
char ch,ch1;
int i;
char back;
clrscr();
printf("\n\t WELCOME TO LOVELY PROFESSIONAL UNIVERSITY
COURSE DETAILS");
printf("\n\ TO VIEW DETAILS ON B.TECH COURSES\n\ **FOLLOW THE
INSTRUCTIONS BELOW :\n");
printf("\n 'C' TO VIEW DETAILS ON COURSE CRITERIA");
printf("\n 'D' TO VIEW DETAILS ON COURSE DURATION AND
DEPARTMENTS");
printf("\n 'F' TO VIEW DETAILS ON PROGRAM FEE");
printf("\n 'M' TO VIEW DETAILS ON MODE OF PAYMENT");
printf("\n 'H' TO VIEW DETAILS ON REQUISITES AND HIGHLIGHTS");
printf("\n ENTER THE LETTERS IN UPPER CASE ONLY, TO VIEW
DETAILS\nTO EXIT AT ANYTIME IN THE PROGRAM ENTER N...\n");
scanf("%s",&ch);
switch (ch)
{
case 'N':
break;
case 'C':
clrscr();
fp = fopen("cc.txt","r");
ch = getc(fp);
while(ch != EOF)
{
putchar(ch);
ch = getc(fp);
}
if (ch == EOF)
{
printf("\nDO YOU WANT TO GO BACK TO MAIN
MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
case 'D':
clrscr();
ft = fopen("dept.txt","r");
ch = getc(ft);
while(ch != EOF)
{
putchar(ch);
ch = getc(ft);
}
if (ch == EOF)
{
printf("\nDO YOU WANT TO GO BACK TO MAIN
MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
else if (back=='1')
{

clrscr();
ft1 = fopen("biotech.txt","r");
ch = getc(ft1);
while(ch != EOF)
{
putchar(ch);
ch = getc(ft1);
}
if (ch == EOF)
printf("\nDO YOU WANT TO GO BACK TO
MAIN MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
else if (back=='2')
{
clrscr();
ft2 = fopen("cse.txt","r");
ch = getc(ft2);
while(ch != EOF)
{
putchar(ch);
ch = getc(ft2);
}
if (ch == EOF)
printf("\nDO YOU WANT TO GO BACK TO
MAIN MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
else if (back=='3')
{
clrscr();
ft3 = fopen("it.txt","r");
ch = getc(ft3);
while(ch != EOF)
{
putchar(ch);
ch = getc(ft3);
}
if (ch == EOF)
printf("\nDO YOU WANT TO GO BACK TO
MAIN MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
else if (back=='4')
{
clrscr();
ft4 = fopen("ece.txt","r");
ch = getc(ft4);
while(ch != EOF)
{
putchar(ch);
ch = getc(ft4);
}
if (ch == EOF)
printf("\nDO YOU WANT TO GO BACK TO
MAIN MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
else if (back=='5')
{
clrscr();
ft5 = fopen("ce.txt","r");
ch = getc(ft5);
while(ch != EOF)
{
putchar(ch);
ch = getc(ft5);
}
if (ch == EOF)
printf("\nDO YOU WANT TO GO BACK TO
MAIN MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
}
case 'F':
clrscr();
fp1 = fopen("pf.txt","r");
ch = getc(fp1);
while(ch != EOF)
{
putchar(ch);
ch = getc(fp1);
}
if (ch == EOF)
{
printf("\nDO YOU WANT TO GO BACK TO MAIN
MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
case 'M':
clrscr();
fp2 = fopen("mp.txt","r");
ch = getc(fp2);
while(ch != EOF)
{
putchar(ch);
ch = getc(fp2);
}
if (ch == EOF)
{
printf("\nDO YOU WANT TO GO BACK TO MAIN
MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
case 'H':
clrscr();
fp3 = fopen("rh.txt","r");
ch = getc(fp3);
while(ch != EOF)
{
putchar(ch);
ch = getc(fp3);
}
if (ch == EOF)
{
printf("\nDO YOU WANT TO GO BACK TO MAIN
MENU (Y/N) \n");
scanf("%s",&back);
if(back=='Y')
main();
else if(back=='N')
break;
}
default :
printf("Your choice is Invalid, try again !!");
delay(800);
main();
}
getch();
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy