You are on page 1of 5

//projet: LPU SCHOARSHIP SCHEME

#include<stdio.h>

#include<conio.h>

void scholarship1(char stream[50]){

float f;

printf("Enter your percent in 12th\n");

scanf("%f",&f);

if(f>=98){

printf("40,000 scholoarship will be awarded as per your stream(%s) and


percentage(%f)",stream,f);

else if((f>=90)&&(f<98)){

printf("30,000 scholoarship will be awarded as per your stream(%s) and


percentage(%f)",stream,f);

else if((f>=80)&&(f<90)){

printf("20,000 scholoarship will be awarded as per your stream(%s) and


percentage(%f)",stream,f);

else{

printf("sorry...NO schloarship will be awarded as per your stream(%s) and


percentage(%f)",stream,f);

void schloarship2(char stream[50]){

float f;

printf("Enter your percent in 12th\n");

scanf("%f",&f);

if(f>=98){

printf("75,000 scholoarship will be awarded as per your stream(%s) and


percentage(%f)",stream,f);

else if((f>=90)&&(f<98)){
printf("50,000 scholoarship will be awarded as per your stream(%s) and
percentage(%f)",stream,f);

else if((f>=80)&&(f<90)){

printf("40,000 scholoarship will be awarded as per your stream(%s) and


percentage(%f)",stream,f);

else{

printf("sorry...NO schloarship will be awarded as per your stream(%s) and


percentage(%f)",stream,f);

void eng(){

int ch;

char stream[8][50]={"Electronics and Communications Engineering (ECE)","Electrical


Engineering (EE)","Computer Science and Engineering (CSE)","Electrical and Electronics Engineering
(EEE)","Information Technology (IT)","Information Technology (IT)","Mechanical Engineering
(ME)","Biotechnology (BT)"};

z:

printf("Choose a stream.\n");

for(int i=0;i<8;i++){

printf("%d)%s\n",i+1,stream[i]);

scanf("%d",&ch);

if((ch>0)&&(ch<9)){

scholarship1(stream[ch-1]);

else{

printf("Invalid choice\n");

goto z;

}
void applied(){

int ch;

char stream[3][50]={"Pharmaceutical Sciences","Physiotherapy","Medical Laboratory


Sciences"};

z:

printf("Choose a stream.\n");

for(int i=0;i<3;i++){

printf("%d)%s\n",i+1,stream[i]);

scanf("%d",&ch);

if((ch>0)&&(ch<4)){

schloarship2(stream[ch-1]);

else{

printf("Invalid choice\n");

goto z;

int main(){

printf(" pradeep NAIDU ");

printf("\t\t--------------------------------------------\n");

printf("\t\t@ @\n");

printf("\t\t@ LPU SHCHOLARSHIP SCHEME @\n");

printf("\t\t@ @\n");

printf("\t\t--------------------------------------------\n");

int q,ch;

z:

printf("Choose your last qualification.\n");

printf("1)12th 2)Graduation\n");

scanf("%d",&q);
printf("\n\n\n");

if(q==1){

printf("which disciple are you interested in?\n");

printf("1)Engineering 2)Management 3)Applied Medical Sciences


\n4)Computer Applications and IT 5)Commerce 6)Pharmaceutical Sciences\n");

scanf("%d",&ch);

printf("\n\n\n");

switch(ch){

case 1:

eng();break;

case 2:

scholarship1("Management");break;

case 3:

applied();break;

case 4:

scholarship1("Computer Applications and IT");break;

case 5:

scholarship1("Commerce");break;

case 6:

schloarship2("Pharmaceutical Sciences");break;

default:

printf("Invalid choice");

else if(q==2){

printf("which disciple are you interested in?\n");

printf("1)MTech 2)Management 3)agriculture \n4)Computer Applications


and IT 5)law 6)fashion designing\n");

scanf("%d",&ch);

printf("\n\n\n");

switch(ch){
case 1:

eng();break;

case 2:

scholarship1("Management");break;

case 3:

scholarship1();break;

case 4:

scholarship1("Computer Applications and IT");break;

case 5:

scholarship1("law");break;

case 6:

schloarship2("fashion design");break;

default:

printf("Invalid choice");

else{

printf("Invali choice\n");

goto z;

return 0;

You might also like