Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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. 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago