You're code seems working though. look at this running on my machine using codeblocks.
You just need to add tiny lines of code to determine if the payment amount is sufficient to the tendered amount. If so, make a notification to the user something like "Ay, kulang ang bayad mow!" then return to entering cash payment. Else, proceed to computing the change amount.
Not sure if I am missing something here. You mean this is the entire system? If yes, I am very much surprised unless we understand "systems" differently. If no, then carry on.
Not sure if I am missing something here. You mean this is the entire system? If yes, I am very much surprised unless we understand "systems" differently. If no, then carry on.
It's a simulation of a simple fast food "order/pay system". I fell into same perception at first but when I saw the code, I came to understood that it's just a sit work of a sophomore computer student.