forked from VivekDubey9/Competitive-Programming-Algos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gym Management System UI java
162 lines (157 loc) · 5.01 KB
/
Gym Management System UI java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import java.util.*;
import java.lang.*;
class gym1
{
double height,weight,option;
String gender,contact,a,month,amount,name,name2,name3,address;
Scanner s=new Scanner(System.in);
}
class gym2 extends gym1
{
public void get()
{
System.out.println("\n\t\t\t\tJOKER'S GYM");
System.out.println("\n\t\t*********************************************");
System.out.println("\n\t\t\tPress 1 for Gym Info");
System.out.println("\n\t\t\tPress 2 for Registration");
System.out.println("\n\t\t\tPress 3 for Attendance Portal");
System.out.println("\n\t\t\tPress 4 for Fee Portal");
System.out.println("\n\t\t\tPress 5 for View Gym data");
System.out.println("\n\t\t\tPress 6 for Exercise Schedule");
System.out.println("\n\t\t\tPress 7 for Calculate your BMI");
System.out.println("\n\t\t\tPress 8 for Exit\n\n\n\n\n\n\t\t\t");
}
public void get1()
{
int input1;
input1=s.nextInt();
switch(input1)
{
case 1:
System.out.println("\n\tJOKER'S GYM");
System.out.println("\n******************************");
System.out.println("\nGYM RATINGS : 8/10");
System.out.println("\nGYM INFRASTRUCTURE : 7/10");
System.out.println("\nGYM STAFF ATTITUDE : 9/10");
System.out.println("\nPUBLIC RATINGS : 9/10");
System.out.println("\nGYM ADDRESSS : 703A,Holy Cross Apt,FY rd. ,Andheri-[E],MUM-59");
System.out.println("\nCONTACT : 9769557266");
System.out.println("\nEMAIL : [email protected]");
System.out.println("\n\n\t\t\t\tPress Any Key to return to Main Screen");
get();
get1();
break;
case 2:
System.out.println("\n\tREGISTER NEW USER :\n");
System.out.println("************************************\n");
System.out.println("\nENTER NAME :");
name=s.next();
System.out.println("\nGENDER (M / F) :");
gender=s.next();
System.out.println("\nCONTACT :");
contact=s.next();
System.out.println("\nADDRESS :");
address=s.next();
System.out.println("\n\n\t\t\t\tPress Any Key to return to Main Screen");
get();
get1();
case 3:
System.out.println("\n\tATTENDANCE FOR TODAY :");
System.out.println("\n**************************************\n");
System.out.println("NAME OF TRAINEE :");
name2=s.next();
System.out.println("\n\n"+name2+" has marked attendance successfully !!");
System.out.println("\n\t\t\t\tPress Any Key to return to Main Screen");
get();
get1();
case 4:
System.out.println("\n\tFEE PORTAL");
System.out.println("\n****************************\n");
System.out.println("PRESS 1 TO SUBMIT FEE :");
System.out.println("\nPRESS 2 TO VIEW PENDING FEE :\n\n");
option=s.nextInt();
if(option==1)
{
System.out.println("\nNAME OF TRAINEE :");
name3=s.next();
System.out.println("\nFEE OF MONTH :");
month=s.next();
System.out.println("\nAMOUNT :");
amount=s.next();
System.out.println("\n\n**********PAYMENT SUCCESSFUL !! ***********:");
}
else
{
System.out.println("\n\tAll Trainees have done their payments !!");
}
System.out.println("\n\t\t\t\tPress Any Key to return to Main Screen");
get();
get1();
case 5:
System.out.println("\n\tGYM DATA ");
System.out.println("\n****************************\n");
System.out.println("NAME OF TRAINEE :" +name);
System.out.println("\nGENDER :" +gender);
System.out.println("\nCONTACT :" +contact);
System.out.println("\nADDRESS :" +address);
System.out.println("\n\t\t\t\tPress Any Key to return to Main Screen");
get();
get1();
case 6:
System.out.println("\n\tEXERCISE SCHEDULE \n");
System.out.println("***********************************\n");
System.out.println("MONDAY : CHEST");
System.out.println("\nTUESDAY : BICEPS");
System.out.println("\nWEDNESDAY : TRICEPS");
System.out.println("\nTHRUSDAY : BACK");
System.out.println("\nFRIDAY : LEGS");
System.out.println("\nSATURDAY : SHOULDER");
System.out.println("\n\n\t\tPress Any Key to return to Main Screen");
get();
get1();
case 7:
double bmi;
System.out.println("\n\tBMI CALCULATOR");
System.out.println("\n************************************\n");
System.out.println("ENTER YOUR HEIGHT [in CM] =");
height=s.nextDouble();
System.out.println("\nENTER YOUR WEIGHT [in KG] =");
weight=s.nextDouble();
bmi=weight/((height/100)*(height/100));
System.out.println("\n\nyour BODY MASS INDEX is = "+bmi);
if(bmi<=18.5)
{
System.out.println("\n******YOU ARE THIN******");
}
else if( bmi>=18.6 && bmi<=24.9 )
{
System.out.println("\n******YOU ARE HEALTHY******");
}
else if(bmi==25 && bmi>=29.9)
{
System.out.println("\n******YOU ARE OVER WEIGHT******");
}
else
{
System.out.println("\n******YOU ARE OBESED******");
}
System.out.println("\n\n\n\t\t\t\tPress Any Key to return to Main Screen");
get();
get1();
case 8:
System.out.println("\n\n\t\t\t***THANK YOU***");
System.exit(0);
default :
System.out.println("\n\t\tPlease press key from 1 - 7");
}
}
}
class javaproject
{
public static void main(String args[])
{
gym2 g = new gym2();
g.get();
g.get1();
}
}