Practical 1: Introduction to MATLAB
Elementary Mathematical Functions
Kiwi Change
Watch this video for guidance on how to complete this exercise
You go to the supermarket only to find you left your wallet at home. After hunting on the floor of your rather messy car, you find 95c and decide to buy some kiwi fruit, which are 35c each. > Use the floor and rem functions to find out the answers to the following questions: How many kiwi fruit can you buy? How much change do you have left? Explain the coding that you used. |