
Patrick B. answered 01/25/21
Math and computer tutor/teacher
How many objects do you want?
here's 5
Pac-Man
==========
Mouth: boolean open/closed
direction
state: normal, energized,
changing
Left(), Right(), Up(), down();
Chomp()
SetMouth( open=true,close=false)
Die
Customer
==========
Customer ID # <-- primary key
First name, last name
city, state, zip
phone #, email
balance
setters & getters
serialize and parse
updateBalance
Order
=======
customer id # <---foreign key
order # <-- primary key
num_items
total_price
dateTimeStamp
status: pending,processing,shipped,posted,paid
Order detail
===============
order # <-- foreign key
barcode #
qty
getters and setters;
serialize and parse()
Wrestler
============
name
height
weight
age
finishing_move
current_status: heel, babyface, or tweener
current_wrestling_federation:WWE,impact,AEW,MLW, Japan, etc.
theme_song_filename
picture_filename
wrestling_style: brawler, lucha libre, strong style,MMA
current_ranking
Entrance();
Finish();
Pin();
Tag();
UseForeignObject();
Jump();
Wrestling_move_XXXX();
ATM_Transaction
=================
pin #
amount
account type: checking,savings,credit
type: withdraw, deposit, balance inquiry,
reversal, transfer
status: customer data sent, response received,
bills dispensed,
result: APPROVED, DENIED, insuffient funds, hot card
error_code
account number
Methods can be broken down into smaller methods:
Pre_Trans() : reads swiper, collets pin,
gets transaction type, amount, surcharge
Process_Trans(): connects to host server,
sends transaction,
waits for response,
dispenses bills and/or collects cash
Post_Trans():
prints receipt
updates databases
INSURANCE_POLICY
================
policy #
type
effective date
expiration date
amount
# of claims
Carrier code #
customer id#
getters/setters
serialize/parse
post_claim();
post_payment();
Jon J.
Can you add more?01/25/21