Question: salestax = 0 ; state 'Texas' ] ; if strcmpi | state; Texas' ) salestax = carprice ? * * , 0 8 end total

salestax =0;
state 'Texas'];
if strcmpi|state; Texas')
salestax = carprice ?**,08
end
total Cost = carprice + salestax;
fprintf(The total cost of the car is , total Cost, carprice, salesax?:
What would be printed out in the MATLAB command window?
The tocal cont of the car is 35799[34999+800
It wasld not primt dus to emoes in the code.
The total cost of the car is 34999[34999+0)
The total coest of the car is 37789.9[34999+2799.52]
salestax = 0 ; state 'Texas' ] ; if strcmpi |

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