Question: 5) In this task you will ask the end user how many side shape has and based on the entry you will print name of
5) In this task you will ask the end user how many side shape has and based on the entry you will print name of the shape For example ; if user answers 3 for number of side then you need to print Triangle if user answers 4 for number of side then you need to check again with child IF IF 4 sides are equal (you can ask secondary prompt to end user asking are they equal or not? If they all equal then print Square otherwise print Rectangle if user answers 5 for number of side then you need to print Pentagon if user answers 6 for number of side then you need to print Hexagon if user answers 8 for number of side then you need to print Octagon Anything else other than these numbers print No shape available Explain your reasoning to support your program logic
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
