Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This activity has the purpose of helping students fo use the continue or break command as strategy of control in the loop and build the

This activity has the purpose of helping students fo use the continue or break command as strategy of control in the loop and build the program flowchart (Objective 2 and 3)
Student instructions:
1 You will use programming as a great tool to solve academic problems more efficiently. Select the oxample of the program of this module that looks for the approximation of en x using the Taylor series and modified it to do:
The program calculates the actual value with the Matiab exp (x) command.
Change the while cycle for a for-cop command from 1 io imax iferation.
declare an max yariable equal to 100 to assign the maximum iteration.
Add before the for loop a line wth: real =exp(x);
Assign the value of 0.0001 to a tolerance variable. If you want to challenge yourseif, create a menu to select the tolerance value with difierent values.
Add whin the loop algonthm and it abs (e tayior - real) tolerance, then break
Create the flowchart of is. Upload in pdi on jpg format in the Discussian board
3 Comment about what you think is the meaning of declare a variable tolerance
Explain the use of the representsion of a code in fowchant.
Share your cornmant and compare with wo (2) of your dassmates
image text in transcribed

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

Students also viewed these Databases questions

Question

2. Why is resilience sometimes described as ordinary magic?

Answered: 1 week ago

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago