To practice writing basic pseudocode for the solution of a problem
Assignment:
First solve each of the two problems shown below. (25 points each,
so make sure you show your work, no matter how simple you think it is)
Then write an algorithm for each of these two problems in pseudocode.(25
points each)
1) Mr. Jones decided to go gambling one night. He went to a casino
and spent $5.00 admission to enter. While gambling, he doubles his money.
He leaves and then pays $5.00 for parking. He goes to another casino,
pays $5.00 admission to enter and doubles his money. After he leaves
and pays $5.00 for parking, he has no money left. How much money
did Mr. Jones have when he started?
Tips about problem # 1 :
Mr. Jones must always have no money left at the end.
The user should specify the number of casinos.
The user should specify the admission fee to enter the casino.
You can assume it will be the same for every casino.
The user should specify the parking fee. You can assume
it will be the same each time he parks.
2) Your grade in CMSC104 is based on the following: