+ 1

single pump station (C)

i really need your help. I don't know how to do this. I'm just newbie here and I'm still learning C. If you don't mind, can you help me create code in a single pump station? here's the procees: 1. filling up the fuel reservoir 2. dispense fuel for sales 3. display notify user on sales and rem. volume thanks for your help

19th Sep 2017, 11:52 PM
Clark Justine L. Gonzales
Clark Justine L. Gonzales - avatar
3 Respuestas
+ 1
Thanks for this
20th Sep 2017, 2:52 AM
Clark Justine L. Gonzales
Clark Justine L. Gonzales - avatar
0
take fuel resurver as x cc vol copy it in temp--temp=x in while loop it will take choice if one wants to buy or not if yes user gives (scanf) volumn in cc(suppose y) if x<y x=temp(filled) x=x-y price=y/per_cc_price then print rem is x sales is price loop will go if choice is yes.. if no loop program ends... use switch case for choice
20th Sep 2017, 2:50 AM
sayan chandra
sayan chandra - avatar
- 1
welcome brother
20th Sep 2017, 2:52 AM
sayan chandra
sayan chandra - avatar