Question: Need help doing assignments in C File Edit View Window Help Home Tools Numerical Analysis Lab2.pdf Sign In - C 100% Problem 1 140 The
Need help doing assignments in C
File Edit View Window Help Home Tools Numerical Analysis Lab2.pdf Sign In - C 100% Problem 1 140 The natural logarithm can be reliably approximated across the range [0.01,2| by the sum- mation: In(x)- i-l Write both C and Matlab scripts that accept inputs for the value of r and the number of summation terms and then prints the value of In() First solve this problem using a for loop. Then solve it using a while loop. These methods may be included in a single script. Print both outputs Problem 2 40] Write both C and Matlab scripts that allow a user to navigate through the departments at a company. The script should request a "department code" as an input. Print a statement to the screen directing the user to the department corresponding to their input. An example output message could say "You selected: 3. You are now being redirected to the Accounting department". Assume 5 or 6 departments. Account for what happens when a user inputs an invalid department code First solve this problem sing only if/else if conditional statements. Then sove it using a case/switch syntax. These methods be ludedin a single script. Print both outputs Problem 3 301 Using whatever method you like in whichever language you like (C or Matlab), write a script that includes a function (not main) which solves for the roots of the quadratic equation: 2a where a, b, and c are accepted as inputs. The roots should be presented in complex form
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
