Skip to content
#

sdev2210

Here are 2 public repositories matching this topic...

SDEV 2210 Project. Create a project that calculates miles per gallon for a given trip, and accumulates the miles and gallons to calculate an overall MPG for the vehicle. Create a class named MPG that includes private instance variables for miles, gallons, and mpg, which are doubles. Add class variables for totalMiles, totalGallons, and totalMPG,…

  • Updated Jul 6, 2022
  • Java

Create a project that calculates miles per gallon for a given trip, and accumulates the miles and gallons to calculate an overall MPG for the vehicle. Create a class named MPG that includes private instance variables for miles, gallons, and mpg, which are doubles. Add class variables for totalMiles, totalGallons, and totalMPG, which are doubles,…

  • Updated Jul 6, 2022
  • Java

Improve this page

Add a description, image, and links to the sdev2210 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sdev2210 topic, visit your repo's landing page and select "manage topics."

Learn more