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 appropriate pseudocode for required functionalities of program.
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:
###############################################################
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.
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 |