Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coding all complete ignore that, please do written work! (Hand calculations) For this assignment. the program you create should be capable ot'allowing a user to

Coding all complete ignore that, please do written work! (Hand calculations)

image text in transcribed
For this assignment. the program you create should be capable ot'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 ofa code where each step adds a moderate increase in functionality to the code. If one feels procient in programming. the final step. f. 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. d) 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\" 205\" 125D 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 I Input 2 Input 3 Input 4 Input 5 Fx=65N E,f =13I)N 130N Fx=200N (SOON Fy = 110 N Fy = 40 N 35 F}, = 80 N 315\" 'l B F1 9 (7- F. x E Figure 1 Example of multiple forces from F; F1 ..., F.. f) The nal 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 3 Input 4 Input 5 ISBN 330N Fx=65N a: 115 a: 10 Fy=200N ,b'=140o 18:0\" Fz=170N )1 = 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

=+ How does this differ from the Solow model?

Answered: 1 week ago