Fill This Form To Receive Instant Help
Homework answers / question archive / Write program in matlab called prices
Write program in matlab called prices.m that solving the following question. Alex, Briony and Cuthbert went to the shops. Alex bought a loaf of bread, five cans of soft drink and two bars of chocolate. He paid a total of $18.25. Briony bought two loaves of bread, one can of soft drink and three bars of chocolate, and paid $17.30. Cuthbert paid $23.50 for three loaves of bread, seven cans of soft drink and one bar of chocolate. What are the prices of a loaf of bread, a can of soft drink and a bar of chocolate?
Hint:Formulate a set of equations that will solve the puzzle. See the similar examples in the lecture note. Ensure that it has a header and comments specifying inputs, outputs and so on. Display the prices of the three items