K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
Ahmed Bin S wrote:1) Welcome to the Ranch
2) Saying your teacher will not be able to explain something in an easy way isn't a good route to go down - I am sure your teacher is perfectly capable of explaining things well to her students.
3) The problem is that in your showResult method, you are outputting the String variable grade, when in fact you should be outputting finalGrade.
Anita Palermo wrote:
OK, I fixed that, but I get this error now: Main.java:55: error: class, interface, or enum expected
}
^
1 error
exit status 1
As to point 2 - I know, but there are reasons not relevant here. ;)
Ahmed Bin S wrote:
Anita Palermo wrote:
As for point 2, I know what the reason is, it's very common amongst students to try and shift the blame on their teacher when they do not understand things. I was simply giving you some advice that doing that isn't a good strategy.
Nah, it's not her fault at all, really and I didn't mean it to sound like I was blaming her. Sometimes I just have to walk away and figure it out and come back with something to troubleshoot.
Anita Palermo wrote:
Ahmed Bin S wrote:
As for point 2, I know what the reason is, it's very common amongst students to try and shift the blame on their teacher when they do not understand things. I was simply giving you some advice that doing that isn't a good strategy.
Nah, it's not her fault at all, really and I didn't mean it to sound like I was blaming her. Sometimes I just have to walk away and figure it out and come back with something to troubleshoot.
Ahmed Bin S wrote:
BTW, if I was a student at your school, and I got 90, 90, 89, I would be pretty annoyed, because I would think I deserve to get an A grade, but your program would award me a B grade.
Ahmed Bin S wrote:BTW, if I was a student at your school, and I got 90, 90, 89, I would be pretty annoyed, because I would think I deserve to get an A grade, but your program would award me a B grade.
Fred Kleinschmidt wrote:
Ahmed Bin S wrote:BTW, if I was a student at your school, and I got 90, 90, 89, I would be pretty annoyed, because I would think I deserve to get an A grade, but your program would award me a B grade.
then you need to study math harder. The criterion for getting an A is average>=90 and clearly the average of (90,90,89) is not >= 90.
There is no need to specify a range for each grade. Just use:
Note that even if the average were to be computed using doubles instead of ints, your grade would still be B.
Campbell Ritchie wrote:No need to get annoyed with each other.
Campbell Ritchie wrote:If an examiner thinks the results deserve a B not an A they will make sure all the 89s are rounded … to 86!
I hope you see what could possibly go wrong here.Anita Palermo wrote:
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|