Question: PROGRAMMING FOR ENGINEERS (PROJECT I) Problem Description The maximum stress resulting from a force acting on a cantilever beam (see Figure ) can be formulated



PROGRAMMING FOR ENGINEERS (PROJECT I) Problem Description The maximum stress resulting from a force acting on a cantilever beam (see Figure ) can be formulated as follows: P - My 1 w t where, HAN = maximum bending stress [Pa] or [MPa] M = maximum bending moment [N.m] = distance from neutral axis to outer surface where maximum stress occurs [m] 1 = moment of inertia (m") The value of My and I can be obtained from the following formula: M = P.L : y = t/2 ; 12 For a simply supported beam with center load, the maximum stress is given by: P L/2 L/2 w My 1 t with, M PL M- 4 : y=t/2 i / wr 12 THE PROBLEM You need to produce a menu driven software written in C which allow the user to: a. Choose to analyse the maximum bending stress of a cantilever or a simply supported beam. On selection, user needs to enter the parameters; P, L, w and t. b. Display the calculated M, I and maximum stress result on-screen c. Save the calculated result into a *.txt file d. Programmer information e. END the program Tips: 1. Typical main screen of the program is as shown below. GE: PROGRAMMING\assign menu.exe ***THIS PROGRAM IS TO HELP THE USER TO CALCULATE THE MAXIMUM BEAM STRESS *** 1 - CANTILEVER BEAM WITH END-POINT LOAD 2 - SIMPLY SUPPORTED BEAM WITH MID-POINT LOAD 3 - ABOUT ME 14 - EXIT. 2. Use the command system ("cls") to clear a displayed screen. YOUR REPORT Your report should include the following items: a. Title page b. Table of Content c. Objective d. Introduction (including project background, problem description, algorithm involved) e. Program flow chart f. Results and discussion (how you address the problem, explanations on the written program, how to use your program, the uniqueness of your program and any improvements can be made to the written program) g Conclusion h. References i. Appendix (program listing) j. A CD containing the program *.C and *.exe file glued to the report PROGRAMMING FOR ENGINEERS (PROJECT I) Problem Description The maximum stress resulting from a force acting on a cantilever beam (see Figure ) can be formulated as follows: P - My 1 w t where, HAN = maximum bending stress [Pa] or [MPa] M = maximum bending moment [N.m] = distance from neutral axis to outer surface where maximum stress occurs [m] 1 = moment of inertia (m") The value of My and I can be obtained from the following formula: M = P.L : y = t/2 ; 12 For a simply supported beam with center load, the maximum stress is given by: P L/2 L/2 w My 1 t with, M PL M- 4 : y=t/2 i / wr 12 THE PROBLEM You need to produce a menu driven software written in C which allow the user to: a. Choose to analyse the maximum bending stress of a cantilever or a simply supported beam. On selection, user needs to enter the parameters; P, L, w and t. b. Display the calculated M, I and maximum stress result on-screen c. Save the calculated result into a *.txt file d. Programmer information e. END the program Tips: 1. Typical main screen of the program is as shown below. GE: PROGRAMMING\assign menu.exe ***THIS PROGRAM IS TO HELP THE USER TO CALCULATE THE MAXIMUM BEAM STRESS *** 1 - CANTILEVER BEAM WITH END-POINT LOAD 2 - SIMPLY SUPPORTED BEAM WITH MID-POINT LOAD 3 - ABOUT ME 14 - EXIT. 2. Use the command system ("cls") to clear a displayed screen. YOUR REPORT Your report should include the following items: a. Title page b. Table of Content c. Objective d. Introduction (including project background, problem description, algorithm involved) e. Program flow chart f. Results and discussion (how you address the problem, explanations on the written program, how to use your program, the uniqueness of your program and any improvements can be made to the written program) g Conclusion h. References i. Appendix (program listing) j. A CD containing the program *.C and *.exe file glued to the report
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
