Cos 101 Test
Cos 101 Test
b) Processing Unit: Verifies PIN, checks balance, processes transactions (e.g., CPU).
c) Storage Unit: Stores account data, transaction records, and user PINs (e.g., hard
drive/database).
d)Output Unit: Displays messages, dispenses cash, and prints receipts (e.g., screen, cash
dispenser, printer).
Certainly! Below is an expanded and more detailed version of the answers to the test
questions, providing additional explanations, context, and examples where applicable.
3) Examples of Device
-Input Devices:
1. Keyboard
2. Mouse
3. Scanner
Output Devices:
1. Monitor
2. Speakers
3. Printer
Storage Devices:
1. Hard Disk Drive
2. Solid-State Drive
3. USB Flash Drive
6. Giants in Computing
8.
9. QBasic Program
Here’s an expanded QBasic program simulating ATM operations with comments for clarity:
```qbasic
CLS ' Clear the screen
DIM correctPIN AS STRING
DIM userPIN AS STRING
DIM balance AS INTEGER
DIM withdrawal AS INTEGER
IF choice = 1 THEN
PRINT "Your current balance is: $"; balance
ELSEIF choice = 2 THEN
' Step 3: Withdrawal Process
INPUT "Enter amount to withdraw: $", withdrawal