CSCI 261 - Programming ConceptsFall 2018 - A4 - ATMQuick Links: Canvas | Mines | Piazza | zyBooks | 
|||||||||||||||||
| | Home | Contact | Syllabus | Assignments | Schedule | Resources | | |||||||||||||||||
| 
 This assignment is due by Tuesday, October 2, 2018, 11:59 PM. · Instructions · Rubric · Submission · In this homework, we will combine everything we've
    learned so far with a focus on conditionals, loops, and functions. 
OverviewFor this assignment, your job is to create the logic of an Automated Teller Machine.  The user
will be presented with a menu of options.  When the user selects an option, the corresponding function will need
to be called. 
The Specifics
    The following functions must be implemented:
     
 
    With this structure, our  
main.cpp file will contain nothing more than:
    int main() { 
startATM(); return 0; } 
    All of the logic will be contained within the  
startATM() function.  A sample run of the program is below with user input italicized for emphasis:
    Welcome to the Infinite ATM!
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 1
    You currently have $0.00.
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 2
    How many dubloons would you like to deposit?
    4.50
    Thank you for depositing $4.50 dubloons!
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 1
    You currently have $4.50.
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 3
    How much do you wish to take out?
    3
    Here are your $3.00 dubloons!
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 1
    You currently have $1.50.
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 3
    How much do you wish to take out?
    3
    We are sorry, you have insufficient reserves in your treasure store.
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 3
    How much do you wish to take out?
    -3
    We are sorry, we are not in the business of giving away money.
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 2
    How many dubloons would you like to deposit?
    -5
    It seems you are trying to make a withdrawal.  Perhaps try that instead?
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 7
    It is not clear what you are trying to do.
    Please make a selection:
    (1) Print Current Balance
    (2) Deposit Dubloons
    (3) Withdraw Dubloons
    (4) Quit
    Choice: 4
    Thanks for coming!
    You do not need to match the text of the prompts exactly but you must match the functionality presented above.
 
Functional Requirements
 Hints
 Grading RubricYour submission will be graded according to the following rubric. 
 This assignment is due by Tuesday, October 2, 2018, 11:59 PM. SubmissionAlways, always, ALWAYS update the header comments at the top of your main.cpp file. And if you ever get stuck, remember that there is LOTS of help available. The following instructions are copied from How to Submit Homework.  It is critical that you follow these steps when submitting homework.
 
 If you do not follow these instructions, your assignment
    will receive a major deduction. Why all the fuss? Because we have
    several hundred of these assignments to grade, and we use
    computer tools to automate as much of the process as possible.
    If you deviate from these instructions, our grading tools will
    not work. And that makes us very unhappy. And when we're
    unhappy, we give penalties. Thus, make us happy.  
Submission Instructions Here are step-by-step instructions for submitting your homework properly:
 
  In summary, you must zip the  
"Set4" folder
    and only the "Set4" folder, this zip folder must have several sub-folders, you must name all these folders correctly, you must submit the correct zip file for this
    homework, and you must click the "Submit Assignment" button. Not doing these steps is like bringing your
    homework to class but forgetting to hand it in.   No concessions will be made for
        incorrectly submitted work. If you incorrectly submit your homework, we will not be able to
    give you full credit. And that makes us unhappy. This assignment is due by Tuesday, October 2, 2018, 11:59 PM.  | |||||||||||||||||
| 
 Last Updated: 09/26/18 19:54 
 | 
|||||||||||||||||