Task 1
At a gym, you can either buy an annual pass or buy a ticket at each visit.
• Create a program that reads the price of a year card, the price of a ticket and the number of times you plan to visit the gym during a year.
• After that, the program must state whether it pays to buy an annual card or not.
Task 2
• Assume that under certain conditions, a certain type of water algae multiplies so fast that they double the area they cover every day.
• Assume further that in a small lake you happen to get such algae and that after a day they cover an area of 1 dm2, ie. 0.01 m2.
• The lake is approximately 100 times 100 m large, ie. its area is 10000 m2.
Create a program that calculates how long it takes before the entire lake is covered with algae.