pls use java and follow instructions carefully. thanks
Overview This assignment will allow you to write a longer program in java. You will use some of the following constructs you have learned: Scanner (for user input) printf String decisions and loops Task . . . Write a Java program which creates a new bank account for a person. The program will ask for some personal information. Then it will allow the user to make a deposit and two withdrawals. Your program must include input validation and error checking. Please refer to the detailed instructions and sample runs. What to Turn In You need to turn in your java file. If you are using eclipse, you will find it in the project folder of your workspace (by default in C:/Users/
/eclipse- workspace). Navigate to the src folder of your project. Your Java file will be found Submit Cancel New Tabs workspace). Navigate to the src folder of your project. Your java file will be found there. (See my video on setting up eclipse for an example). Detailed Instructions Your program should prompt for the user for their name, street address, city, state, zip code and social security number. It then prompts for an initial account balance. Lastly. it prompts for a deposit amount and two withdrawal amounts. Your program should then display a statement which includes the user information, the starting balance and the additions/subtractions as well as the final balance. Your program should also display how many $100, $20, $10, $5 and $1 bills would be needed to pay out the balance (use as many of the highest dollar amount as possible before computing the next). Input Validation and Error Checking The Strings (name, street address, city, state) must each contain at least one character. The zip code must conta exactly 5 digits. The social security number must be 11 characters (9 digits) in the format: 999-99- 9999 Your program will continue to prompt if any entry is incorrect. The error message Submit Cancel Your program will continue to prompt if any entry is incorrect. The error message should be clear to let the user know what's wrong. For the withdrawals, your program must check the account balance. If the withdrawal amount is larger than the balance, your program should print "Insufficient Balance" and end. Please refer to the Sample Output for examples. Output Ensure your program has clear and meaningful prompts for the user. There should be space between the "" and the user entry. The prompts should be on the same line as the user entry (use System.out.print()) After the user has entered all personal information your program should print a congratulatory message. After the user has entered the financial information, your program should print: 1) A heading for the Account Information 2) The profile information. It should be organized in columns on one line with headings. The name should be CAPITALIZED. 3) An Account Summary/Statement should be printed which includes the financial details and an ending balance Submit Cance -DOS W 4) The output labels should align on the ":" and the dollar amounts should align on the ". Dollar amounts should be two decimal places. (Use printf) 5) A summary of the number of bills needed should be displayed. The output should be neatly labeled, one bill per line. Please refer to the Sample Output for examples. Criteria for Success You will be graded on the following: Your program should meet the specifications of the problem. Make sure you are including ALL required aspects. Your program must be free of syntax, runtime and logic errors. . You must use descriptive prompts You must use the correct data type for all variables Your output must properly display all the required data Your output must meet the formatting requirements You must use meaningful variable/method/class names. These must follow the standard conventions Your program must include Top of program comments: Author name, course name, instructor, due date and program description. Your program rust include comments for all methods used, Your program should seek to minimize redundant code. Code should be easy to read/understand/maintain. Submit Cancel Sample Output - All input values valid (User input data is in red) Welcome to the our bank! Please enter your personal details Name: John Smith Address: 1234 Main st. City: Minneapolis State: MN Zip Code (5 digits): 55444 Social Security Number (999-99-9999): 123-45-6789 Congratulations! You have been approved What is the beginning balance? $1999.97 Amount to deposit: $50 Amount to withdraw: $100 amount to withdraw: $200 Account Information Profile: Submit Cancel Profiles Name Address Zip Code SSN city State JOHN SMITH 55444 MN 1234 Main St. 123-45-6789 Minneapolis ***** Account Summary Initial Balance: $1999.97 Deposit: 50.00 Withdrawal: 100.00 Withdrawal: 200.00 Current Balance: S1749.97 Bill count: $100 Bills: 17 $20 Bills: 2 S10 Bills: 0 S5 Bils: Sla: 4 Center D Submit Carcel Sample Output - Insufficient Balance This run shows that the first withdrawal is too much - the second withdrawal amount is not asked for. In either case, the program should simply end with "Insufficient Balance" Welcome to our bank! Please enter your personal details Name: John Smith Address: 1234 Main St. city: Minneapolis State: MN Zip Code (5 digits): 55444 Social Security Number (999-99-9999): 123-45-6789 Congratulations! You have been approved What is the beginning balance? $500.00 Amount to deposit: 520 Fant to withdraw: S700 insufficient Balance Sample Output - Invalid Data Welcome te bank! Submit Cancel Sample Output - Invalid Data Welcome to our bank! Please enter your personal details Name: Name must not be empty Name: John Smith Address: Address must not be empty Address: Address must not be empty Address: 1234 Main St. city: city must not be empty City: City must not be empty city: Minneapolis State: state must not be empty Suates state must not be empty States MN 2 die 15 dagars det be digits Be abode Subini Cancel zip Code: abcde zip Code must be 5 digits Zip Code: 12 zip Code must be s digits Zip Code: 12345 Social Security Number (999-99-9999): 123*45*6789 Social Security Number is invalid. Must be in 999-99-9999 format. Social Security Number (999-99-9999): 123456789 Social Security Number is invalid. Must be in 999-99-9999 format. Social Security Number (999-99-9999): Social Security Number is invalid. Must be in 999-99-9999 format. Social Security Number (999-99-9999): 123-45-6789 Congratulations! You have been approved What is the beginning balance? $1999.99 Amount to deposit: S50 Amount to withdraw: 520 Amount to withdraw: $60 Account Information Profile: Cancel Submit AD Name city State Address zip Code SSN Minneapolis MN JOHN SMITH 12345 1234 Main st. 123-45-6789 Account Summary Initial Balance: $1999.99 Deposit: 50.00 withdrawal: 20.00 Withdrawal: 60.00 Current Balance: S1969.99 Bill count: $100 Bills: 19 520 B111s: 3 S10 Bills: 55 Bill $1 Bils: 4 Cents: 98 D Submit Cancel