Question: CSE 1 3 8 4 - C + + BasicsLab 2 Objectives: Practice getting input from the user Practice using loops and conditionsAssignment:In this lab
CSE C BasicsLab Objectives: Practice getting input from the user Practice using loops and conditionsAssignment:In this lab youll be building a tool to allow people to compare their vehicles. So basically,assume a family has multiple vehicles theyre able to use and theyre trying to decide whichvehicle would be best to use on a road trip.Your job is to create a program that takes in how many miles their trip is supposed to be and theaverage gas price of their journey. You should then ask how many vehicles theyd like tocompare. While looping, ask the names make and model of each vehicle and their gasmileage and tank capacity. After receiving the information, calculate how many tanks of gas itwould take for each vehicle and what the projected price would be for the journey. Display thisinformation to the user.Your price should be based on how much it is to fill up a full tank on each individual vehicle.You shouldnt just calculate how many gallons that car would need and then calculate that cost.You also cannot have PARTIAL tanks. If its tanks, you should display tanks and calculateit for tanks.Finally, at the end of the program, you should display the best name cost of the car based onthe calculations.Hint:To make into theres a couple ways to do so One such way involves the cmath libraryand using the ceil function.Milestones:You must receive a checkoff for each item to receive full credit on the lab. You may show themilestones incrementally, or receive a check off for multiple in one demo depending on your
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
