Q1) Suppose (x1,y1) and (x2,y2) represents left lower corner and right upper corner of a rectangle respectively. Write a C++ program that asked the user to enter x1,y1, x2, and y2 then find out in which quarter this rectangle lies.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 3E
icon
Related questions
Question
100%

C++

Answer quickly please

Q1) Suppose (x1,y1) and (x2,y2) represents left lower corner and right upper
corner of a rectangle respectively. Write a C++ program that asked the user to
enter x1,y1, x2, and y2 then find out in which quarter this rectangle lies.
(2) y
(1)
x >(frst quarta)
く
(3)
(4)
(2)
→x >(Second quto)
(4)
(と)
Transcribed Image Text:Q1) Suppose (x1,y1) and (x2,y2) represents left lower corner and right upper corner of a rectangle respectively. Write a C++ program that asked the user to enter x1,y1, x2, and y2 then find out in which quarter this rectangle lies. (2) y (1) x >(frst quarta) く (3) (4) (2) →x >(Second quto) (4) (と)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr