How to write a program to check the collision

Assignment Help Computer Engineering
Reference no: EM132237

Question

There was a sport in air craft on Independence Day. On the air two aircrafts are in the air parallel to ground.Rapidly controller room got information that equally crafts could be colliding. You should contain write a java program to check whether they both collide in some point somewhere or not.

In controller room there is a Map on paper that will help you to find the answer.Motion of two crafts is straight line and horizontal to ground. Activity of both crafts can be represented as A1X+B1Y+C1=0 and A2X+B2Y+C2=0 on the Map.

Write down a java program to check if they will collide or not. If they are going to collide print a message that 'The crafts will collide at (x,y)' where co-ordinates (x,y) are on Map as points of collision. If they are not going to crash print a message 'Both are safe'.

Reference no: EM132237

Questions Cloud

How a box of caramel delites girl scout cookies : How to a box of Caramel deLites Girl Scout cookies Every spring you looking forward to buying a box of Caramel deLites Girl Scout cookies
Evaluate the price of the bonds at january : Determine the journal entry to record their issuance by The Bradford Company on January 1, 2013.
How to write code for selection sort, insertion sort : How to write code for selection sort, insertion sort. Using your performance of selection, bubble and insertion sort, add a counter in an appropriate place so as to measure the runtime of your code for example this capacity be a counter to track ..
How to produce an average class with a public data : How to produce an Average class with a public data Produce an Average class with a public data member to collect the sum of integer entries and a public data member to hold the double average of the sum of the 10 integers.
How to write a program to check the collision : How to write a program to check the collision Write down a java program to check if they will collide or not. If they are going to collide print a message that 'The crafts will collide at (x,y)' where co-ordinates (x,y) are on Map as points of co..
Determine net cash flow from operations : Determine net cash flow from operations
How to create a set in third normal : How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..
What profit do you see with partitioned view : Explain your idea for a database along with your thoughts for a partitioned view. 1. How will you use this partitioned view?
Compute the amount vernas pension expense : Compute the amount Verna's pension expense for 2013 and prepare the related journal entries.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Convert csv file into html file

Convert CSV file into HTML file

  Calculate the output value of problem

Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Which references source page fault with lru page replacement

Which references source a page fault with LRU page replacement policy? Illustrate your intermediate working in table below with three columns.

  Write an essay on wifi performance

Write an essay on WiFi performance

  Data representation and logic

Representing Text and Numbers, Binary Arithmetic, Interpreting Logical Statements, Logic Puzzle, Binary and Algorithms.

  Write a program that mimics a flop-turn-river of poker game

Write down a program that mimics a flop-turn-river of a poker game. I must have three buttons titled Deal, Shuffle and Start Over.

  What profit do you see with partitioned view

Explain your idea for a database along with your thoughts for a partitioned view. 1. How will you use this partitioned view?

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  How to write basic structure of an exception handler

How to write basic structure of an Exception handler a. generate an abstract class Furniture b. Declare an abstract process Discount the returns no value but accepts the cost of item

  Explain the reason for the project development

Two members of your project development team are differing about relative significance of training and documentation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd