Input:
Output:
Estimate the price of painting the interior of your home. The user will enter a dollar amount of paint per litre and the app will calculate how much it will cost.
Input:
Output:
Follow along the Random Dice Rolls example in the Intro to Logic and Control Flow module.
Input:
Output:
Follow along the Secret Phrase example in the If, Else, Else If module.
Input:
Output:
Follow along the Dice Game example in the If, Else, Else If module.
Input:
Output:
Update our dice game logic such that the user wins if the dice roll is 2 times the guess, e.g. a guess of 1 and roll of 2, a guess of 2 and roll of 4, etc. To win this updated game for a 6-sided dice, the user should only guess numbers between 1 and 3, but the game does not restrict what the user can guess.
Input:
Output: