Results 1 to 8 of 8

Thread: need help moving a program into classes

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Posts
    6

    Resolved need help moving a program into classes

    hello everyone

    how is everything going?

    i am a new user here and and was wondering if anyone could help me with a program that i am writing. i have it most of it writen its but need to put it into classes. i just started to learn java so this stuff is new to me
    if anyone can help please let me know.

    thank you

    this is the basic overveiw of the program i am trying to write
    :

    i need Create an employee class with data members:
    name, department number, employee number and salary
    Derive a class student employee from the employee class.
    student employee data members:
    grade point average & accumulated hours

    The input should include name, department number, employee number, salary, grade point average and accumulated hours.

    In addition, after all the data has been entered, i need to sort student employees by name.

    and Store the valid student employee records in an array of student employees

    also, Store the invalid student employee records in an array of student employees.
    what the program does

    Reads in name, department number, employee number, salary, grade point average and accumulated hours.

    Validate the values in a method and displays unique error messages.

    Count the number of good records, bad records and total records.

    Display the average of the salaries in the good records.

    When the user has entered 5 records, display the records in the arrays sorted by name.

    these
    Ranges:
    name 1 - 10 characters
    department number valid range : 1 -10
    employee number valid range : 1 - 100
    salary valid range : 1.0 - 999.99
    grade point range : 0.0 - 4.0
    accumulated hours: equal to or greater than zero

    i am helping out a freind that needs this program to work, i am having some trouble

    i have this program working without the use of classes and sorts so if anyone can help and would like to see my code please let me know
    any help would be apprecaited thank you
    thank you again
    Last edited by dante27; Dec 1st, 2004 at 03:52 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
  •  



Click Here to Expand Forum to Full Width