J
Jeffrey Barrett
First, obviously this is for a class I'm in. Second, I should have
attended the last lecture. Third, I have a headache.
The assignment is to build a soda machine program that will ask the
user to pick a drink (6 choices) and then ask the user for money
(price) and then display the quantity left of the certain drink
(intitially 20).
The assignment states that I must use a) 2 parallel one-dimensional
arrays to store drink prices in the first, and quantity in the second;
b) enumerated type to represent the drink names and values of this
type to access the array elemements for each drink.)
Rather than show what I have done so far (trust me it's laughable),
could someone please just get me started in the right direction (i.e.
quick summary what exactly 'typedef enum' does and how to set up the 2
arrays in parallel).
I will put the person who helps me in my will (I'm rich I swear).
attended the last lecture. Third, I have a headache.
The assignment is to build a soda machine program that will ask the
user to pick a drink (6 choices) and then ask the user for money
(price) and then display the quantity left of the certain drink
(intitially 20).
The assignment states that I must use a) 2 parallel one-dimensional
arrays to store drink prices in the first, and quantity in the second;
b) enumerated type to represent the drink names and values of this
type to access the array elemements for each drink.)
Rather than show what I have done so far (trust me it's laughable),
could someone please just get me started in the right direction (i.e.
quick summary what exactly 'typedef enum' does and how to set up the 2
arrays in parallel).
I will put the person who helps me in my will (I'm rich I swear).