Problem1 Assessment
Problem1 Assessment
Write a program that takes the width and height of a rectangle as input from the user, then calculates and prints the area.
Directions:
Ask the user to input the width and height of the rectangle.
Calculate the area using the formula: Area = width * height.
Display the result.
Write a program that takes the base and height of a triangle as input from the user, then calculates and prints the area.
Directions:
Directions:
Write a program that takes the lengths of the two parallel sides and the height of a trapezoid as input, then calculates and
prints the area.
Directions:
Ask the user to input the two side lengths and the height.
Calculate the area using the formula: Area = ((side1 + side2) / 2) * height.
Display the result.
Write a program that takes the base and height of a parallelogram as input, then calculates and prints the area.
Directions:
Write a program that takes the lengths of the major and minor axes of an ellipse as input, then calculates and prints the
area.
Directions:
Ask the user to input the lengths of the major and minor axes.
Use π = 3.14159 and calculate the area: Area = π * major_axis * minor_axis.
Display the result.
Write a program that takes the lengths of the diagonals of a rhombus as input, then calculates and prints the area.
Directions:
Write a program that calculates the perimeter of a rectangle given its width and height.
Write a program to calculate simple interest using the formula: Simple Interest = (principal * rate * time) /
100.
Directions:
Ask the user to input the principal amount, rate of interest, and time (in years).
Display the calculated simple interest.
Write a program that converts a temperature from Celsius to Fahrenheit using the formula: Fahrenheit = (Celsius *
9/5) + 32.
Directions:
Write a program that converts a given number of minutes into hours and minutes.
Directions:
Write a program that takes five numbers as input and prints their average.
Directions: