I made a read random Math file to hold all my math in methods in so that I can all them to main.
Then I made a read random String file to hold all my String methods in so that I can call them to main.
Then I made a read random main file to call all the methods from the other two files and print the receipt.
I did some math to calculate the subtotal, tax, discounts, and total. I also did some math to calculate the budget remaining or how much the user is short.
I add commits to all my files to explain what each method does and what each part of the code is doing.
Enter your name please:
glenn
Enter how much you are spending
50
Enter coupon code if you have one
vip0
Welcome to the winning store : glenn
Your visit ID is: 82656
Your code for your reciept is: GN82656
||||||||||||||||||||||
Item 1: $24.46
Item 2: $12.24
Item 3: $18.47
''''''''''''''''''''''''
Subtotal: $55.17 Tax: $3.32 Total: $58.49 You are over budget by: $2.64