Question
Python Area Comparison Program Coding Requirements A company is interested in comparing the areas of various shapes of similar sizes for products they are creating.
Python Area Comparison Program Coding
Requirements
A company is interested in comparing the areas of various shapes of similar sizes for products they are creating. Specifically, they will be comparing the areas of the following shapes as listed in the table below:
Write a program named AreaComparison that calculates and outputs the area in square inches of squares with side length r, circles with radius r, equilateral triangles with side length r, and rhombuses (angle 45) with side length r, where r varies from 1 to 20 inches. In addition, this company do not produce any product with r equals 14 or 17.
You will display your output in a table, with each row representing a different value of r and columns used to show the areas of the four different shapes. The values of r should be between 1 and 20, excluding 14 and 17. Your output should be similar to that shown below. Your values should exactly match the values given below.
Shape Area Square with side length r 12 2 Circle with radius r Equilateral Triangle with side length r V3/4* Rhombus (angle 459 with side length r A2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started