Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: java exercise

  1. #1
    Junior Member
    Join Date
    Mar 2021
    Thanked 0 Times in 0 Posts

    Post java exercise

    A) To define the Student class, which contains attributes: Name, Age, matriculation number, average of grades for 2 semesters and is able to say (Good morning, Good morning, Good evening, Good night) depending on a characteristic of the beginning of the day, the middle, the end of the day or the beginning of the night. Within class 1, define a constructor and methods that allow setting and retrieving values for attributes. Within the student class, define the method that determines whether the student is a scholarship holder throughout the year (scholarship grade> = 7).

    B) Using the defined class, set the data for a student (the data will be read from the keyboard). Display a message on the screen regarding whether or not the student is receiving a scholarship.

    C) Fill in the data for n students and display the names of the scholarship students on the screen
    I don't know how to solve this problem, HELP ME, PLEASE!!!

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,636 Times in 2,586 Posts

    Default Re: java exercise

    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. accessor and modifier method exercise; exercise 100
    By ghostheadx in forum What's Wrong With My Code?
    Replies: 6
    Last Post: December 30th, 2013, 10:18 PM
  2. Java exercise
    By nhiap6 in forum Java Theory & Questions
    Replies: 1
    Last Post: January 2nd, 2013, 11:04 AM
  3. java Bluej Exercise
    By kiara4 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 27th, 2012, 03:43 PM
  4. Java Programming Exercise
    By Garron5899 in forum Loops & Control Statements
    Replies: 5
    Last Post: July 27th, 2012, 08:12 AM
  5. JAVA exercise
    By gmilan in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 13th, 2010, 02:30 PM

Tags for this Thread