Results 1 to 3 of 3
- 06-06-2012, 07:51 AM #1
Member
- Join Date
- Jun 2012
- Posts
- 1
- Rep Power
- 0
how to write the coding for this type of question
HI ALL,IM JUST STARTED TO LEARN ON JAVA,I NEED SOME HELP,CAN ANYONE GIVE ME A GUIDE ON HOW SHOULD I WRITE THE CODING FOR THIS
Create a class named Student (class definition program). The class contains:
Private attributes to store values of Student name, Student university and Student mark.
A method named initialize() to assign initial value to the Student name, Student University and Student mark as specified in the parameter.
A method named reverse() to display Student name in reverse order.
A method named determineOUM() to determine if a student comes from Open University Malaysia or not. This method will return true if the value in the object is equal to the specified value.
A method named determineGrade() to determine grade based on Student mark. This method will return grade of a student.
A method named toString() that returns a string description for the student.
Given the grades according to marks:
Mark Grade
90 and above A
70 89 B
50 69 C
0 49 D
Create the class program that has main() method for execution. This program should create two Student objects and implement all methods listed in the Student class.
- 06-06-2012, 10:38 AM #2
Re: how to write the coding for this type of question
Don't post in all caps, that's rude.
Here's a guide.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 06-06-2012, 10:44 AM #3
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Re: how to write the coding for this type of question
The instructions are very clear in my opinion. So start writing your code, we'll help you when you have any problem with the code.
Website: Learn Java by Examples
Similar Threads
-
guys....im having problem with this coding question.do help me
By ah choy in forum New To JavaReplies: 8Last Post: 05-03-2012, 06:37 PM -
Huffman coding algorithm question?
By knguye88 in forum New To JavaReplies: 1Last Post: 03-12-2012, 09:06 AM -
Beginner Question About Java Coding
By Humphrey Bogart in forum New To JavaReplies: 3Last Post: 03-09-2011, 09:41 PM -
question about coding conventions
By gib65 in forum New To JavaReplies: 8Last Post: 08-05-2010, 04:24 AM -
A difficult question - efficient coding?
By tyang in forum Advanced JavaReplies: 3Last Post: 02-05-2010, 02:48 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks