Calculate the vertical and horizontal components of u

Assignment Help JAVA Programming
Reference no: EM13942099

Write a Program in Java, which determines the distance travelled by a projectile (launched from the ground) given:

1. The velocity at launch (u), and

2.The launch angle (angle of elevation) above the horizontal (A).

The program should consist of two files: Launch.java and LaunchApp.java (application).

Assume the following:

1. The angle of elevation is given in degrees and is in the range of 0 to 90.

2. Start velocity is given as a positive number.

3. Gravity (g) is equivalent to 10m/s ^ 2.

4. Ignore air resistance.

Note also that to solve the above we must carry out the following steps:

1. Calculate the vertical and horizontal components of u (the launch velocity) using the following trigonometric identities:

Vertical component of launch velocity (Vu) = u x sinA
Horizontal component of launch velocity (Hu) = u x cosA

2. Calculate the time (t) taken for the body to return to the ground using the identity:

t = (2 x Vu) / a

where a (deceleration due to gravity) is equivalent to g (10m/s ^ 2 in this case).

3. Calculate distance (s) travelled from the identity:

s = Hu x t

EXAMPLE:

A body is projected with a velocity of u = 200 m/s at an angle of elevation A = 30 degrees above the horizontal. Determine the distance travelled by the projectile.

Vu = 200 x sin30 = 100 (m/s)
Hu = 200 x cos30 = 173.2 (m/s)
t = {2 x 100) / 10 = 20 (s)
s = 20 x 173.2051 = 3464.1 (m)

Remember to write the source code for each class in a separate file which must have the same name as the class name together with the extension .java. Remember also that by convention, class names commence with a capital letter.

You should provide a well-structured solution that is easy to read. You should use meaningful identifier names and should provide useful comments.

1279_l1.png

1607_l2.png

Reference no: EM13942099

Questions Cloud

Stress for students and teachers in higher education : Most of the stress was from the uncontrolled decision of the doctor, stress of how to study a material without explanation also stress of having an unknown exam stress of the low marks
Provide an example of two organizations in which you think : Provide an example of two organizations in which you think a similar IS would engender two different outcomes. Explain why with example. Examples should be more specific.
What is the collection efficiency : If the wall is fabricated from a high-temperature material for which k = 15 W/m · K, what is the minimum thickness L needed to ensure that the outer surface temperature does not exceed Ts,o = 1000 K? What is the collection efficiency associated wi..
A holder would not exercise an in-the-money option : The option seller, also called the option writer, sells (or writes) the option and has a short position in the contract. When the exercise price of an option is equal to the current price of the stock, the option is said to be at-the-money. A holder ..
Calculate the vertical and horizontal components of u : Calculate the vertical and horizontal components of u (the launch velocity) using the following trigonometric identities:
What percentage of their claims should the unsecured : Prepare a statement of realization and liquidation for the period just described. What percentage of their claims should the unsecured creditors receive?
Consider a bond with an equity warrant : Consider a bond with an equity warrant. The warrant entitles the bondholder to buy 25 shares of the issuer at €50 per share for the lifetime of the bond.
Calculate operating cash flow for year by using all methods : The owner of a bicycle repair shop forecasts revenues of $212,000 a year. Variable costs will be $63,000, and rental costs for the shop are $43,000 a year. Depreciation on the repair tools will be $23,000. The tax rate is 40%. Calculate operating cas..
Predict the associated effect on an organization : Risk assessment applications help predict the associated effect on an organization if a risk occurs. COBRA and I2S2 are two risk assessment applications that are explained in the textbook.

Reviews

Write a Review

JAVA Programming Questions & Answers

  How to write and incorporate string

How to write and incorporate string - custom function

  Micks wicks makes candles in various sizes create a class

micks wicks makes candles in various sizes. create a class for the business named candle that contains data fields for

  Prepare a program for sorted list

Code a doubly links, sorted list (in ascending order). Each item of the list will just store int. You need to code three classes: Node, SortedList, and GroupProject

  Identify the first character of the name and lengthof length

Write a Java application that stores the names of your family and friends in a one-dimensional array of Strings. The program should show all names in upper case and lower case, identify the first character of the name, and the lengths of the names.

  Create exception classes

First, create three exception classes named NumberHighException, NumberLowException, and NumberNegativeException. Both NumberHighException and NumberLowException should be directly subclassed from the Exception class, but NumberNegativeException s..

  Write a program to register students for a college

Students have names, addresses and courses. Implement the interface class RegisterStudent. RegisterStudent has one method, public boolean register, which returns the boolean value of true or false if the student is successfully registered for the ..

  This is a client server monitoring system project

this is a client server monitoring system project design.first in the server side the 1a program is my own and i have

  Create and code a program that uses three parallel numeric

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays.

  Java application which creates bank records

Write down a java application which creates 10000 bank records and the allow user ti enter a balance and customer account info. using a an account number.

  Size of the frame to be set a little bit larger than content

I need the size of the frame to be set a little bit larger than its content, which is a label. Also, the location could be set so that it could be appeared not at the upper left corner of the screen. And we can set the foreground and background co..

  Calculate and display the mortgage payment amount

Change request7RequestorNinfa Pendleton - Rapid City, SDDescriptionWrite the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage

  Creates an array of six divsales objects

Write a program that creates an array of six DivSales objects. The program should ask the user to enter the sales for four quarters for each division.

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