Question: matlab Homework #8 For each problem you need only submit the M-files for each function. 1. Write a function called myHeader that takes no input

matlab
 matlab Homework #8 For each problem you need only submit the

Homework #8 For each problem you need only submit the M-files for each function. 1. Write a function called myHeader that takes no input arguments and returns no output arguments. Inside the function print your name, the course name, the course number, and today's date. Run Test Case: >> myHeader() 2. Write a function called computeTax that takes 2 input arguments and returns 1 output argument. The two input arguments will be the cost of an item, and the state sales tax rate. The output argument will be the price of the item including tax. Run Test Case: >> x=compute Tax(100, .075) 3. Write a function called circleFunction that takes 1 input argument (the radius of a circle) and returns 2 output arguments (the area of the circle and the circumference of the circle). Run Test Case: >> [area,circumference]-circleFunction(3) Homework #8 For each problem you need only submit the M-files for each function. 1. Write a function called myHeader that takes no input arguments and returns no output arguments. Inside the function print your name, the course name, the course number, and today's date. Run Test Case: >> myHeader() 2. Write a function called computeTax that takes 2 input arguments and returns 1 output argument. The two input arguments will be the cost of an item, and the state sales tax rate. The output argument will be the price of the item including tax. Run Test Case: >> x=compute Tax(100, .075) 3. Write a function called circleFunction that takes 1 input argument (the radius of a circle) and returns 2 output arguments (the area of the circle and the circumference of the circle). Run Test Case: >> [area,circumference]-circleFunction(3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!