Write a program that will accept the height and width of a shape from the user as integer input. The area of the shape will be calculated and output to the screen in a suitable message.
input height of a shape
input width of a shape
calculate area and save result in a variable
output the area to the user on the screen
Write a program that will prompt a user for three integer number inputs and assigns them all to suitable variables.
add the first two numbers together
the result of which is then multiplied by the third number
each step must be output to the user.
Write a program that will ask a user for a number of days they wish to convert into minutes.
The program will calculate how many hours are in the number of days given, using that result your program will calculate the total number of minutes in the given number of days.
Your program will output the answer with an appropriate message. (as shown)
In ____ days, there are ____ mins
Write a program that will calculate the total distance travelled when a user inputs their speed in miles per hour and & total time travelled in hours.
The program will output the following information to the user:
Your speed was _____ miles per hour
Time travelled was _____ hours
Total distance travelled was _____ miles
Write a program in Python that simulates a dicount being applied to a bought item.
The user enters the full price of an item.Β
The user enters the discount amount.
Apply the discount to the value of full price to get the discounted amount.
Output the discounted price of the item after the discount has been applied.
The program will output the following information to the user:
Enter the full price of the item ___Enter the discount amount ___The discounted price of the item is ____Write a program that asks for a users first name, surname and their birth year.
The program will use the information to create a username for the user.
The user name should be constructed as follows:Β birth year, surname, first name.
The program will output the following information to the user:
Enter your first name
Enter your surname
Enter your year of birth
Your username is ________________________
Hint: all the data must be input as a string (even the birth year) then you use + (like a sum) to join all of the strings together.Β