Your sales manager is headed to the candy store and needs your help figuring out how much money her purchase will require. When she first visited the store she bought one pound of jellybeans and two pounds of chocolate for $2.00. A week later, she bought four pounds of caramels and one pound of jellybeans paying $3.00. The next week, she bought three pounds of licorice, one pound of jellybeans and one pound of caramels for $1.50. Now she wants to buy one pound of each of the four candies. How much money will this cost?
Instructions:
a) you may assume these ridiculously low prices have remained fixed;
b) write an xbasic script that solves the puzzle;
c) your script should display your solution in a message box on screen;
d) your script should be exported to a text file and attached to your answer here.
Good luck.
PS - Credit to Creative Computing Magazine
Bookmarks