Lesson 23 of 23

Mini Project: Bank Account SystemMini Project: Bank Account System

15 min 50 XP

கற்றதை இணைத்து ஒரு சிறிய bank system: accounts ஒரு struct array-ல், ஒவ்வொரு command-ம் ஒரு வரியாக. Coding round-களில் இதே வடிவில் கேள்விகள் வரும்.

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.

இந்த project-ஐ GitHub-ல் போட்டு, file-ல் சேமிக்கும் வசதி, PIN சோதனை போன்றவற்றைச் சேர்த்து resume-ல் குறிப்பிடுங்கள்.

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

Challenge

+50 XP

முதல் வரி: command எண்ணிக்கை n. Commands: OPEN id → "Opened id" DEP id amount → "Balance id: X" WD id amount → "Balance id: X" அல்லது பணம் போதவில்லை என்றால் "Insufficient funds" இல்லாத id-க்கு எந்த command-க்கும் "No account id".

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.