Bookmark Topic Watch Topic
  • New Topic

Java/Jbuilder - Anyone with Brains  RSS feed

 
Mike Meakin
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi, I'm new here and new to Java. Anyway I have a small problem which I'm sure someone here has the ability to solve. I need to write a small,simple programe to do the following: compute a final percentage. Assuming that it is made from the following: assignment1 + assignment2 =25%, midterm exam=25%, and Final exam=50%. The actual marks results gained in each were 50,70,70 and 80 respectively. All I have to go on is the following test code:

floatgrade;
grade=MarksCalculator.computePercentage(50f,70.0f,70.0f80.0f);
System.out.println("The computed percentage is : + grade);

I'm sure someone can figure it out, please help,
Many thanks and happy new year.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
See response under duplicate post on Java in General (beginner) board...

http://www.coderanch.com/t/398135/java/java/Java-JBuilder-Anyone-brains-please
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!