Consider a class that keeps track of the students in a session. An object of this class will have the attributes • Total number of students • Total number of scholarships awarded • Scholarships per student • Total scholarship amount • Donations received for scholarships • Unutilized balance of donations and the following methods: • registerScholarships(n) records the scholarship amount to n percent of the total number of students. If n is larger than 10%, the scholarship amount per student will be reduced.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 5GZ
icon
Related questions
Question

Consider a class that keeps track of the students in a session. An object of
this class will have the attributes
• Total number of students
• Total number of scholarships awarded
• Scholarships per student
• Total scholarship amount
• Donations received for scholarships
• Unutilized balance of donations
and the following methods:
• registerScholarships(n) records the scholarship amount to n percent
of the total number of students. If n is larger than 10%, the scholarship
amount per student will be reduced.
• displayUnutilizedDonations displays the amount of donations
received and the amount that remains unutilized.

a. Implement the class in Java.
b. Write some Java statements that test the class.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Developing computer interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT