Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (adunb8):

write code for the folowing procSale function. Its purpose is take the array of VendItem structures(first arg), the selection (2nd arg = which item to purchase) and the cash (3rd arg= amount offered to pay for the item) and produce the following results: If the case is more than 1.00 output message Cash amount too large and return. if there are no items left for the selection output no xxx left and return computeChange function passing it the price and the cash. Assume it will put the appropirate int value in the array changecoins which is globally declared. b.) output the message : XXXX

OpenStudy (adunb8):

you purchased and your change is xxQuarters, yyDImes, zzNickels (where xxxx is item name) xx= .25coins , yy = .10 zz= number of .05 coins to be returned to customers change. Do not ouput zero coin value. c) subtract 1 from the number of items availabe for the selection.

OpenStudy (adunb8):

Struct Venditem { string itemName; doubleprice; //all prices are <=1.00 and multiples of .05 int numleft; }; const int size = 8; int changecoins[3] ; void procsale(venditem vendinfo[size]. int selection, double cash) { }

OpenStudy (adunb8):

HELP !! please!!

OpenStudy (rsmith6559):

Take your description of what this needs to do, divide it into the sentences, make them into comments. Write a block of code, or a function, to accomplish each sentence. You may need to write some "glue" code to glue these into a working program.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!