Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 Write a Java program that will determine the resultant force (including the angle) at point O for the system of forces (shown in

image text in transcribedimage text in transcribed

Part 1 Write a Java program that will determine the resultant force (including the angle) at point O for the system of forces (shown in the graph). Point 0 could be a nail head or a screw, any connection on a structural component where all forces come together. The program should prompt the user to enter the Force in Newtons per quadrant (Quadrant 2, Quadrant 3 and Quadrant 4). The Force should be greater than or equal to 0 . Also, it should prompt the user to enter the angle in degrees per quadrant. In order to remain in the quadrant, theta, for each, must be between 0 degrees and 90 degrees. The formula to find the x-component per quadrant is: ( or +)Fxcosx The formula to find the y-component per quadrant is: ( or +)Fxsinx Where F is Force (in Newtons), and is Theta (in degrees), and subscript x is 1,2 , and 3. For each, format the result for three decimal places. Note: From Point 0 , for x-components, if the arrow is pointing toward the right, then force is positive. If left, then it's negative. For y components, if the arrow is in an upper motion, then force is positive. If downward, then it's negative. As an example, for Quadrant 2, in the x-component formula, F would be - F1 and in the y-component formula, F1 would be F1 (positive). Then, to find the resultant force in N, use the formula: R=(Rx)2+(Ry)2 Where Rx is the total of all x-components and Ry is the total of all y-components. This result should be formatted for 1 decimal place. To find the Direction of the resultant force, use the formula: D=tan1(RxRy) The result should be formatted for 1 decimal place and be in degrees. Also, as an example, x= absolute value of x. The output should display the resultant force in N, the direction of the resultant force in degrees, and the quadrant number. For quadrant number, if Ry and Rx is positive, then it's Q1. If Ry is positive and Rx is negative, then it's in Q2. If Ry and Rx is negative, then it's in Q3. If Ry is negative and Rx is positive, then it's in Q4. Write a Java program that will calculate the Range of a projectile for values of theta () ranging from 0 to 90 degrees. The program should prompt the user to enter the value of V, velocity. g is gravity, 9.81. At every 5 degrees, display Theta and range values in a table. Hint: use a Loop. R=V2sin(2)/g Theta Range 0 5 Program Specification - For part 1, write a class named ComputeForce that contains a main method. - There should be one .java file (i.e ComputeForce.java) - For part 2, write a class named ComputeRange that contains a main method. - There should be one .java file (i.e ComputeRange.java) - Use a package named edu.ttc.egr281

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions