1.
- Numbers Game Write a program (name it numbersGame.py). In this game, you ask the user to enter an integer number as an input. If the number is even, the number is divided by (2). If the number is odd, the number is multiplied by (3), and then (1) is added to it. Your program repeats the process until the number becomes (1).
- Each number produced in the process is printed on the screen. Numbers are separated by empty spaces in the output. For example, see the output below for numbers: 24, 176, 21 and 1024.
- Start your answer by stating the algorithm, i.e. steps required to solve the problem. Also make sure to add comments to your code that correspond to the algorithm.
2.
Exclusion Write a program that prompts the user to specify a range of numbers (for example 1 to 100 inclusive), and then choose a number withing the range to exclude. Your program then prints out all numbers within the range except the excluded number or any multiple of the excluded number or any number that has the excluded number in it.
For example, if numbers range from 1 to 20, and the number chosen by the user to exclude is 6, then 6 is excluded from the output as it is the excluded number, the numbers 12 and 18 are excluded as they are multiple of 6, and number 16 is excluded as it has 6 in it.
Start your answer by stating the algorithm, i.e. steps required to solve the problem. Also make sure to add comments to your code that correspond to the algorithm.
3.
Denomination
Write a program (name it denominations.py) that takes an amount of Money in Australian dollars as an input. Money is entered in dollars and cents (it takes the form of $$.$$ dollars). The program then returns the least possible number of denominations (notes and coins) of the amount. Denominations of the Australian currency include the following: $100, $50, $20, $10, $5, $2, $1, 50 cents, 20 cents, 10 cents, 5 cents, 2 cents and 1 cent.