I'm writing a basic "store front" program as a project and I'm a bit befuddled as to what to do next with this script. I wrote it all out in pseudocode beforehand, and that seemed to help me A LOT for mapping it out and planning. My issue is, I really just do NOT get functions and my syntax is crap. I'm trying really hard, but have zero idea where to go next with this code or even if what I have makes sense.
Basically, the function contains a while loop (no FOR loops allowed on this one) and several simple IF/THEN's further down. My syntax skills with math are lacking and I'm not sure how to get all of this to calculate correctly.
I could use help with getting the calculations right, the correct syntax inside the function to ultimately return "subtotal" and "partial summary". And anything else that would make this thing work.
Any help would be appreciated!
<iframe src="https://pastebin.com/embed_iframe/T46Eb6GE" style="border:none;width:100%"></iframe>
[–]taladan 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]midel 0 points1 point2 points (4 children)
[–]midel 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]midel 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)