So, I'm new. i just started learning about classes and objects (still not sure how to implement them though.) and this is the first program i wrote with no help. Obviously its not very original. I have a couple of questions
1. How can I make this code reset/refresh so i can enter more than 1 request before the app closes?
2. In this case, is it dumb i've made a class for all those minor functions? would it be better to just store them all in main for this program?
3. Most importantly, is there anything I did that you guys would do differently? How can i simplify it?
1. How can I make this code reset/refresh so i can enter more than 1 request before the app closes?
Loops
2. In this case, is it dumb i've made a class for all those minor functions? would it be better to just store them all in main for this program?
Class is not needed here. A single function would do the trick.
3. Most importantly, is there anything I did that you guys would do differently? How can i simplify it?
If all you need is to calculate a tip a single function would be enough.
Otherwise (if it is a part of larger program or will be extended) I would make an order class, which would hold infomation about all ordered items, tax and tip and would be able to generate receipt.