Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By wsaryada

Thread: how to write the coding for this type of question

  1. #1
    sf1213 is offline Member
    Join Date
    Jun 2012
    Posts
    1
    Rep Power
    0

    Default 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.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,236
    Rep Power
    19

    Default Re: how to write the coding for this type of question

    Quote Originally Posted by sf1213 View Post
    CAN ANYONE GIVE ME A GUIDE ON HOW SHOULD I WRITE THE CODING FOR THIS
    Don't post in all caps, that's rude.

    Here's a guide.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default 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.
    DarrylBurke likes this.

Similar Threads

  1. Replies: 8
    Last Post: 05-03-2012, 06:37 PM
  2. Huffman coding algorithm question?
    By knguye88 in forum New To Java
    Replies: 1
    Last Post: 03-12-2012, 09:06 AM
  3. Beginner Question About Java Coding
    By Humphrey Bogart in forum New To Java
    Replies: 3
    Last Post: 03-09-2011, 09:41 PM
  4. question about coding conventions
    By gib65 in forum New To Java
    Replies: 8
    Last Post: 08-05-2010, 04:24 AM
  5. A difficult question - efficient coding?
    By tyang in forum Advanced Java
    Replies: 3
    Last Post: 02-05-2010, 02:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •