The Hong Kong Polytechnic University

Similar documents
DFCU ONLINE - USER MANAGEMENT

Point West Mobile Banking App. A Comprehensive Guide

KCCU Online Banking - For Members Use

Long Term Disability Online Payment Instructions

Header Description: This use case describes how the ATM user withdraws cash from the ATM.

Banking System Upgrade - Frequently Asked Questions (FAQs)

In addition to these resources, our staff will be on hand to help walk you through any questions or concerns you have post-conversion.

Long Term Disability Online Payment Instructions

Mobile PC Branch App for ipad Walkthrough

ATM Use Cases. ID: CIS Title: Check Balance Description: Customer aims to know the balance in his/her account

Studio Designer Basic

WESTOBA CREDIT UNION MOBILE APP HOW-TO GUIDE! CONTENTS (click to go straight to location) ACCOUNTS... 4 SETTINGS... 8 PAY BILLS... 4 TRANSFERS...

Insurance Board customers may pay your bill online or pay by mail. 1) Enroll in the online payment system 2) Pay Now option (for those not enrolled)

Guide to Getting Started. Personal Online Banking & Bill Pay

Business Mobile Banking Quick Reference Guide

Personal Online Banking & Bill Pay. Guide to Getting Started

BUSINESS ADVANTAGE USER GUIDE

Get the most from your Health Savings Account. Your guide to your HSA and online account access

Mobile PC Branch App for iphone Walkthrough

Business Portals Guide

Using the New CDSP Online epay System

MEMBER SERVICE AND TELLER QUESTIONNAIRE

Overview + Navigation // Business ebanking Mobile

User Manual. <MacBank ABM> for. Contents. Prepared by. Version <2.0> Group Name: Group 304. Instructor: Dr. Kamran Sartipi Course:

Name: Checked: Objectives: Practice creating classes and methods, and using them in your programs.

Consumer Portal Quick Start Guide


GETTING STARTED ONLINE

Requirements document for an automated teller machine. network

Welcome to Your. Online Banking Experience

Overview. Guide for the Authorized User

University of Gujrat Lahore Sub Campus

Step 1 - Navigate to City of Lawrence Utility Billing Portal

Phone Banking BSP. User Guide. Why wait in line? Bank by phone with BSP. Bank South Pacific.

Supervisor s Guide. supervisor s guide (continued) Welcome to NBT Online Banker for Business! Supervisor Functions NBT ONLINE BANKER FOR BUSINESS

User Guide #PeopleFirst

Personal Account Switch Kit

Sandbox Parent Portal - Parent Manual

Business Online Banking & Bill Pay Guide to Getting Started

Lab 3 Finite State Machines Automated Teller Machine

SmartHub Web: How to Make One-Time Payment

Westpac phone banking

FORUM Business Online Banking

Contents. This manual is a work in progress. If you see procedures that could be improved, please your suggestions to

HOW TO SET UP AND USE EBILLING

Invoice Gateway Customer Enrollment

BSP Fiji Digital User Guide for Personal Banking Customers

Frequently Asked Questions

MOBILE BANKING APPLICATION USER GUIDE

Welcome to the mymoney application! Logging In. Changing a Password

Quick Reference Guide. How to Register

SPOTCASH MOBILE APPLICATIONS USER GUIDE

Value Card and Coin opt Vending Systems

Technology Upgrade User Guide

24 Hour Online Banking Guide

Utility Cashier System

Online Enrollment. This portal enables you to:

LunchTime Web Portal. Parents Guide to Getting Started

Personal account manual A ME

ClinCard Reference Guide: Site Coordinator

Getting Started Guide: Transaction Download for QuickBooks Windows. Information You ll Need to Get Started

The following is a presentation for the Virginia Tech Carilion School of Medicine highlighting the services available through the online Hokie Spa

Name: Checked: Objectives: Practice creating classes and methods, and using them in your programs.

Core Competency DOO (Design Object-Oriented)

Internet Banking. Member User Guide

ebanking User Guide ebanking echeck edelivery Mobile Banking & Deposit We Make Banking About You

SimpliPay User Guide

CONSUMER PORTAL QUICKSTART GUIDE

E-Bill Express User Manual

PO Box Lehigh Valley, PA Fax: apcifcu.org APCIRCUIT PC Home Banking Service HOW TO Guide

ABC BANK 1 Dat

2016 Autosoft, Inc. All rights reserved.

Debit CardValet FAQs. Table of Contents. General... 2 Registration... 2 Controls and Alerts... 3 Transactions Debit CardValet FAQs Page 1

Personal account manual A ME

Registration Guide

Personal Online Banking Reference Guide

Random Walks and Defining Functions FEB 9 AND 11, 2015

Enrollment and Login 1. If I m an existing WPCCU Online Banking user, do I need to register for this new system?

lyndaclassroom Getting Started Guide

Adding Cash to your Student Card

Customer Bank Account System Requirement

Internet Banking User Guide

GETTING STARTED DOWNLOAD THE APP

MyChoice Cardholder User Guide

If you have previously saved parameters for statement printing, these parameters display automatically. Press: F1

Personal Online Banking External Transfers

Mobile Banking Guide-Web Enabled Devices

RDS Advantage Tutorial

Tabs3 General Ledger Guide

The Heyseller VISA Prepaid Card is not a credit card. It is a prepaid, stored value and reloadable

Outline for Today CSE 142. Programming a Teller Machine. CSE142 Wi03 I-1. ATM Algorithm for Dispensing Money

ipad Frequently Asked Questions Page 1

PNC Bank On-line BankCard Center - Use to access Penn State Purchasing Card statements on-line

Mountain Credit Union MCU Online Banking

(C) 2010 Pearson Education, Inc. All rights reserved. Dr. Marenglen Biba

First State Bank of Blakely, Inc. Cash Manager. User Guide

eservices checklist Online account access estatements Online bill payment Mobile check deposit (requires mobile app) Debit card

Getting Started with Our Progressive Bank CONSUMER Online Banking Update

Business Bill Pay User Guide

Instructions for First Time Users

Transcription:

COMP1001-Problem Solving in IT Top-Down Design Objective: Upon completion of this lab, you will be able to: How to use top down design to design an Automatic teller machine (ATM) Structure of Top-Down Design in Python: Comp1001 Lab7 Page 1

Example of top-down design Notice that the main program is complete, while the rest of the functions are merely stubbed out. The interface of each function has been defined, i.e. how many and what types of parameters are expected as well as what will be returned, but the functions have not yet been implemented. Comments have been included inside the function definitions as reminders for how we expect to implement them. This program computes the probability of rolling five of a kind with six-sided dice by running a series of simulations and computing the average number of rolls required. Author: Sally CS Major Date: Spring 2011 from random import * def main(): printintro() numtrials = input("enter number of simulations to run: ") avg = simulate(numtrials) print "The average is:", avg print "The probabilty is:", 1/avg def printintro(): Returns: None Purpose: To print an introduction to the user. return def simulate(n): Inputs: An integer n representing the number of simulations to run. Returns: A float representing the average number of rolls required to get five of a kind. Purpose: Simulate n trials of rolling dice and compute the average. # will call simulateonetime n times Comp1001 Lab7 Page 2

return 100.0 def simulateonetime(): Returns: An integer representing the number of rolls required to get five of a kind. Purpose: Simulate one trial and count the number of rolls. # will call rolldice until the result is allsame return 100 def rolldice(n): Inputs: An integer n representing the number of dice to roll. Returns: A list containing the dice rolls of length n. Purpose: Randomly roll n dice. # will call rollone n times return [1] * n def allsame(ls): Inputs: A list of values. Returns: True if all the values in the list are the same. Otherwise False. Purpose: Checks whether the values in a list are equal. # will check that each value is equal to the first value return True def rollone(): Returns: An integer representing the die value between 1 and 6. Purpose: Randomly roll one die. # will use the random library to simulate a die roll return 1 main() Comp1001 Lab7 Page 3

Exercise 1: You are going to implement the login in an ATM. There is an ATM is located at our V building, where the students/staffs can perform some bank transactions without going out of the campus. The ATM has the following functions: Insert the bank card Check the balance Withdraw cash Pay the bills Deposit cheque 1. Insert the bank card a. Verify the card number i. If valid, return True b. If the card is validated, a menu will be prompted to ask users for name and password i. Verify the customer name and password 1. If valid, return True If the validation is True, a menu will be displayed: 2. Check the balance a. Display the balance of b. cheque, saving or credit card (current month and year only) 3. Withdraw cash a. Ask user input the withdrawal amount b. Check the account limit and return True if the amount is within the limit c. If account limit is allowed, give out the options for user to choose different type of dollar banknotes e.g. 100 dollars or 500 dollars. If issuing the banknotes is done, return True d. If the banknotes taken out, update the account after the transaction completed and return e. When the transaction is completed, display the balance and send out the receipt f. Ask user to get the receipt and banknotes and return g. Close all the menu items and return back to insert the bankcard 4. Pay the bills a. Ask user to input the payer s account number b. Ask users to pay from e.g. saving account c. Not allowed to pay from credit card d. Check the account limit and return True if the amount is within the limit e. Update the account after the transaction is completed and return f. When the transaction is completed, display the balance and issue the receipt 5. Deposit cheque a. Ask user to insert the cheque and which account to deposit the cheque b. Remind the customers to write all the info e.g. account no. on the cheque c. Open a box for customers to insert the cheque and return d. Update the account after the transaction is completed and return e. When the transaction is completed, display the balance and send out the receipt Using top down design to create the menu for the vending machine system Design the interface Menu for the ATM Comp1001 Lab7 Page 4

Develop all the functions of the system using Python Write a separate program to test all the function of the system ~End of the lab7~ Comp1001 Lab7 Page 5