Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Code ( Not C++) Problem 2. Create a script that will take 4 vertices (Keep in mind each vertex require 2 numbers for both

image text in transcribed

C Code ( Not C++)

Problem 2. Create a script that will take 4 vertices (Keep in mind each vertex require 2 numbers for both horizontal and vertical coordinates. So Total 8 numbers of user input!) and make the decision whether the 4 vertices form a square, a rectangular (but not a square), a diamond shape, a parallelogram (but not rectangular). Do not have to ask the user whether shehe wants to repeat the whole process Square: All angles are equ al. All sides are equal. The area of Square-One side- Diamond: All sides are equal. The area ofDiamond Product of Diagonal lines x 0.5 Rectangular: All angles are equal and altemate sides are equal. The area is the product of a pair of alternate sides Parallelogram: Two pair of parallel sides Please, use these coordinates to vernty your script Vertex 1 = [0, 1], Vertex 2 [0,0], Vertex 3 [101, Vertex 4 = [1, 1] hat is the first number for the Uertex 1 [x1,y1]? x1=0 What is the second number for the Uertex 1 x1.y11? yi-1 What is the first number for the Uertex 2 Lx2.y21? x2-0 What is the second number for the Uertex 2 [x2,y2]? y2-0 What is the first number for the Uertex 3 Lx3.y31? x3-1 What is the second number for the Uertex 3 [x3 , y3]? y3-0 What is the first number for the Uertex 4 [x4.y41? x4-1 What is the second number for the Uertex 4 x4.y41? y4-1 The lenghts of A = 1.00 B= 1.00 C= 1.00 D = 1.00 E = 1.41 and F = 1.41 The shape is a Square Vertex 1 [0,1], Vertex 2 [0,0], Vertex 3- [2,0], Vertex 4 [2,1] What is the first number for the Uertex 1 Ix1.y11? x1-0 What is the second number for the Uertex 1 Ix1.yl1? y1-1 What is the first number for the Uertex 2 Lx2.y21? x2-0 What is the second number for the Uertex 2 [x2,y2 ]? y2-0 What is the first number for the Uertex 3 Lx3.y31? x3-2 What is the second number for the Uertex 3 [x3 , y3]? y3-0 What is the first number for the Uertex 4 [x4.y41? x4-2 What is the second number for the Uertex 4 x4.y41? y4-1 The lenghts of A = 1.00 B= 2.00 C= 1.00 D = 2.00 E = 2.24 and F = 2.24 The shape is Rectangular but not Square Vertex 1-[0,3], Vertex 2- [-5,0], Vertex 3[0,-3] Vertex 4-[5,0] What is the first number for the Uertex 1 Ix1.y11? x1-0 What is the second number for the Uertex 1 x1.y11? y1-3 What is the first number for the Uertex 2 [x2,y2]? x2=-5 What is the second number for the Uertex 2 [x2,y2]? y2-0 What is the first number for the Uertex 3 [x3.y31? x3-0 What is the second number for the Uertex 3 [x3,y3]? y3=-3 What is the first number for the Uertex 4 [x4.y41? x4-5 What is the second number for the Uertex 4 [x4,y4 ]? y4=0 The lenghts of A = 5.83 B= 5.83 C= 5.83 D 5.83 E 6.00 and F-10.00 Ths shape is NOT Square but still a Diamond shape with same lengths on all 4 sides

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago