formatting information

Thanks for the previous help. I have a new assignment, I have to write a program that applies various charges for a gas meter reading. I am trying to figure out how to format my info so that I may write the code for it. Any help will be greatly appreciated:

read meter
currgas reading
- prevgas readubg
---------------------
totchar
- baschar
------------------- 1-70= bascharg = 5.00
71-169= intercharg = y*.05
170-399= masscharg = z*.025
400+ = excharg = f*.015
if totcharg >= 70 then add bascharg
totchar
- 70
--------------------
1st balchar

if 1st balchar >= 100 then ???? * .05 (need help here with how to assign
subtract this info)

1st balchar
- intchar
-----------------------
2nd balchar

if 2nd balchar >= 230 then ???? * .025 (need help here as well)

2nd balchar
- masschar
-------------
exchar
if exchar >400 then ???? * .015 (here as well)

I am asking for just help with the formatting I intend to write the code myself

Thanks
What the hell was that? If it was code it needs code tags, and if that was pseudocode it could use a little bit more organization. What is the intended output?
another comment:
don't use the word "char" for charge, instead use charg or something else.
The reader of your code will be confused.
its basically the computations for the code. I need to write a program that does everything listed above. The output will be a "bill".
Topic archived. No new replies allowed.