III. WriteJAVA variable/constant declarations for thefollowing: [1 pt each, tota
ID: 3617171 • Letter: I
Question
III. WriteJAVA variable/constantdeclarationsfor thefollowing: [1 pt each, total5 pts]
1) Afloating-pointvariable namedstudentScoreand assign a valueof 95.5
2) Acharactervariable namedstudentGradeand assign a valueof A
3) Astringvariable namedstudentNameand assignYourname (for Yournametype your full name)
4) Astringconstant namedCOURSE_NAMEinitialized to a constant valueof COSC1436
5) Anintegerconstant namedYEAR initialized to a constant value of2010
IV. True/False? If False,Explain why? [2 pts each, total10 pts]
1) In JAVA, both the statementsbelow assigns the value 95 to the variable exam1Score?
exam1Score =95;
Explanation / Answer
III. Write JAVAvariable/constant declarations for the following: [1 pt each, total 5pts]
1) A floating-pointvariable named studentScore andassign a value of 95.5 floatstudentScore=95.5;
2) A charactervariable named studentGrade andassign a value of A char studentGrade = 'A';
3) A stringvariable named studentName andassign Yourname (for Yourname type your fullname) StringstudentName="Your Name";
4) A stringconstant named COURSE_NAME initialized to a constant value ofCOSC1436 public static final String COURSE_NAME="COSC1436";
5) An integerconstant named YEAR initialized toa constant value of 2010 public static final int YEAR =2010
IV. True/False? If False, Explainwhy? [2 pts each, total 10pts]
1) In JAVA, both the statements belowassigns the value 95 to thevariable exam1Score?
exam1Score =95; this one true --you left out the 2nd, so can't befinished