Question: This is in Python 3 IDLE for my Programming in GIS class. ------------------------------------------------------------------------------ 3. Youre on a long car trip and arrive at a gas
This is in Python 3 IDLE for my Programming in GIS class.
------------------------------------------------------------------------------
3. Youre on a long car trip and arrive at a gas station. Its 200 km to the next station. Write a program to figure out if you need to buy gas here, or if you can wait for the next station. The program should ask these questions:
How big is your gas tank, in liters?
How full is your tank (in percentfor example, half full = 50)?
How many km per liter does your car get?
4. Make a program where the user has to enter a secret password to use the program. Youll know the password, of course (because itll be in your code). But your friends will have to either ask you, guess the password, or learn enough Python to look at the code and figure it out! The program can be anything you want, including one you have already written, or just a simple one that displays a message like Youre in! when he enters the right password.
------------------------------------------------------------------------------------------------------------
Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
