Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
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

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions