Ask your own question, for FREE!
Computer Science 39 Online
OpenStudy (anonymous):

Write a Java program to calculate the grade of the student using the below criteria. Grade "Excellent": Marks>75 Grade "Satisfactory": 75>Marks>50 Grade "Needs Improvement": 50>Marks>40 Grade "Failing": Marks<40

OpenStudy (konradzuse):

this is actually extremely easy using a case statement... How much do you know about Java?

OpenStudy (anonymous):

Just started taking a Java class in January. I can't get this program to work. Can U help?

OpenStudy (konradzuse):

post what you have please.

OpenStudy (anonymous):

class Grade { public static void main(String args[]) { int A, B, C, D, F;

OpenStudy (konradzuse):

ok a few things. 1 it's String[] args 2. your grades aren't A-F Grade "Excellent": Marks>75 Grade "Satisfactory": 75>Marks>50 Grade "Needs Improvement": 50>Marks>40 Grade "Failing": Marks<40 They are "Excellent, Sat, etc. You need to do if statements. int mark; if(mark > 75) { system.out.println("Excellent"); } else if(.......) ...... ... ...

OpenStudy (konradzuse):

now does it work?

OpenStudy (anonymous):

Yes it does..

OpenStudy (konradzuse):

Well good show me lad! Welcome to the programming world.

OpenStudy (anonymous):

All I needed was to get pointed in the right direction. Thanks again!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
luvnickk: what typa music yall listen to ?
25 minutes ago 15 Replies 2 Medals
GothgirlLillian: Is music considered art?
39 minutes ago 2 Replies 0 Medals
luvnickk: am newwww
4 hours ago 0 Replies 0 Medals
russianmafiya: can someone help me write a love song
5 hours ago 1 Reply 0 Medals
arrivhn: ADD ME ON DISCORD ICYAFFL
5 hours ago 4 Replies 1 Medal
arrivhn: whats is the accute of a cricle
5 hours ago 4 Replies 3 Medals
arrivhn: KNOCK KNOCK
5 hours ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!