#include #include using namespace std; struct Car { string make; string model; double milesPerGallon; double tankSize; }; void calculateRange(Car *p); int main() { Car myCar{"Toyota", "Corolla", 30.0, 12.0}; calculateRange(&myCar); return EXIT_SUCCESS; } void calculateRange(Car *p) { double range = p->milesPerGallon * p->tankSize; cout << "The " << p->make << " " << p->model << " can travel approximately " << range << " miles on a full tank.\n"; }