1

i'm doing java exercise, their is 6 question and i had done 5. another 1 i tried all the alternative but still error.
this code:

class __(1)__ {
  static ___(2)___ int MIDTEST = 30;

public static void main(String [ ] args) {
int a=15, b=10, quiz, ___(3)___;
Course ____(4)___ = new Course( );
quiz=courseWork.calculateMark(a);
assignment=courseWork.calculateMark(a,b);
System.out.println("Quiz Mark : " +quiz);
System.out.print("Assignment mark: " +assignment);
}
public int calculateMark( __(5)__ )
{
  return (a + MIDTEST);
}

public ___(6)___ calculateMark(int a, int b)
{
  return (a+b);
}
}

i had answered :
1. Course
2. final
3. assignment
4. courseWork
6. void

but for no.5 i had try to fill int a, a, quiz, assignment, int quiz, int assignment, int MIDTEST but still can.
anybody can help me ??

thanks.

Edited by Nick Evan: Removed bb-tags. Added code-tags

2
Contributors
4
Replies
6
Views
8 Years
Discussion Span
Last Post by bubunchan
0

now that i look at it, im thinking no shit lol. But the answer for 5 seems like it should be int a because a doesnt work (sense it doesn't know the variable type) and midset is a static final constant

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.