This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Grade Calculation program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Grade Calculation program" Watch "Grade Calculation program" New topic

Grade Calculation program

shalom hali

Joined: Mar 30, 2013
Posts: 1
I need to write a program that calculates grades for homework,i get midway in it and check the compiler to see if i got errors and i get an "ilegal start of type next to my first if,this is what i wrote so far:can anyone please help?
Ojonugwa Ochalifu
Ranch Hand

Joined: Feb 08, 2011
Posts: 62
It's hard to offer any suggestions,since your code has a lot of not sure am allowed to tell you the answer,but there is a lot you need to correct in you code...use Netbeans or Eclipse,they will help you identify the causes of the errors
Winston Gutkowski

Joined: Mar 17, 2011
Posts: 8661

shalom hali wrote:this is what i wrote so far:

1. Welcome to JavaRanch.
2. Before you post any more code, please read the UseCodeTags (←click) page; and read it carefully. I've added them for you this time.


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Winston Gutkowski

Joined: Mar 17, 2011
Posts: 8661

Alan Anderson wrote:am not sure am allowed to tell you the answer...

We prefer not.

ajay smith

Joined: Feb 02, 2013
Posts: 11
First, make sure your variables match. For example, declaring a variable FlyingPenguin and than later referencing it by PenguinThatFlies doesn't work. Also, Java is case-sensitive, so watch out for that. There are a lot more errors that look like they might by typos, but I recommend using something like eclipse, which spots your errors for you.
Have you checked out Aspose?
subject: Grade Calculation program
It's not a secret anymore!