Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do the written work (hand calculations) ignore coding, that's all completed For this assignment. the program you create should be capable of allowing a

Please do the written work (hand calculations) ignore coding, that's all completed

image text in transcribed
For this assignment. the program you create should be capable of allowing a user to input any number of forces and determine a force B. that would balance these forces. The following steps are meant to aid in the development ot'a code where each step adds a moderate increase in functionality to the code. lfone feels procient in programming. the final step. 1'. should be capable ofall previous steps. a) The code should begin by asking for a user input for the number of forces. b) Next. prompt the user to input each 2-dimensional force as a force and angle (measured from the x-axis), a visual example is shown in Figure 1. This will require a loop and an array. or similar depending on the language. to record the user input forces. c) Combine the forces to determine the force. B (as indicated in Figure 1), that will balance all the input forces. Output this as force magnitude and anlge. (1) Using the following forces and angles, test your code. Compare this with your own hand calculations. Include all written work and code solutions in your report. Input 1 Input 2 Input 3 Input 4 Input 5 200 N 350 N 125 N 75 N 600 N 35" 170\" 205D 125\" 315\" e) Add the ability for the user to enter the force as either a force and an angle or force components in the x- and y- direction. Again, demonstrate this works with a hand calculation and through your code for the following forces. As before, include both the hand and programmatic solutions in the nal report. Input 1 Input 2 Input 3 Input 4 I Input 5 ' Fx=65N Fx=13UN 130N Fx=2001v | 600N l P3,=110N Fy=40N 35 Fy=80N | 315 l V B .__F?_ Figure 1 Example of multipte forces from F; F, W, F\". t) The final code should be able to input forces in three dimensions. The user should now enter any number of forces as either three force components in the x, y, and 2 directions or the forces can be input in as a force magnitude and three coordinate direction angles. The final output will remain as the force that balances all input forces. Test with the info below and submit the solution along with a hand calculation confirming the program results. Output this as a force magnitude and coordinate direction angles. Input 2 Input 3 Input 4 Input 5 Fx = 7240 N 150 N 330 N Fx = 65 N F3,=40N 0:115\" a: 10 Fy=200N Fz=110N 3:140\" 18:0\" Fz=170N y = 90" y = 40 y = 130

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

Introductory Classical Mechanics

Authors: David Morin

1st edition

9780511808951, 521876222, 978-0521876223

More Books

Students also viewed these Physics questions

Question

=+ (b) affect the world interest rate?

Answered: 1 week ago