I need the answer with c++
The question : Implement the class "Rectangle" with sides parallel to the coordinate axes. 1.Provide for the possibility of moving rectangles on the plane. 2.Provide for the possibility of changing sizes. 3.Provide for the possibility of constructing the smallest rectangle containing two given rectangles. 4.Provide for the possibility of constructing the rectangle that is a common part (intersection) of two rectangles. 5.Provide for the possibility of calculating the length of half the diagonal of a rectangle.

Answers

Answer 1

Using the knowledge of computational language in C++ code we found that this code can be written as:

The code can be found in the attached image.

How to writte the C++ code ?

So from the c++ code you can write the geometric figure as

#include <bits/stdc++.h>

struct Point {

   int x, y;

};

bool doOverlap(Point l1, Point r1, Point l2, Point r2)

{

   if (l1.x > r2.x || l2.x > r1.x)

       return false;

   if (r1.y > l2.y || r2.y > l1.y)

       return false;

    return true;

}

/* Driver program to test above function */

int main()

{

   Point l1 = { 0, 10 }, r1 = { 10, 0 };

   Point l2 = { 5, 5 }, r2 = { 15, 0 };

   if (doOverlap(l1, r1, l2, r2))

       printf("Rectangles Overlap");

   else

       printf("Rectangles Don't Overlap");

   return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

I Need The Answer With C++The Question : Implement The Class "Rectangle" With Sides Parallel To The Coordinate

Related Questions

Which of the following applies to patents?
o They protect the rights of the intellectual property owner.
They represent free speech rights.
o They are pretty symbols.
o They make it OK to take other people's work.

Answers

They protect the rights of the property owner. I watch a lot of shark tank and I believe that’s right

Which page does a site map usually begin with?
A.shop Page B.Home page C.Index page D.About Page

Answers

Answer:

home page

Explanation:

a sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them

can i get help with computer language​

Answers

Answer:

yes

Explanation:

because you can choose you own language

Maria notices that visitors are landing on her site's home page, but they are not
navigating to any of the other pages. It's possible that having her navigation bar in a
non-standard location could be the cause of this.
Choose the answer.
True
False

Answers

Answer:

True

Explanation:

If your navigation bar is inaccessible, then visitors won't be able to navigate any further into your website.

Which function allows you to display the name of the month?
>>>import time

>>>aTime = time.locatime()

>>>time.__________("%B",aTime)

Sample Output:
'March'

Answers

Answer:

strftime

Explanation:

>>> import time

>>> aTime = time.localtime()

>>> time.strftime("%B",aTime)

'May'

(c) Explain why a combination of ethnography and
prototyping is useful
for the requirements elicitation process

Answers

Answer:

It helps analysts discover implicit system requirements that reflect the actual rather than the formal processes in which people are involved. The verifiability of the requirements should be assessed

It permits analysts to discover implicit system requirements that reflect the actual rather than the formal processes in which individuals are involved.

What is elicitation process?

Requirements elicitation exists as the set of activities where information exists given by stakeholders, users, and customers to be involved in the design of the initiative or the solution. Elicitation exists as a perpetual procedure during project development. It exists not as a stagnant, compartmentalized activity.

Ethnography exists as an observational method that can be utilized to understand social and organizational needs. It permits analysts to discover implicit system requirements that reflect the actual rather than the formal processes in which individuals are involved. … The verifiability of the conditions should be assessed.

Prototyping exists as an agile software development methodology. It has also been suggested as a technique for obtaining the software requirements from the stakeholders. … For this, the authors present a procedure to involve and they carry out elicitation sessions with two stakeholders who have distinct familiarity with the domain.

To learn more about elicitation refer to:

https://brainly.com/question/27605015

#SPJ2

Write a menu driven program in python to convert the given temperature from fahrenheit to celsius and vice versa depending upon user's choice.​

Answers

Answer:

See below

Explanation:

while(True):

   print("""\nProgram to convert temperatures

       

       Choose from:

       1. Fahrenheit to Celsius

       2. Celsius to Fahrenheit

       3. Exit program""")

   choice = int(input("\nEnter your choice: "))

   #print()

   if (choice == 1):

       print("Converting degrees Fahrenheight to degrees Celsius\n")

       F = float(input("Enter temperature in degrees Fahrenheit: "))

       C = (F - 32) * 5/9

       print()

       print(F,"degrees Fahrenheit = ", C, "degrees Celsius\n")

   elif (choice == 2):

       print("Converting degrees Celsius to degrees Fahrenheit\n")

       C = float(input("Enter temperature in degrees Celsius:"))

       F = (C* 9/5) + 32

       print()

       print(C,"degrees Celsius = ", F, "degrees Fahrenheit\n")

   elif (choice == 3):

       print("Exiting program")

       break

   else:

       print("Invalid Entry!. Please re-enter")

explain how production values can reveal the quality and accuracy of mass media.

Answers

Production values can reveal the quality and accuracy of mass media as it shows the total or full cost spent in making a quality film.

What are production values in mass media?

Production value is known to be employed to know the full cost of making a film, and also the amount of money a film producer  spent on props and special effects.

Note that by knowing the above, one can say that a given film reveal the quality and accuracy of mass media.

Learn more about  production from

https://brainly.com/question/1501489

#SPJ1

What are the common operations performed on character strings?

Answers

Answer(:

•concatenation

• scanning

• substringing

• translation

• verification

if you want to remember means csstv;-)

ANSWER QUICKLY!!!

A designer plans an appropriate element mix for a website. What element does the picture illustrate?

Answers

Based on the image attached, A designer's element that the picture illustrate is a wireframe.

What is a wireframe in design?

A wireframe is  known to be a kind of two-dimensional depiction of a page's interface that is one that only focus on  the amount of space allocation and it is one that work in the prioritization of content and others.

Note that Based on the image attached, A designer's element that the picture illustrate is a wireframe.

Learn more about designer plans from

https://brainly.com/question/9778788

#SPJ1

What are ways to enter a formula in Excel? Check all that apply.What are ways to enter a formula in Excel? Check all that apply.
Answers:A,B,E,F
Click on the Function Library group and select a function from the drop-down menu.
Click on the Function Library group and Insert Function.
Click on the File tab in the ribbon.
Click on the Insert tab in the ribbon and then Equation.
Type = into any cell.
Click on the formula bar above the cells.

Answers

Answer:

Click on the Function Library group and Insert Function.

MARK ME BRAINLIEST IF I HELPED :>

25 POINTS! HELP ME PLEASE THANK YOU
Type the correct answer in each box. Spell all words correctly.
What attributes of color does the Luminosity blend mode affect?
You can use the Luminosity blend mode to match the brightness of the original color to the brightness of the new color.-_____
and______
are unaffected.

Answers

Answer:

What attributes of color does the luminosity blend mode affect?

Whereas the Color mode blends the colors of a layer while ignoring lightness values, the Luminosity mode blends the lightness values while ignoring the color information!

Explanation:

write a program using a for loop, to display number 20 to 10 in descending order

Answers

Answer:

public class MyProgram {

  public static void main(String[] args) {

     for (int i = 20; i >= 10; i--){

        System.out.println(i);

     }

  }

}

Explanation:

Since we are printing in descending order, we start with an initial value of 20, keep decrementing counter by 1 (the i-- part) until i reaches 20

Company ABC would like to select the topology that has the most reliability for data reaching its destination. Which topology should they choose?
bus
full mesh
partial mesh
ring

Answers

Full mesh because it is the answer and I been reading up in it

Can someone help me with this!!!.

Answers

13. A fence
14. In a dictionary
15. Coin
Bonus: A coffin

difference between hacking and cracking not hackers and crackers ​

Answers

Answer The basic difference is that a hacker uses their extensive knowledge of computer logic and code, while a cracker looks for back doors in programs, and exploits those back doors

What is the output?
>>> answer = "five times"
>>> answer[2:7]

Answers

The output  is The string answer = "five times" All strings start at index 0 and end at the length of the string minus 1.

What is output?

Other answer are:

Then count rightly, index 2 is v and index 7 is  m answer[2:7] goes from v to m including v but not m, So, answer[2:7] = "ve ti".

Output is said to be the act of making something out of another thing.

Note that the output  is The string answer = "five times" All strings start at index 0 and end at the length of the string minus 1. Then count rightly, index 2 is v and index 7 is  m answer[2:7] goes from v to m including v but not m, So, answer[2:7] = "ve ti".

Learn more about output from

https://brainly.com/question/1786465

#SPJ1

Question 4: Chess Game Knight's travails. Develop a data structure similar to a binary tree. Using a standard 8 X 8 chessboard, show the knight's movements in a game. As you may know, a knight's basic move in chess is two forward steps and one sidestep. Facing in any direction and given enough turns, it can move from any square on the board to any other square. If you want to know the simplest way your knight can move from one square (or node) to another in a two-dimensional setup, you will first have to build a function like the one below. knight plays ([0,0], [1,2]) == [[0,0],[1,2]] knight plays ([0,0], [3.3]) == [[0,0],[1,2), (3,3]] knight plays ((3,3), (0,0]) == [[3.3), [1,2], [0,0]] You are required to do the following:
1. Explain how you can ensure that any move do not go off the board.
2. Choosing a search algorithm for finding the shortest path for the knight's travails.
3. Defend your choice of an appropriate search algorithm to find the best possible move from the starting square to the ending square.
4. Creating a script for a board game and a knight.
5. Create a diagrammatical tree structure, to illustrate all possible moves of the knight as children in the tree structure.

In this task, you need to understand two algorithms which can be helpful, the Breadth-First Search which utilizes the Queue data structure to find the shortest path and the Depth-First Search which can traverse a Stack data structures.​

Answers

Answer:

Answer: 64

Explanation:

Which method can be used for making a robot perform a different set of functions?

a. changing a robot's sensors
b. dismantling a robot
c. creating a new robot
d. rewriting software

Answers

Answer:

D. Because rewriting it can make it preform new functions.

Explanation:


Refer to the chose administrator is attempting to install a P6 static route couttert to read the rette tached to outer 22 ster the state
czamand is een connectivity to the nature is still falling. What emotas been made in the static route configuration

Answers

Answer:

i do not know I just need points

Create a future concept on how technology will affect communication and on how the way humans will interact with each other

Answers

Technology making communication increasingly direct and fast, which can impact the way work is carried out and career development.

How does technology affect the job market?

The speed with which communication processes are developed from technological tools, such as the internet, may increasingly impact commercial relations between different nations, in addition to generating more and more automation of tasks and reduction of the physical structures of companies.

Therefore, future projections for technology are related to innovation and profitable and competitive advantages, as in remote work, which is a trend that reduces costs and increases motivation.

Find out more about remot work here:

https://brainly.com/question/26512743

#SPJ1

CIS261: Python Programming I home
>
6.8: LAB: Miles to track laps

Answers

Python Programming Language is known to be a widely used general purpose high level language.

What is Computer Programming?

This is known to be the way or method that is used in writing of a set of instructions that helps to inform the computer on what to do.

Note that in CIS261: Object Oriented Computer Programming, the  computer program is made up of instructions that are said to be executing only one at a time.

Its basic  instruction types is known to composed of input, process, and output.

Learn more about Python Programming from

https://brainly.com/question/26497128

#SPJ1

Help me pleaseeeeeeeee

Answers

Answer:

2. I see that they uses space, and form.

3. Maybe it a death note that you could cut stuff with scissors and knife and you'll grasp if you got stab and it sharp.

4. To show that scissors could cut,stab and do many more other things.

What was Ada Lovelace's contribution to computer science?

Answers

Answer:

She made the first computer.

Explanation:

Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage 's proposed mechanical general-purpose computer, the Analytical Engine.

Answer:

She made the first ever computer.

Explanation:

The computer was called the Analytical Engine.

does C supports STRINGS as a data type?

Answers

Answer:

C language does not support strings as a data type. A string is actually one-dimensional array of characters in C language. These are often used to create meaningful and readable programs.

Explanation:

Do anyone know how to code like I need someone do a code for me?

Answers

Answer:

yeah i can depends on what exactly it is but probably


Which type of device would be used on a laptop to verify
the identity of a user

Answers

Answer:

A biometric identification device

Explanation:

As biometric identification devices, laptops commonly use a fingerprint scanner or, for facial recognition, a camera.

Which of the following variable names best follows all of the correct naming conventions?

Answers

Answer:

B

Explanation:

The first_number would be correct.

What will be printed to the screen when the following program is run?

Answers

Answer:

The answer is 20

Explanation:

Hope this helps!

Answer:

40

Explanation:

Indexes for arrays in Python start at 0, which means the first item of an array is at index 0, the second item is at index 1, the third item is at index 2, and the fourth item is at index 3.

Therefore when my_list[3] is put inside the print function, the fourth item, 40, is printed to the screen.

Hope this helps!

You are approached by the representative of a company which sells equipment that
your company makes use of. During your conversation, the company representative
offers to provide one unit of the equipment for your individual home usage for free (i.e.,
as a gift) should you purchase 1000 units for company usage. What should you do?

Answers

Answer: Don't purchase.

Explanation:

I think that is the right thing to do. Don't get swayed by bribes or gifts because that is what a person with integrity does. Of course, if you ask your company if they're willing to buy, then buy it.

Other Questions
The trna nucleotide sequence that lines up on the mrna is:. PLS HALP!!!NEED TO SUBMIT IN LESS THAN 30 MINS! >. Diana is unconscious, and the nearest healthcare professional suspects she might have inhaled water into her lungs. if a percussive assessment were performed, which tone would suggest this to be true What is -7+13+8X -2Please help meee step by step HELP!! Rewrite the passage There was a church across the road. Woods. Empty fields. The sky showed rain. A few cars went by. The clerk in the store said the mall was close. Gail shivered in the cold air and sipped her coffee. She didnt want to get back in the car until she was ready. Which of the following DOES NOT refer to the Baroque style? Which statement is logically equivalent to the following statement: If it is raining, I will stay home from the concert?If I do not stay home from the concert, then it is not raining.If it is not raining, I will not stay home from the concert.If it is raining, I will not stay home from the concert.If I stay home from the concert, then it is raining.PLS help 4. Note cards are very good for learning.a) terminologyb) definitionsc) vocabularyd) all of the above the most important element in the regulation of the hts is the why is veronica leaving the Valley ? (valley song) Solve and graph the inequality. 6 + x > 15 What is the area and circumference of the circle (3.14 for pi) At a basketball game, a team made 57 successful shots. They were a combination of 1- and 2-pointshots. The team scored 98 points in all. Write and solve a system of equations to find the number ofeach type of shot.There were2-point shots and 1-point shots. Carmella and Carmen simultaneously left the city and drove 120 km to a nearby town. Carmella drove at a speed that was 20 km/hr faster than Carmen. If Carmella arrived in the nearby town 1 hour before Carmen, find the speed that each of them drove. How did Germany's attack on France cause WW1? What is the purpose of communication innovation? What is the difference between decay and isotopes Blank measurements are useful for determining buoyancy and identifying relationships between substances. A. Weight B. Meniscus C. Density If r is a commutative ring, show that the characteristic of r[x] is the same as the characteristic of r. Nutrient rich soll is _____.A) found near the base of mountainsB) found in river deltasC) usually infertileD) contains low levels of potassium(K)