1. Engineering
  2. Computer Science
  3. please provide a code in matlab 1 write...

Question: please provide a code in matlab 1 write...

Question details

** Please provide a code in MATLAB **

1. Write a function called taxcalculator that reads an amount in dollars, adds tax based on the table below and return the total with tax using elseif statement.

2. Write a function called printstars that reads the number of rows and returns a triangle of stars similar to the one below:
      *
     **
    ***
   ****
  *****
 ******
*******
********

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution