Display only 2 decimal places


Test your program using the following data. At this point don't worry about getting your prices to display only 2 decimal places. We will learn how to do that later.

Destination Miles MPG Gallon Cost # Gallons Trip Cost
Chicago 319 28 $3.89 11.3929 $44.3182
Boston 698 20 $3.75 34.90 $130.8750
Miami 1,387 32 $3.98 43.3438 $172.5081

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Display only 2 decimal places
Reference No:- TGS099418

Expected delivery within 24 Hours