Write a program that will:
input 3 whole numbers
the numbers will be compared to each other and only the highest number will be output on screen
Write a program that will inputs information about the waether from a user.
If the weather is "sunny," it prints a message to go to the park.
If the weather is "cloudy," it suggests bringing an umbrella.
If the weather is "rainy," it advises staying indoors.
If none of these conditions match, it uses else to print a message indicating it's not sure what to do with that weather.
A shop is having a sale, a customer get a discount when:
£10 or less gives a 10% discount on total
more than £10 gives a 20% discount on total
Write a program that asks for the amount spent and then displays the following:
the discount to be applied
the final price with the discount applied
Kara uses a 4-bar adapter at home to plug in four electrical devices; CD player, TV, Xbox One and a hair drier.
The adapter has a maximum power rating of 2000 Watts.
Write a program that will allow the power rating of each connected electrical device to be entered.
The program should warn Kara if the total power of the devices she has plugged into her adapter exceeds the maximum limit of 2000 Watts.
Write a program that helps the user to add up the coins in their piggy bank.
The program should input the following:
How many pennies
How many two pences
How many 5 pences
etc..
Then it should output the total value of the piggy bank on screen.
if the users savings add up to less than £50 it will output "Save more"
if the total is over £50 it outputs "Your doing well"
Write a program that will simulate a magic 8 ball.
input a question the user wants an answer to. e.g. "Will it rain tomorrow?"
generate a random number between 1 & 8 (a number per statement)
use selection and the random number to gain your response
output the response to the user on screen
The program will then randomly select one of the following answers:
It is certain
Without a doubt
Most likely
Yes
Signs point to yes
Ask again later
Concentrate and ask again
Very doubtful
Write a program that will input a number from a user and output if it is an odd or even number.
input a number
number will then stored in a suitable variable
modulus the number by 2 (%2)
if the result is equal to 0 it is even, output "Even" on screen
else should output "Odd" on screen
Write a program that will simulate a game of guess the number with a user.
generate a random integer number between 1 and 10 and store it in a suitable variable
the user of the program will input their guess as a integer number
if the random number is equal to the guess then "Congratulations" will be output on screen
else if the numbers are not equal the program will output "Unlucky" and show the user the random number on screen.