Question: Consider the following java program ` ` ` package exams; public oless Exambetails & public atatie void main ( StEing [ ] arga ) (

Consider the following java program
```
package exams;
public oless Exambetails &
public atatie void main(StEing[] arga)(
StudentReaulea astudent = nev StudentRearLta() ;
String sName = astudent.fullNane("Badre Soularni") s
$tring exean = astuclent,exanName ("V1") ;
String acore = aSeudent.exanScore (90):
String grade = ascudent. exam0xade (90) :
Syatens. O&t-print in( sNome );
Syarem. obt.printin( exam );
System. obl.printin( scoke ):
Syscew. out = printin( grade )y
3
3
```
1
```
packnge exarar:
prbize olass stodentBesults t
pciwase acxioy Fall_Foses
privare Sering Eram_Knese;
pulwate acring Enas_seoke.
prsvase Atring Erax_Grader
Stwelemthesults [){
rall_Kenen = "Tho Mone Gsven";
Enas_Nuse = "Uaknova":
Eras_3pore ="Ho 3core";
Eraz_Grade = "Trkmova":
I
```
```
Fuli_Mane = altase?
return Fuit_Focet;
B(ting exandiane (ing exanCode){
4%(erancods. Eganla("vD"))
Enan_Nase = "Tliswol Basto ,MeT"y
\
elae if (exncaCode.equala["N\") &
Zxan_Mane ="3wva":
\gamma
```
```
ExHs_BHne =+CF ,SOLT'1
I
else it lexunCode-equas(s)("PR"i){
Erax_Nuse = "rap";
?
else \
Txnn_Mlun ="Ks Zxus Aelectad";
>
return Exan_Mane1
```
```
String examScare {int aseoge)f
Eran_geoce = asooce +* out of 100*,
retura Exon_Fcore;
?
8trim/manskadg\int asoocel \
Eran_(enSi = this. getGrnde (sGleore);
retura Exas_Gcada:
)
privare String %etirade (int afoore)(
2
3tring exnanGEade =**;
if (nScore >=06.4 atcore =69)4
exaenGrade ="F" I
1
else it (aScore >=6066 ascore =69){
extenGrade ="0- ;
1
elae it (aScore >=7066 aScore =79)(
exnanGrade ="C" ;
}
else it (aScore >= $066 abcore =39)(
exnagrade ="B';
1
else it (aScore >=90){
exnanGrade ="A";
}
retura "Graste in "+ exanGrade;
)
\
```
a)- What is the output of the program.
b)- What is the need of the method examGrade
Consider the following java program ` ` ` package

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!