0% found this document useful (0 votes)
9 views2 pages

Problem1 Assessment

The document outlines a series of programming problems focused on calculating areas of various geometric shapes, including rectangles, triangles, circles, trapezoids, parallelograms, ellipses, and rhombuses. It also includes problems for calculating the perimeter of a rectangle, simple interest, temperature conversion, converting minutes to hours, and finding the average of five numbers. Each problem provides specific directions for user input and the formulas required for calculations.

Uploaded by

jrtadlip
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Problem1 Assessment

The document outlines a series of programming problems focused on calculating areas of various geometric shapes, including rectangles, triangles, circles, trapezoids, parallelograms, ellipses, and rhombuses. It also includes problems for calculating the perimeter of a rectangle, simple interest, temperature conversion, converting minutes to hours, and finding the average of five numbers. Each problem provides specific directions for user input and the formulas required for calculations.

Uploaded by

jrtadlip
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Problem: Area of a Rectangle

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.

Problem: Area of a triangle

Write a program that takes the base and height of a triangle as input from the user, then calculates and prints the area.

Directions:

 Ask the user to input the base and height.


 Calculate the area using the formula: Area = (base * height) / 2.
 Display the result.

Problem: Area of a circle


Write a program that takes the radius of a circle as input from the user, then calculates and prints the area.

Directions:

 Ask the user to input the radius of the circle.


 Use π = 3.14159 and calculate the area: Area = π * radius * radius.
 Display the result.

Problem: Area of a Trapezoid

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.

Problem: Area of a Parallelogram

Write a program that takes the base and height of a parallelogram as input, then calculates and prints the area.

Directions:

 Ask the user to input the base and height.


 Calculate the area using the formula: Area = base * height.
 Display the result.
Problem: Area of an Ellipse

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.

Problem: Area of a Rhombus

Write a program that takes the lengths of the diagonals of a rhombus as input, then calculates and prints the area.

Directions:

 Ask the user to input the lengths of the two diagonals.


 Calculate the area using the formula: Area = (diagonal1 * diagonal2) / 2.
 Display the result.

Problem: Perimeter of a Rectangle

Write a program that calculates the perimeter of a rectangle given its width and height.

 Formula: Perimeter = 2 * (width + height)


 Display the result.

Problem: Simple Interest

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.

Problem: Temperature Conversion (Celsius to Fahrenheit)

Write a program that converts a temperature from Celsius to Fahrenheit using the formula: Fahrenheit = (Celsius *
9/5) + 32.

Directions:

 Ask the user to input the temperature in Celsius.


 Convert the value to Fahrenheit and display the result.

Problem: Convert Minutes to Hours and Minutes

Write a program that converts a given number of minutes into hours and minutes.

Directions:

 Ask the user to input a number of minutes.


 Convert minutes to hours and display both.

Problem: Average of the Five numbers

Write a program that takes five numbers as input and prints their average.

Directions:

 Ask the user to input five numbers.


 Calculate the average and display the result.

You might also like