Question: In Visual C++, For the first program, we're going to do some minimal processing using iteration, selection, functional decomposition. Assignment Problem: A customer has $1,000,000

In Visual C++,

In Visual C++, For the first program, we're going to do some

For the first program, we're going to do some minimal processing using iteration, selection, functional decomposition. Assignment Problem: A customer has $1,000,000 at his bank account and he wants to buy a new house. But since the new house price may be more or less than $1,000,000 so there are only three situations The house costs less than a million and the user just want to withdraw the amount from his account The house costs more than a million and fortunately the customer has that money in cash and he just want to deposit it The house costs more than a million, but the customer does not have that money so he needs to take a loan from the bank and then calculates the interest. a. b. c. Practical solution: You have to make a program that asks the user about what option he wants to go with. Eaclh option contains a function call. Since you have three options, so you have to write three functions I- Withdraw function: will ask the user about the amount he wants to withdraw from the account. He cannot withdraw more than what he/she currently have in their account and ction to user with the should receive an error message if he tries to do so. Confirm transa amount withdrawn and the amount remaining in his balance Deposit function: will ask the user about the amount of money to be deposit to the account, and the code should confirm the transaction with the amount deposited and the new balance 3- Credit score function: To get a cash loan from bank, the bank needs to check the user's credit score such that it can calculate the interest rate If the credit score is below or equal to 500 then the annual interest rate is 5%, if it is between 501 and 700, the annual interest rate will be 2%, otherwise the annual interest rate will be 1%. The program will ask the user for the number of month to pay off the loan. Depending on number of months and the credit score, the bank will calculate the payment for user for each month using the following formula: (P) (1+r)n/12 here P is the loan, r is the annual interest rate and n is the number of months. transaction, the program should check if the user wants to perform any other f he/she is done

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!