Skip to content

Commit 688aebf

Browse files
committed
Added readme
1 parent ba5c85a commit 688aebf

File tree

2 files changed

+117
-1
lines changed

2 files changed

+117
-1
lines changed

Java_Assignment/README.md

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
### Assignment 1
2+
3+
Create a java program that enters the details of 10 students by creating a class student. The details
4+
entered are Rollno, Name, Phone number, age and CGPA. Display the name of the student with the
5+
highest CGPA. Display the phone number of the student whose name is ‘ANU’. Display the Rollno of
6+
the youngest student in the class.
7+
8+
```
9+
Enter roll no :
10+
101
11+
Enter Name :
12+
ANU
13+
Enter Phone no :
14+
987654321
15+
Enter age :
16+
20
17+
Enter CGPA :
18+
10
19+
Enter roll no :
20+
102
21+
Enter Name :
22+
Vishal
23+
Enter Phone no :
24+
74836583
25+
Enter age :
26+
18
27+
Enter CGPA :
28+
9
29+
Enter roll no :
30+
103
31+
Enter Name :
32+
Shiwine
33+
Enter Phone no :
34+
934857362
35+
Enter age :
36+
19
37+
Enter CGPA :
38+
8
39+
Enter roll no :
40+
105
41+
Enter Name :
42+
Akhil
43+
Enter Phone no :
44+
23847829
45+
Enter age :
46+
18
47+
Enter CGPA :
48+
10
49+
Enter roll no :
50+
106
51+
Enter Name :
52+
Abhinav
53+
Enter Phone no :
54+
38593759
55+
Enter age :
56+
20
57+
Enter CGPA :
58+
9
59+
Enter roll no :
60+
108
61+
Enter Name :
62+
Leo
63+
Enter Phone no :
64+
2378348
65+
Enter age :
66+
19
67+
Enter CGPA :
68+
10
69+
Enter roll no :
70+
109
71+
Enter Name :
72+
Sajad
73+
Enter Phone no :
74+
8473929
75+
Enter age :
76+
19
77+
Enter CGPA :
78+
8
79+
Enter roll no :
80+
110
81+
Enter Name :
82+
Vasim
83+
Enter Phone no :
84+
2384983
85+
Enter age :
86+
20
87+
Enter CGPA :
88+
10
89+
Enter roll no :
90+
111
91+
Enter Name :
92+
Alan
93+
Enter Phone no :
94+
3284929
95+
Enter age :
96+
21
97+
Enter CGPA :
98+
7
99+
Enter roll no :
100+
112
101+
Enter Name :
102+
Vyshu
103+
Enter Phone no :
104+
2138439
105+
Enter age :
106+
19
107+
Enter CGPA :
108+
10
109+
Data are:-
110+
Name of the student with highest CGPA : ANU
111+
Phone no. of ANU : 987654321
112+
Roll no. of youngest student : 102
113+
```
114+
115+
116+

Java_Assignment/assignment-1.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static void main(String args[])
5252
}
5353
}
5454
System.out.println("Name of the student with highest CGPA : "+s[l].name);
55-
System.out.println("Phone no. of Anu : "+s[n].phno);
55+
System.out.println("Phone no. of ANU : "+s[n].phno);
5656
System.out.println("Roll no. of youngest student : "+s[a].rno);
5757
}
5858
}

0 commit comments

Comments
 (0)