0% found this document useful (0 votes)
15 views3 pages

Source Code 2

source code cricket tct

Uploaded by

DebJyotiGhosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

Source Code 2

source code cricket tct

Uploaded by

DebJyotiGhosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

import java.util.

*;

class School {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int ch;
System.out.println("Enter your choice to know about school ");
System.out.println("*****************SUBMENU****************");
System.out.println("*****************1.STRENGTH****************");
System.out.println("*****************2.FACILITIES****************");
System.out.println("*****************3.SPORTS****************");
System.out.println("*****************4.EXTRA CURRICULAR****************");
ch = in.nextInt();

switch (ch) {
case 1:
System.out.println("The present strength of the school is 2000 out
of which 1100" +
" are boys and 900 are girls");
System.out.println("There are 110 staff members including non-
teaching staff also");
System.out.println("There are 80 teachers and 30 non-teaching
staff");

System.out.println("**************************************************************"
);
System.out.println("Admission charge for Nursery to UKG is
Rs.6540");
System.out.println("Monthly fees for Nursery to UKG is Rs.500");

System.out.println("*************************************************************")
;
System.out.println("Admission charges for class 1 to 10 is
Rs.8000");
System.out.println("Monthly fees for 1 to 6 is Rs.600");
System.out.println("Monthly fees for class 7 to 10 is Rs.750");

System.out.println("*************************************************************")
;
System.out.println("Admission charges for class 11 and 12 is
Rs.10000");
System.out.println("Monthly fee for class 11 and 12 is Rs.950");

System.out.println("*************************************************************")
;
System.out.println("As mentioned above, it was established by late
Mr.UJ.Dugal." +
" The Dugals are highly respected in the region
");
System.out.println("The schools began as a preparation school
catering to the" +
" needs of its immediate surrounding");
System.out.println("It received its affiliation to I.C.S.E Board at
Delhi in March 1979");
System.out.println("The basic motto of the school is …..LIVE TO
LOVE AND SERVE");
System.out.println("To begin with, there were only 25 students and
2 teachers." +
" The first principal of the school was Mrs.
Versa Chand");
break;

case 2:
System.out.println("There are various facilities provided by the
school");
System.out.println("Science labs are equipped with modern
equipment");
System.out.println("There are 50 computers with LAN connection and
laptops are" +
" also provided for 2+ students");
System.out.println("PlayStation for all stations provided");
System.out.println("Libraries for juniors, seniors, and +2 with
interesting drama," +
" scientific books available to all");
System.out.println("The library is a storehouse of information");
break;

case 3:
System.out.println("There are many sports activities like football,
cricket, volleyball," +
" basketball");
System.out.println("Indoor games like chess, carom");
break;

case 4:
System.out.println("Extra-curricular activities");
System.out.println("Quiz, Elocution, Essay, Dance, Drama, Song");
break;

default:
System.out.println("Wrong choice");
}

int ch1, bs;


double da = 0.0, hra = 0.0, pf = 0.0, gross, net;
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
System.out.println("Enter your choice(1-2)");
ch1 = in.nextInt();

switch (ch1) {
case 1:
System.out.println("Enter the basic pay");
bs = in.nextInt();
hra = 0.5 * bs;
da = 0.75 * bs;
pf = 0.25 * bs;
gross = hra + da + bs;
net = gross - pf;
System.out.println("The gross pay of the teachers is =" + gross);
System.out.println("The net salary of the primary teacher is =" +
net);
break;

case 2:
System.out.println("Enter the basic pay");
bs = in.nextInt();
hra = 1.5 * bs;
da = 1.75 * bs;
pf = 0.25 * bs;
gross = bs + hra + da;
net = gross - pf;
System.out.println("The gross pay of the teacher is =" + gross);
System.out.println("The net pay of the primary teacher is =" +
net);
break;

default:
System.out.println("Wrong choice");
}
}
}

You might also like