Question: Matlab Currency conversion A currency exchange booth exchanges 1 US dollar to 119.771 Japanese yen. The currency exchange booth rounds down to the nearest yen.
Matlab


Currency conversion A currency exchange booth exchanges 1 US dollar to 119.771 Japanese yen. The currency exchange booth rounds down to the nearest yen. Assign totalYen with the amount of yen distributed to a customer given totalDollars. Ex: If totalDollars is 10 dollars, then totalYen is 1197 Your Function Save CReset EE MATLAB Documentation I function totalYen = ConvertToYen (totalDollars) 2% tota!Dollars : Amount to convert in dollars % Assign totalYen with the amount of yen distributed given tota!Dollars % Exchange rate is 119.771 Japanese yen for 1 US dollar totalYen = 0; 4 6 7 8 end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
