Question: The below code was run in MATLAB carprice = 3 4 9 9 ; salesTax = 0 ;; state = [ ^ prime prime Texas

The below code was run in MATLAB carprice=3499; salesTax=0;; state=[^ prime prime Texas^ prime prime ]; if strcmpi(state,^ prime Texas^ prime ); salesTax=carprice^*.08 end totalCost=carprice+salesTax; fprintf(The total cost of the car is \%g\ mathcal lambda g+ mathcal lambda g] backslash n, totalCost, carprice, salesTax) What would be printed out in the MATLAB command window? The total cost of the car is 37789.9[34999+2799.92] The total cost of the car is 35799[34999+800] The total cost of the car is 34999[34999+0] would not print due to errors in the code.

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 Finance Questions!