HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Three friends start with these balances of a digital currency: Asha 40 units, Bilal 10 units, Carla…
MediumComputer ScienceHigh School (9–10)Computer Science › The Internet, the Web and Digital CurrencyNumericalIGCSE

Three friends start with these balances of a digital currency: Asha 40 units, Bilal 10 units, Carla…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

Three friends start with these balances of a digital currency: Asha 404040 units, Bilal 101010 units, Carla 252525 units. The ledger then records four payments, in this order.

  1. Asha pays Bilal 151515 units.
  2. Bilal pays Carla 202020 units.
  3. Carla pays Asha 353535 units.
  4. Bilal pays Asha 101010 units.

A payment is refused if the sender does not have enough at that moment. Find the three final balances, and say whether any payment was refused.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

A digital currency only exists electronically: it is a record of who owns how much. It is used to pay for goods and services and to send money to people, through a device, often from a digital wallet. Every payment is a record in a ledger, and a balance is

balance=start+received−paid.\displaystyle \text{balance} = \text{start} + \text{received} - \text{paid}.balance=start+received−paid.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Plan. Keep a table of the three balances and update it after each payment.

Step 1. Asha has 404040, so she can pay 151515. Asha 252525, Bilal 252525, Carla 252525.

Step 2. Bilal has 252525, so he can pay 202020. Asha 252525, Bilal 555, Carla 454545.

Step 3. Carla has 454545, so she can pay 353535. Asha 606060, Bilal 555, Carla 101010.

Step 4. Bilal has only 555, but the payment is 101010. This payment is refused. The balances stay the same.

Answer: Asha 606060, Bilal 555, Carla 101010. One payment, payment 4, was refused.

Check. Money only moves between the three friends, so the total must stay the same: 40+10+25=7540 + 10 + 25 = 7540+10+25=75 at the start and 60+5+10=7560 + 5 + 10 = 7560+5+10=75 at the end.

Log in to save this for later
← All Problems
← A school newsletter says: "A digital currency is like the coins in your pocket, but kept inside a…A blockchain records payments of a digital currency… →
More onComputer Science › The Internet, the Web and Digital Currency

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. Part of a blockchain holds these payments, oldest first…Hard
  2. A blockchain has 56 blocks. A new block is added to the honest chain every 10 minutes…Hard
  3. Kemal pays Dana 9 units of a digital currency that uses a blockchain…Medium
  4. A blockchain is copied on 40 computers in a network…Medium
  5. A student designs a "blockchain" in which each block holds only its data, a time-stamp and its own…Hard
All problems on this topic →