PRG/211 PRG211 PRG 211 WEEK 2 DISCUSSION 3
- University of Phoenix / PRG 211
- 15 Sep 2017
- Price: $5
- Other / Other
PRG 211 WEEK 2 DISCUSSION 3
Supporting Activity: Visual Logic Exercise
Supporting Activity: Visual Logic Exercise
Exercise 1-7 (Jake's Problem) from the Working with Visual Logic text.
1-7. Jake's Problem. Jake has a car with an 8-gallon fuel tank. Jake fills his tank with gas and
then drives 60 miles to a friend's house. When he gets to his friend's house, he has 6 gallons
left in his fuel tank. Write a program that uses three input elements to enter values for tank
size, miles traveled, and gallons left. The program should calculate and display how many
miles Jake can drive on a full tank of gas. (Note: Be sure to use input elements to accept the
values 8, 60, and 6 rather than hard-coding them into your solution.)