Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I) (30 pts) - This assignment will acquaint you with the use of parameter passing, return values, if/else blocks, and user inputs. You will
I) (30 pts) - This assignment will acquaint you with the use of parameter passing, return values, if/else blocks, and user inputs. You will create a program that prompts the user for a set of information, then executes simple algebra on those values and returns a summary report which includes name and size of each shape and comparison result. Your program should perform the following: (line break, 11 pt) A) (3/30 pts) - Prompt the user for what to compare (area or perimeter) B) (3/30 pts) - Prompt the user for a first shape (line break, 11 pt) C) (3/30 pts) - Prompt the user for the first shape's dimensions 1) Triangles are assumed to be isosceles. (line break, 11 pt) D) (3/30 pts) - Prompt the user for a second shape 1) Assume the first and second shape are different shape. (line break, 11 pt) E) (3/30 pts) - Prompt the user for the second shape's dimensions (line break, 11 pt) F) (7/30 pts) - Calculate the shape size based on the user's selection in section A) (area or perimeter) and display the summary statement (see the example log below) (line break, 11 pt) G) (4/30 pts) - As an additional requirement, no method (including main () ) may contain more than 12 lines of instruction, discounting lines which only contain braces ("{" || "}"), method headers, and comments.
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