Question: Need help creating this program using pointers in c++ Expert Q&A Done Need help creating this program using pointer in c++ Part l-Bonus 50 points)

Need help creating this program using pointers in c++  Need help creating this program using pointers in c++ Expert Q&A

Expert Q&A Done Need help creating this program using pointer in c++ Part l-Bonus 50 points) Design a prog am to calculate the cost of gas for a trip. The user will be prompted for the cost of agaon of gas, the number of miles of the trip, and the number of miles per gallon the car gets. The program should use pointers, the address operator, and the dereferencing operator for ALL input, caloulations and output Enter, compile, link, and execute Lab7GasTripfinstinitiallastNome.app The following is a sample output that might appear after running your program Input by the user is shown in bold This program eaieulates the east of ga for tri.p when th* user entrs tho coat gas, e nuber ot lies, and the urber of nssea per gailen the vehlele gets Enter the nuber of miles in your teip 89 Enter the mpg your car gecs 2 Enter the cost of gasolines 1.7 Your trip coat 568-0 Hint: the trip oostcost of gasoline (number of miles/mpe your car g

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!