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
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.
doubleprice; //all prices are <=1.00 and multiples of .05
const int size = 8;
int changecoins ;
void procsale(venditem vendinfo[size]. int selection, double cash)
Not the answer you are looking for? Search for more explanations.
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.