Meaningless Drivel is fun!*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Grade Calculation program" Watch "Grade Calculation program" New topic
Author

Grade Calculation program

shalom hali
Greenhorn

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 errors.am 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
Bartender

Joined: Mar 17, 2011
Posts: 7545
    
  18

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

Shalom:
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.

Winston

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
Bartender

Joined: Mar 17, 2011
Posts: 7545
    
  18

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

We prefer not.

Winston
ajay smith
Greenhorn

Joined: Feb 02, 2013
Posts: 9
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.
 
 
subject: Grade Calculation program
 
Similar Threads
Help with "scan.next() incompatible types"
getting java.lang.NoSuchMethodError: main error! thanks =)
While and Do-While Question
Initializing variables
Grade Averaging and Letter Grade Project