I'm glad you thought it was fun. :p Thanks for the help!
Type: Posts; User: ashley21
I'm glad you thought it was fun. :p Thanks for the help!
I tried doing this for the calculations, but my numbers are still off by a few dollars.
cost1 = gasused%10 * 5.00;
cost2 = (gasused/10)%10 * 0.05;
cost3 = (gasused/10/10)%10 * 0.025;...
I'll attach what I've already got. Keep in mind I'm very new to this, hehehe. Thanks for the help so far. :)
I have to take a 4-digit number and calculate it like this:
First 70 cubic meters $5.00 minimum cost
Next 100 cubic meters 5.0 cents per cubic meter
Next 230 cubic meters 2.5 cents per...