how do i Write a java program that does the following:
A gasoline station charges 3.00 per gallon for regular, 4.50 per gallon for premium , 5.20 for diesel and 1.00 per Amp-Hr to charge an electric car(25 Amp-Hr to charge completely). In addition the station charges 12.00 for full service and 10.00 for quick and go service. There is no charge for self service. There is a 7.75% sales tax on the total gasoline purchase , 8% on the total diesel purchase, and 3% on the total for the electric car.
Your program should ask the customer whether he/she wants full service, quick and go, or self service. The type of fuel or charging should be asked for next. Then the amount of fuel or charge desired.
Your program should then calculate the bill specifying the type of service, type of fuel, amount of fuel/charge, the sales tax paid, and the final total.
A message of appreciation should be printed at the end.