sportsd92
2012-11-18 11:59:10 UTC
- void print_greeting (void); - This function prints an explanation of the program to the user. You should assume the user knows nothing about the program and give a detailed explanation.
- void print_menu (void); - This function displays the menu to the screen.
- float get_positive_value (void); - This function gets a positive (greater than 0) value from the user. It should error check the user input to make sure the value is greater than 0, and loop until the user enters a proper value. (We written this kind of loop many times during the term, so refer to old lecture slides.) It takes no arguments and returns the value entered by the user. You should use this function to get the beginning balance from the user. You should also use it to get the amount to withdraw or deposit.
- float withdrawal (float balance, float withdrawal_amt); - This function takes the current balance and the amount to withdraw. It returns the new balance after the withdrawal is made.
- float deposit (float balance, float deposit_amt); - This function takes the current balance and the amount to be deposited as arguments. It returns the new balance after the deposit is made.
- void print_receipt (int total_withdrawals, int total_deposits, float beg_balance, float balance); - This function prints an account summary to the screen. It should list the total number of withdrawals, the total number of deposits, the beginning balance and the ending balance. It does not have to match the sample output exactly.
the options for the display are
1. withdrawal
2. deposit
3. account summary (displays end balance, beg balance, and the amt of withdrawals and deposits made)
4.quit
Please help I have no idea how to write these