top of page

PROGRAMMING CHALLENGES

Bank Account Balance Checker

Difficulty:

2 Medium

2.2 Practice Exam Questions

Topic:

Write a program that allows a bank customer to input their current balance and a withdrawal amount. If the withdrawal is greater than the balance, output an error message. If it�s valid, subtract the amount from the balance and display the new balance.

Use if statements to check for sufficient balance and update the balance accordingly.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page