Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

can someone help???

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This is my assignment:
***************************************************************************
This is the rest of the assignment, if anyone understands how to pull from the MBAstudent class and then transfer everything to the MBAstatus class, I would sure would love the help.
Then create a class called MBAstudent. This class has two variables: gpa and gmat, and inherits from Student. Create a default constructor and a non-default constructor. The class should have a method to check if the input for first name and last name is valid, for example, it should be a string with length greater than zero.
The method checkQualification returns true if gpa is greater or equal 3.0 and gmat is greater than or equal 550. If gpa or gmat is not provided, admitted will have a false value. Create all needed get and set methods for this class as well. The range: 0<=gpa<=4.0, 0<=gmat<=800.
Create an implementation class called MBAstatus. This could use Label, TextField, TextArea, or JOptionPane components that get the first name, last name, social security number, gpa, and gmat, and uses them to create a student object, and gets its admitted status and shows it back to the user. Include the following functions: 1. For getting the information from the user, to create the MBAstudent object, and to determine the admitted status and to put it back to the screen. 2. For clearing the TextFields and TextArea if used.
***************************************************************************
this is the code that I have so far:


When I try to compile the second part, I get a bunch of errors and I am still not done with it. I don't know what to do.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Originally posted by Stephen Norris:

When I try to compile the second part, I get a bunch of errors and I am still not done with it. I don't know what to do.


A good start would be to share the errors you are getting. We Java folk are busy people.
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
closing this thread.
Reply in the other thread:
https://coderanch.com/t/394843/java/java/possible-help-if-you-have
[ November 12, 2003: Message edited by: Thomas Paul ]
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
    Bookmark Topic Watch Topic
  • New Topic