Ok, thanks I see what you saying now. So...if the user asks for seven cookies they would be charged for the price of a dozen plus the price of one single. I think what I need to do then in my...
Type: Posts; User: Bernard4
Ok, thanks I see what you saying now. So...if the user asks for seven cookies they would be charged for the price of a dozen plus the price of one single. I think what I need to do then in my...
Sorry,
I meant to have after the else if;
totalPrice = calcPrice12;
Not sure if that even makes a difference, but thats what I meant to have, thanks
I've just learned about classes and objects and I'm having trouble trying to calculate an order for a price of cookies, which is the goal of the program.
The program is supposed to calculate the...