Last active
December 17, 2015 19:19
-
-
Save JamesTheBard/5659942 to your computer and use it in GitHub Desktop.
The first issue that I see...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' This is what you have Arlen... | |
do while MoreSold = "yes" | |
' Notice that you have 'FoodType' | |
FoodType = Inputbox("What type of food sold? (hamburger, hotdog, corndog, or nacho)") | |
NumSold = Inputbox("How many were sold?") | |
' ...and you have 'foodtype' here... | |
Select Case foodtype | |
Case "hamburger" | |
NumSold = NumHamburgers | |
HamburgerCost = NumHamburgers * 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, I see your problem. For example, in each Case statement you're trying to assign the NumFood into NumSold. For example:
You should be assigning NumSold to the food-specific variable. Assignments work from right to left across the equal sign to NumSold -> NumPizza. It should be: