Re: Fwd: Query

Mats Wichmann <[email protected]> Sat, 18 Apr 2026 09:39:22 -0600
Newsgroups gmane.comp.python.tutor
Message-ID <[email protected]>
On 4/18/26 02:36, Namatie Singh via Tutor wrote:
> Good morning
> 
> a computing student, requested prepare coding example:
> 
>    e g A T M business actor checking balances, depositing, withdrawing,
> and/or trans-ferring
> 
>    e g A T M technician provides maintenance on A T M, including f u n d s,
> ink, printer paper, updating hardware, firm-ware, software, remote, on-site
> diagnostics and repairs,
> 
>    all usage involves bank-actor related to customer and A T M technician
> 
> beginning, incomplete not as required, are there coding details available
This is a fairly complex problem.  You want to break things down into a 
model that makes sense to you before you start designing any solution in 
code (whether that's you yourself or an intelligent agent of some sort).

You list two actors:

A customer, whose interactions are with one or more accounts (a 
"transfer" implies a second account, possibly not even with the same 
bank - which is a complexity you may not want to deal with). For this 
you will need to model accounts, a bank that holds the account, and 
transactions, as well as the complication of the machine itself: in a 
basic problem you would ignore this physical aspect and just deal with 
"can you do this with the selected account", but the wording you have 
given implies you need to model the ATM as well, as it must physically 
be able to do the things the customer wants - is there sufficient cash 
to dispense a withdrawal, can you print a receipt if one is required.

A technician, who (mostly) doesn't interact with accounts but with the 
physical machine. This is kind of complicated and is (to me) a 
surprising inclusion in an introductory problem. How will you capture 
and evaluate information such as component versions, status of moving 
parts such as printer and cash dispenser, as well as the actual physical 
currency it is loaded with? If the technician is to reload currency, 
where does that come from? Do you need to model another account which 
contains "cash for the ATM"? How would this interact with the overall 
system design?


We won't provide code for you, but feel free to ask more questions.
_______________________________________________
Tutor maillist  -  To unsubscribe send an email to [email protected]
To unsubscribe or change subscription options:
%(web_page_url)slistinfo/%(_internal_name)s