Lesson 23 of 23

Mini Project: Bank Account System

15 min 50 XP

Let's combine everything into a tiny bank: accounts live in an array of structs and each command arrives on one line, just like coding-round problems.

Example: edit me and press Run

Output Loading C (first time takes a few seconds)
Press Run to see the result here.

Put this on GitHub, add saving to a file and PIN checks, and mention it on your resume.

Challenge

+50 XP

The first line is n, the number of commands: OPEN id → "Opened id" DEP id amount → "Balance id: X" WD id amount → "Balance id: X", or "Insufficient funds" For DEP/WD on an unknown id print "No account id".

Output Loading C (first time takes a few seconds)
Press Run to see the result here.