Your task is to design, develop and test simple application using java programming language which will do required calculations with five person's monthly income and expenses and on the basis of it, and will display report of average yearly salary and average number of years that is required to buy their first home. Following are the detailed functionalities of the program:

Design

Design appropriate pseudocode for required functionalities of program.

Development

Task 1

Display a menu having two options on screen:

1. Start
2. Exit

If user select menu option 1 then do as follows:

1. Program should display a welcome message as follows:

###################################################################
Welcome to my system
Student ID- Your student ID
Student Name- Your name
Display current date
###################################################################

Usage of loop is mandatory in displaying this message

2. Ask user to enter the monthly salary, expenses and their preferred house price for five persons on current day. For all five users:

  • Ask user to enter their salary and expenses for each month one by one. It should be positive number greater than zero.
  • Calculate their monthly savings.
  • Calculate their yearly savings and save it in array.
  • Ask user to enter their preferred house price. If the house price is less than $5, 00,000 then calculate 5% of that price as down payment and if price is between $5,00,000 and $10,00,000 then calculate 10% of that price as down payment and anything more than 10,00,000 will have 15% as down payment and do proper calculations to find out how long they have to wait for saving down payment and save it in array and display report using values from array as follows:
###############################################################
According to data entered from five users on current date,
Their Average yearly savings=$-----and they need average of **years to save
their down payment
Thank you for using the system.
###############################################################

If user select menu option 2, then simply terminate the program and say them good bye by displaying message as follows:

##############################################
Thank you using this system
Good Bye
Student ID- Your student ID
Student Name- Your name
##############################################

If user enter anything else than these menu options, then display an error message and terminate the program.

Task 2

1. Provide appropriate comments in code.

2. Use modularisation in your program. Create 2-3 methods to illustrate your understanding of modularization.

Testing

Use the table below to test your program with test data:

Test case ID Test case Test Data Expected Outcome Actual Outcome

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.