Programming

Programming

# I have 3 rectangles and want to find the area 1 rectangle…

Customer Question
Hi, I have 3...

Hi, I have 3 rectangles and want to find the area 1 rectangle covers over the 1st and 2nd one.

Technician's Assistant: Is there a specific language you're coding in?

Python

Technician's Assistant: What's your objective for this Python project?

What do you mean?

Submitted: 2 months ago.Category: Programming
Show More
Show Less
Customer reply replied 2 months ago
The first and second rectangle are not overlapping, they are arbitrarily placed on the coordinate system. I only care about how much area the third rectangle covers, and the area that it is not covering. The only coordinates given are the 2 opposite ends of all the rectangles.
12/17/2017
Programmer: LogicPro, Computer Software Engineer replied 2 months ago
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,333
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified

Hi

Welcome here.

Customer reply replied 2 months ago
Hi,I have no file to share. What exactly are you looking for?
Programmer: LogicPro, Computer Software Engineer replied 2 months ago

Customer reply replied 2 months ago
The point is not to hardcode it. I'm looking for a function to do this for me, efficiently. I can give you some random points.Rectangle 1: (2,3),(4,7)
Rectangle 2: (4,0),(12,6)
Rectangle 3: (1,1),(10,4)
Programmer: LogicPro, Computer Software Engineer replied 2 months ago

Do you need to find that which rectangle will overlap?

Customer reply replied 2 months ago
No, I would like to find the total area in Rectangle 1 and 2 in which it is not overlapped.
Programmer: LogicPro, Computer Software Engineer replied 2 months ago

Customer reply replied 2 months ago
No, I don't. I want an efficient way to do this. The inefficient way (which I am trying to avoid) is comparing all the x and y coordinates. This means generating the other 2 coordinates for the rectangles, and then comparing them. This is super inefficient, and I am sure there is a faster way.
Programmer: LogicPro, Computer Software Engineer replied 2 months ago

I will check it and reply you in few hours.

Programmer: LogicPro, Computer Software Engineer replied 2 months ago

My apologies, I am out of ideas and opting out for other Professionals to answer. Please wait. You will be notified by email as soon as any Professional joins you.

Programmer: George Sibiya, Computer Hardware Engineer replied 2 months ago
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 264
Experience: PhD in Computer Science
Verified

Hi,

Welcome to JystAnswer and thank you for utilising our services.

Regards,

G

Customer reply replied 2 months ago
I still do.
Programmer: George Sibiya, Computer Hardware Engineer replied 2 months ago
Ok thanks. So, since your rectangles have two points instead of four, do they represent diagonal?
Programmer: George Sibiya, Computer Hardware Engineer replied 2 months ago
Oh ok I have just got my answer from your earlier messages
Customer reply replied 2 months ago
Any update on this?
Programmer: George Sibiya, Computer Hardware Engineer replied 2 months ago

I was waiting for your action on my offer

Customer reply replied 2 months ago
Yeah, no. I'm not paying a single cent.
Programmer: George Sibiya, Computer Hardware Engineer replied 2 months ago

ok thanks

ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7,677
7,677 Satisfied Customers
Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

ATLPROG is online now

A new question is answered every 9 seconds

• Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
• Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

## What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

## Meet the Experts:

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

Computer Software Engineer

13,333 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

Software Engineer

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I want the answer to the programming question on this post.
Hi I want the answer to the programming question on this post … read more
Ingo U
Master\u0027s Degree
357 satisfied customers
I need help coding in MIPS. MIPS (assembly language) I have
i have a general layout and most of it down, if it can be finished in the next 2-3ish hours … read more
Ingo U
Master\u0027s Degree
357 satisfied customers
Need assitance with some SUMIFS ranking some itesm by
need assitance with some SUMIFS ranking some itesm by criteria and then findingaverage of 3,4,5 & 6,7,8 in the ranks for given criteria and displaying in a new cell. have document etc. … read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I have an assignment due in 5 hours, and i don't have the
I have an assignment due in 5 hours, and i don't have the coding skills to finish it that fast. can you help? … read more
Ingo U
Master\u0027s Degree
357 satisfied customers
I found a dating website cookie on my husband's computer
I found a dating website cookie on my husband's computer which shows it is a unto direct cookie. He says he never visited that website. I think he has. What is the truth? … read more
Jason Jones
AAS Information Technology
6,321 satisfied customers
I need help knowing how to use one ethernet connection on my
for George Sibiya. i need help knowing how to use one ethernet connection on my pc to permit two ethernet cables. (not a router)… read more
Ingo U
Master\u0027s Degree
357 satisfied customers
I have an old Word Press site But I do not remember the sign
I have an old Word Press site But I do not remember the sign in name or pass word and all was on a old computer Link... https://luckypokerleagueblog.wordpress.com/ … read more
Samuel Kresslein
Associate\u0027s Degree
254 satisfied customers
I am trying to get a web page up and running on windows
I am trying to get a web page up and running on windows server 2012 R2 using microsoft visual stidio 2010 and need a list view to wrap the text can you help? … read more
Ingo U
Master\u0027s Degree
357 satisfied customers
I am looking to create a website that will sell one travel
I am looking to create a website that will sell one travel package that is available over several different dates. I need a simple website, where you can pick the package and the date, checkout/paymen… read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I can connect just fine to SQL Server with Dreamweaver now.
Hello. I can connect just fine to SQL Server with Dreamweaver now. I am having trouble sending my data to the database. I need to click on a button and have that data go the correct field. I can't see… read more
Aitizaz
Software Engineer
Bachelor\u0027s Degree
163 satisfied customers
Need a programmer in Excel vba. 2013. What I have tried so
Need a programmer in Excel vba JA: When did you last update Excel? Customer: 2013 JA: What have you tried so far with your Excel? Customer: what I have tried so doesn't work JA: The Software Technicia… read more
Richard
IT Manager
IT Manager, Consultant
3,322 satisfied customers
It's a program work from zybook, where we should finish this program … read more
LogicPro
Computer Software Engineer
13,333 satisfied customers
I was searching the web and was able to find a paste
Hi! I was searching the web and was able to find a paste vbscript that was used for a previous person. However, I am not sure how to automate this process … read more
Aitizaz
Software Engineer
Bachelor\u0027s Degree
163 satisfied customers
I have office 2013 excel, word, and outlook on my computer.
I have office 2013 excel, word, and outlook on my computer. Something happened on my desktop and 2013 word's shortcut and program disappeared. I haven't found a way to bring the program and shortcut b… read more
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
444 satisfied customers
I have a desktop pc hp 500-490 and want to set up dual
I have a desktop pc hp 500-490 and want to set up dual monitors with hd display. What would be the easiest way to accomplish this? There are two video outputs vga and dvi but would like to use hdmi.… read more
technicalcat
Computer Science
839 satisfied customers
I would like to purchase a printed copy of a blog that was
I would like to purchase a printed copy of a blog that was written during our son's trip to Italy last summer. … read more
Kris R
IT Manager
Computing
3,104 satisfied customers
Looking for some help create this perl program. I will
Looking for some help create this perl program. I will attach the outline as well at the design document that needs to be filled out. Thanks… read more
Kris R
IT Manager
Computing
3,104 satisfied customers
I'm getting a syntax error when inserting a formula using a
I'm getting a syntax error when inserting a formula using a bookmark in Word. … read more
Josh
It Support Specialist
Associate Degree
5,145 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less