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

This program will output a right triangle based on user specified height triangle_height and symbol triangle_char.

(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt)



(2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts)



Example output for triangle_char = % and triangle_height = 5:

Answers

Answer:

triangle_char = input('Enter a character:\n')

triangle_height = int(input('Enter triangle height:\n'))

print('')

for I in range (triangle height):

for j in range(i+1):

print(triangle_char, end = " ")

print()

Explanation:

I did this question mark brainiest please

a software copyright?​

Answers

Answer:

Software copyright is the application of copyright in law to machine-readable software. While many of the legal principles and policy debates a concerning software copyright have close parallels in other domains of copyright law, there are a number of distinctive issues that arise with software

For what two reasons is it important to add comments to a program? A. To make the structure of the code clear for other programmers B. To make it run faster and more efficiently C. To make the program appear elaborate and complex D. To make troubleshooting and fixing bugs easier​

Answers

Commenting is important to a program to ease the understanding of code by other programmers, and for troubleshooting and fixing bugs.

What is commenting on a program?

The commenting on a program is given as the human-readable description of the code that helps in the analysis of what is the function being performed by the code.

The commenting is important as:

It makes the easy to clearly understand the structure of code by other programmers are many are working in an organization.

In the troubleshooting and when fixing the bugs, the comments add the ease to crack the fault in the code.

Thus, options A and D are correct.

Learn more about commenting in a program, here:

https://brainly.com/question/17102137

#SPJ1

1. How is the pronoun their used in the second sentence?
The students in Mrs. Powell 's classroom completed the service project in record time. Their
contributions to the community were broadcast on the local news,
A. To link a subject with the word(s)that describes it
B. To replace prepositions
C. To show possession
D. To replace an article like the or an

Answers

The pronoun is used in the second sentence as To link a subject with the word(s)that describes it.

What is a pronoun?

This is known to  be a word or phrase that is said to be used to replace a noun or noun phrase.

Note that in the above sentence, the pronoun " their" is used to The pronoun is used in the second sentence as To link a subject with the word(s)that describes it as it tells more about service project.

Learn more about pronoun from

https://brainly.com/question/395844

#SPJ1

Coding final. The code needs to be in python. See picture for information.​

Answers

Answer:

Explanation:

def running_sum():

 num = int(input("Enter a number: "))

 limit = int(input("Enter a limit: "))

 sum = num

 while sum < limit or sum == limit:

      number = int(input("Enter another number: ")

      sum+=num

 if sum==limit:

      print(sum)

 

How far should you sit from your computer screen?
PLS ANSWEER ASAP

6 to 12 inches

12 to 18 inches

18 to 24 inches

24 to 30 inches

Answers

im sorry but none of these THE REAL ANSWER IS 16 to 30 inches
Yes the answer is 16 to 30 inches
Non of these are the answer

When searching for a video file on your computer, you should look for a file with which extension?

Answers

While searching for a video file on the computer, the .mp4 extension must be searched.

What is a file extension?

A file extension is given as the suffix added to the file name that has the description of the type of file.

The file extensions for various types of files are different and are used for the identification of the file type. The video files have the general extension as .mp4.

Thus, while searching for a video file on the computer, the .mp4 extension must be searched.

Learn more about file extensions, here:

https://brainly.com/question/7640304

#SPJ1

What is the half of 3/18

Answers

Answer:

1/3

Explanation:

3/18 divided by 2 equals 1/3

hope this helps

have a good day

Which of the following functions is a scalar function?
A.count B.Max C.Sum D.Month

Answers

Count, Max, and Sum are all scalar functions. Thus, option A, B, and C is correct.

What is a scalar function?

A scalar function can be defined that only returning one number out of an incoming signal. The Scalar function treats every column separately. Input data forms the basis of SCALAR Services. Although scalar procedures can accept one or more inputs, they all must give a mono result.

The different function helps to identify the data in a different respect. The serve as significant only function accepts input value, usually a column number and another single identifier that denotes a set.

Count function totals each row. The sum function gives the total. The function represents the data and is formed with the help of the Count, Max, and Sum.

Therefore, option A, B, and C is the correct option.

Learn more about the scalar function, here:

https://brainly.com/question/21925479?referrer=searchResults

#SPJ2

what does command Array.GetItemcount do?

Answers

Answer:

According to https://smallbasic-publicwebsite.azurewebsites.net/docs/Array - "Gets the number of items stored in the array."

Explanation:

For which tasks is Layout view most helpful? Check all that apply.

moving an object from one section to another
showing how a report will look when printed
selecting and formatting an object
positioning an object precisely within a section
exporting a report to email or Microsoft 365

Answers

The task where the Layout view most helpful is showing how a report will look when printed.

What is the Layout view?

The Layout view is known to be a view that is said to be more of visually-oriented when compared to the Design view.

Note that the Layout view is one where each control often shows real data and as such, The task where the Layout view most helpful is showing how a report will look when printed.

Learn more about  Layout view  from

https://brainly.com/question/1327497

#SPJ1

Answer:

Its B and C

Explanation:

I just answered it. Believe it or not

PLEASE HELP!! THIS IS DUE SOON.

An optical drive is used to send information to the cloud.

A. True

B. False

Answers

Answer:

The correct answer should be false.

Explanation:

I'm not so sure, so let me know if you got it worng.

And can I please have brainliest if it is correct?

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:

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

Suppose you want to pick the most reliable data storage option possible. What would you choose?
cloud storage
solid-state drive
optical disc
USB flash drive

Answers

Answer:

USB flash drive

Explanation:

A USB flash drive can store important files and data backups, carry favorite settings or applications, run diagnostics to troubleshoot computer problems or launch an OS from a bootable USB. The drives support Microsoft Windows, Linux, MacOS, different flavors of Linux and many BIOS boot ROMs.

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

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 protocol suit for the current internet

Answers

Answer:

TCP/IP protocol suite

Explanation:

it just is lol

Explanation: One of the most common networking protocol suites is known as Transmission Control Protocol/Internet Protocol (TCP/IP). All devices that communicate across the Internet must use the TCP/IP protocol suite. Ok bye

what do you feel are the consequences of fake news on American society and how have digital communication tools contributed to it

Answers

Digital communication is the inter-transfer of information from one point to another. It has increased the circulation of fake news and has greatly influenced society.

What is fake news?

Fake news or yellow journalism is the spread of false and incorrect baseless information from a source. The use of social networking platforms and television have increased the spread of fake news.

It has led to negative journalism and many sensational events that have affected society in a negative manner. It has been increased to gain monetary benefits and to make some conflicts.

Therefore, fake news has negatively affected the peace of society.

Learn more about fake news here:

https://brainly.com/question/11222703

#SPJ1

The following equations estimate the calories burned when exercising (source):
Women: Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184

Men: Calories = ( (Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) — 55.0969 ) x Time / 4.184

Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for women and men.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('Men: {:.2f} calories'.format(calories_man))

Ex: If the input is:

49
155
148
60
Then the output is:

Women: 580.94 calories
Men: 891.47 calories

Answers

Answer:

# Women: Calories = ((Age x 0.074) - (Weight x 0.05741) + (Heart Rate x 0.4472) - 20.4022) x Time / 4.184

#Men: Calories = ((Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) - 55.0969) x Time / 4.184

#main function to gets input for age, weight, hear rate and time and print Women and Man calorie burnt

def main():

 #get user input for age, weight, hear rate and time

 age = int(input("Enter your age:"))

 weight = int(input("Enter your weight:"))  

 heartRate = int(input("Enter your heart rate:"))

 time = int(input("Enter your time:"))

 #calculate calories for women and men

 caloriesWomen = ((age * 0.074) - (weight * 0.05741) + (heartRate * 0.4472) - 20.4022) * time / 4.184

 caloriesMen = ((age * 0.2017) + (weight * 0.09036) + (heartRate * 0.6309) - 55.0969) * time / 4.184

 #print calories for women and men

 print("Women: %.2f calories"%caloriesWomen)

 print("Men: %.2f calories"%caloriesMen)

#calling main function

main()

Explanation:

1) Above is your updated program.

2) Please copy it in python file and run

3) Below is the test output for this program

Enter your age:49

Enter your weight:155

Enter your heart rate:148

Enter your time:60

Women: 580.94 calories

Men: 891.47 calories

Which output returns the Boolean value FALSE? A. 3 B. 2 C. 1 D. 0

Answers

Answer:

D) 0

Explanation:

True - 1

False - 0

2. What is the importance of ethics in emerging technologies?

Answers

Answer:

The importance of ethics in emerging technologies employ speculative data about future aspects such as items, applications, and consequences This help us make more informed moral judgments about and prescriptions for research

You are a Junior IT Technician in your organisation. One of the duties is to demonstrate and explain how the computer works to the new intern staff. Discuss how you would demonstrate and explain

Answers

Recognizing the way computational modeling are utilized is just as important as employing technical knowledge about computer or laptop.

What is a demonstration?

Providing verifiable evidence to demonstrate that maybe something real or is correct.

You are a Junior IT Technician in your organization. One of the duties is to demonstrate and explain how the computer works to the new intern staff.

I'll describe how and when to install and set up computer networks, examine computer issues, and resolve technical and application issues over the phone or face to face as an IT specialist.

Based on the scale of the company for which you work, how would you represent particular maybe more knowledge and expertise? A technical IT support team is commonly separated into both first support, with both the second-line support workers answering more specialized inquiries that the first support staff couldn't handle.

More about the demonstration link is given below.

https://brainly.com/question/15070998

#SPJ1

what is another word for low level language​

Answers

Answer:

machine code or assembly language

Explanation:

Because of the low abstraction between the language and machine language, low-level languages are described as "close to the hardware"

wikipedia

Answer:

Another word for Low Level Language is 'Machine-Oriented Language'.

there are two types of Low Level Languages:

1 ) Machine Language

2) Assembly Language

hope that helps...

Briefly explain how human thinking is mapped to artificial intelligence components.

Answers

Answer:

The technique is called 'mind mapping' which allows the visual representation of ideas and information which also links to memorization. Artificial Intelligence is mimicked as a system based on how our mind works; the human brain's critical thinking is mapped to artificial intelligence.

What fictional place would you most like to go to? Its your opinion!

Answers

Mount olympus

Explanation:

Because its the home of the greek gods and i feel like it would be cool to meet the gods

Question 1 of 10
Which abbreviation is used to describe one type of long-term computer
memory?
O A. SCRAM
O B. DRAM
O C. ROM
O D. RAM

Answers

Answer:

C) ROM

Explanation:

In a computer, RAM is the short term memory. On the other side, ROM is the long term memory. Other examples of long term memory: Hard disk or SDD. Rest all of the options - SCRAM, DRAM, RAM are memory chips.

Answer:

C. ROM

Explanation:

The image was provided for explanation.

Hoped it helped.

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

What action should you take if you become aware that sensitive compartmented information has been compromised

Answers

Answer:

Report the crime to local law enforcement.

Explanation:

what are some answers about computer languages​

Answers

Question: What is program execution?

Answer: Program execution is the process of carrying out instructions innate to the program by the computer. Before execution, the computer program is required to be loaded into the memory (RAM) of the computer.

Other Questions
Question 19 of 20Which force causes the protons in an atom to be attracted to one another?OA. Strong nuclearOB. MagneticOC. Weak nuclearOD. Electric The photograph of President George W. Bush was taken in 2003 as he gave a speech announcing the end of combat operations in Iraq. The photograph of the WhiteHouse demonstration was taken in 2008, during Bush's second term as president. Which of the following makes a true statement about the photographs?O In the 2003 photo, the sign uses omission to celebrate the military without acknowledging the thousands of soldiers who remained. The 2008 photo reveals abias in favor of Bush, using the memory of his 2003 speech to show support for policies and claims he made after that time.O In the 2003 photo, Bush uses emotional appeal to gain support for ongoing efforts in Iraq from the military and other citizens. The 2008 photo reveals a bias infavor of Bush, using the memory of his 2003 speech to show support for policies and claims he made after that time.O In the 2003 photo, the sign uses omission to celebrate the military without acknowledging the thousands of soldiers who remained. The 2008 photo reveals abias against Bush, using the memory of his 2003 speech to criticize policies and claims he made after that time.O In the 2003 photo, Bush uses emotional appeal to gain support for ongoing efforts in Iraq from the military and other citizens. The 2008 photo reveals a biasagainst Bush, using the memory of his 2003 speech to criticize policies and claims he made after that time. What songs should I learn on the piano? I started taking lessons last September as one of my electives, and I would appreciate song suggestions for someone at my level! I just finished the Faber Adult Piano Adventures All-In-One Book 1 this week, and on the side I've learned a couple songs like "Climb Every Mountain" from the Sound of Music and "Dear Theodosia" from Hamilton. Any suggestions that are about that level, maybe even a little bit more challenging, would be very much appreciated!! Have a lovely day!!! Sixty-five randomly selected car salespersons were asked the number of cars they generally sell in one week. Fourteen people answered that they generally sell two cars; nineteen generally sell three cars; twelve generally sell four cars; nine generally sell five cars; eleven generally sell six cars. Calculate the following. (Round your answer to two decimal places.)sample mean = x The expression 12.66d + 11.12c can be used to find the total cost of d pounds of almonds and c pounds of cashews. How much does it cost to buy pounds of almonds and pounds of cashews?Pls help Which statement about Zapotec woodcarvings from the Oaxaca Valley, Mexico, is true?They depict real animals, not imaginary ones.Artists use soft colors and a limited amount of patterns on them.They are carved from oak wood using saws.They are an example of folk art. 15-(7+3x)=16-(4x-1) please give me a step by step answer, I don't understand the rules to removing parenthasees and I keep getting different answers :( pls help Which of the following is a sperm-transporting duct of the male reproductive system?A. EpididymisB. Ductus deferensC. Ejaculatory ductsD. All of the above What is the value of y?a.) 17.25b.) 33c.) 37d.) 39 Mrs. taylor has two new girls in her fourth-grade class: soledad from mexico and li-hua from china. should she expect the two to differ in how they display emotion Rob owns stock in dowc beverage co. and agram imports. he owns 86 more shares of agram imports, which pays a dividend of $5.15 per share, than he does of dowc beverage co., which pays $6.52 per share. if rob receives $4,585.15 in dividends annually, how many shares of agram imports does he own? a. 535 shares b. 635 shares c. 398 shares d. 441 shares What lines are not used when creating linear perspective what are two types of wounds people can get when shot Question 2 of 22Who was a famous Socialist and founder of the Industrial Workers of theWorld?A. Eugene V. DebsB. Phillip D. ArmourC. Charles A. Pillsbury What is 9x8-7+4x10-2x7 Ac and db are chords that intersect at point h. a circle is shown. chords a c and d b intersect at point h. the length of a h is 20 minus x, the length of h b is 12 minus x, the length of d h is x 4, and the length of h c is x. what is the length of line segment db? 4 units 8 units 16 units 20 units Arrange the sentences correctly.1.Yo quiero ir al baile para me poner aqua de colonia. 2.Yo voy memorizarme las palabras de a vocabularios. The _____ states that energy is neither created nor destroyed.A) DownstreamB) MeltdownC) TurbineD) EthanolE) Passive solar coolingF) UtilityG) First Law of EnergyH) RefineryI) IsotopesJ) Second Law of Energy Which form of the verb is correct?Jorge _____ questions all day long. A.askB.asks the ________ is part of the processor that manages the movement of data through the cpu.