Question: Create a modular program that asks the user to enter a positive number X . Then the program calculates and display the area of an
Create a modular program that asks the user to enter a positive number X Then the program calculates and display the area of an octagon with side X draws an octagon with side X calculates and displays the area of an equilateral triangle with side X and draws an equilateral triangle with side X
Notes:
A regular octagon is an sided polygon where each side has length X and the eight interior angles are equal.
An equilateral triangle is a triangle where each side has length X and the three interior angles are equal.
Scratch has a builtin square root function. In the Operators blocks, you will find an abs of block. From the dropdown menu next to abs scroll down until you see sqrt for square root Once you have selected sqrt this block will calculate the square root of the value entered into the circle.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
