I know a lot of students get on here and post threds trying to get others to do their homework, but i truly need help! I am looking for someone who is willing to tutor me by Im, e-mail, phone or anything. I have a coke machine project due next week and I want to do the work myself but I have no clue and the professor thinks I should know how to do it by now. Please Help!!!!!!!!!!:sad:
F.T.L.O.T.G 0 Newbie Poster
Recommended Answers
Jump to Postthe professor thinks I should know how to do it by now.
You prolly do, but sometimes solutions aren't obvious, especially when you're new to problem solving. Your professor is there to teach you and give advice, so he's not off the hook with that excuse. :)
I have a …
Jump to PostDoes your coke machine do anything more than
- take money
- give can of coke
- give change
?Take your assignment and put it in your favourite word processor, and reformat it so there is plenty of white space after each sentence with words like "shall", "must", …
Jump to PostSo those //'s mean that it wont show up on the screen when I run it, right?
They're comments. They're important info for you, my friend. :) The compiler just ignores them. It's a good thing too, 'cause my ramblings don't even come close to C++ syntax. :D
Jump to PostWhere is the variable which keeps tab of the total amount present with the user? You keep on using the variable "total" but i dont see it declared anywhere.
You can check after your switch stmt whether the user has the required amount of money to buy that drink. …
Jump to PostThink about adding some functions to make your main() a lot less busy.
Say along the lines of
int main ( ) { while ( true ) { displayInventory(); displayOption(); getChoice(); dispenseDrink(); giveChange(); } return 0; }
Add suitable parameters to each function.
Consider a …
All 22 Replies
Inanna 29 Junior Poster in Training
Salem 5,265 Posting Sage
F.T.L.O.T.G 0 Newbie Poster
F.T.L.O.T.G 0 Newbie Poster
Inanna 29 Junior Poster in Training
F.T.L.O.T.G 0 Newbie Poster
Inanna 29 Junior Poster in Training
F.T.L.O.T.G 0 Newbie Poster
Inanna 29 Junior Poster in Training
F.T.L.O.T.G 0 Newbie Poster
Inanna 29 Junior Poster in Training
F.T.L.O.T.G 0 Newbie Poster
Inanna 29 Junior Poster in Training
F.T.L.O.T.G commented: great posts that were very helpful +1
F.T.L.O.T.G 0 Newbie Poster
F.T.L.O.T.G 0 Newbie Poster
Inanna 29 Junior Poster in Training
F.T.L.O.T.G 0 Newbie Poster
Inanna 29 Junior Poster in Training
F.T.L.O.T.G 0 Newbie Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
F.T.L.O.T.G 0 Newbie Poster
Salem 5,265 Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.