Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using the method main public static void main(String[] args) { II. A ResidentSenior class: In the same directory (folder), create a new class called ResidentSenior.

using the method main
public static void main(String[] args) {
image text in transcribed
image text in transcribed
II. A ResidentSenior class: In the same directory (folder), create a new class called ResidentSenior. This class will be used to represent a senior citizen who is living in a residence within the retirement complex. For each resident senior, we will have the following instance variables: name - The full name of the senior (e.g. Joan Murphy). nursing CareAmount - The amount that this senior will pay per month for the care program that he/she has selected. entertainmentAmount - The amount that this senior will pay per month for the activities and entertainment plan that he/she has selected. funding Support - The amount of financial support that this senior receives each month (e.g. from government assistance programs, etc.) home - The residence within the retirement complex where this senior is currently living (Note: use the class that you created in part 1.) Provide a constructor method that will initialize all of the instance variables. Continued on the next page... Next, add method calls to your code (below the code that you already have) to record the fact that: Adaleen has decided to give lawn bowling a try. This new activity increases her entertainment fees. Her monthly entertainment cost is now $64.00. Walter has moved to a new apartment to be closer to some of the entertainment that he so enjoys. He now lives in apartment 313 of Cedar Lake Hall and his new apartment costs $1280.00 per month. . Ruth recently fell & broke her hip. She now requires more assistance, so she has changed nursing care plans. Her care amount is now $2295.82 per month. Adaleen discovers that she is eligible for additional government funding because of her service in the military when she was younger. Her total funding amount is now $764.00 . Finally, add code to the bottom of your main method to retrieve and print out for each resident senior: A mail label The total amount of fees owing (for this month). Note: You need not worry about displaying the fees owing with exactly two decimal digits. (We'll discuss formatting numeric output a bit later in the course.) Run your test driver and redirect the output to a file named As4Output.txt. Examine this file carefully to verify that your code works properly. If there are any problems, you may need to return to parts I and/or II to modify some of that code. If you do need to modify your code from parts I and/or II, check to see if any changes to the javadoc comments are also needed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago