Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please help. Assignment #6-User-Defined Functions Square Geometry CS 332-C++ Programming Points 75 - Refer to Programming Assignment Rubric for grading guidelines Specifications Overview Your program
please help.
Assignment #6-User-Defined Functions Square Geometry CS 332-C++ Programming Points 75 - Refer to Programming Assignment Rubric for grading guidelines Specifications Overview Your program will utilize functions to perform geometric calculations on a four-sided geometric object given the x.y coordinates of two opposite corners of the object (see below). (x1, y1) (2, 5) (x2, y2) The program will ask the user for x, yi and x2, y2 to see where the object is located on a Cartesian grid system. All numbers will be positive; therefore, the object will always be in the 1t quadrant (your program does not need to error check for this) Your program will perform two primary tasks 1) calculate the area of the object 2) determine if the object is a square or rectangle Requirements Your program must have the following functions: 1. calclength: This function takes as its parameters two values (either xi and x or y; and y2 values) and returns the length of side area: This function takes as its parameters the length and width of the object and returns the area. 2Step 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