Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) By drawing a flowchart, explain the use of if-else-end structure in programming. (10 marks) (b) The following code is for calculating and plotting engineering

image text in transcribed

(a) By drawing a flowchart, explain the use of if-else-end structure in programming. (10 marks) (b) The following code is for calculating and plotting engineering stress and strain in a typical tension test. Find at least four errors in the code. For each error identified, explain why the error is caused. (10 marks) F-[0 13345 26689 40479 42703 43592 44482 44927 45372 46276); L-125 25.037 25.073 25.113 25.122 25.125 25.132 25.144 25.164] r0.0064 - + r "2 ; % AO is initial cross section area Stress-F.A0 stra n={L-LO) /LO 0 is initial gauge length fplot (Strain, Stress, k')

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

More Books

Students also viewed these Databases questions