Code in place 2020 - Gas stations locator

by Genesis G


A simplified version of a city map for the users to find out how close they are from gas stations. Also, the program asks the user to enter a budget and the number of liters of gasoline they want to purchase. With this information, the program displays: the max amount of liters that anyone can purchase according to the provided budget and each station prices; if the users can get the desired number of liters, and if they get some money left from their budgets.