The Wish of Five Cents

# Introduction In this challenge, we will help Tom design a program to calculate the date when he can save up 10,000 dollars. Tom saves a part of his pocket money every day, except on Saturdays and Sundays when he goes to the bookstore. The amount of money he saves each day is randomly chosen between 1 to 5 dollars, and he cannot save the same amount for three consecutive days. We need to print the amount of money Tom saves each week and the date when he saves up 10,000 dollars.

|60 : 00

Click the virtual machine below to start practicing