## Write a program to ask the user to enter the amount spent on food and Gas for each day of the week

daily food cost report format in excel
food cost format
what is a good food cost percentage
average operating costs for a restaurant
what is food cost
how much does a restaurant spend on food per month

My assignment is to write a program to ask the user to enter the amount spent on food and Gas for each day of the week. Count and display the number of days the user spent more than 20 dollars per day on food and more than 10 dollars/per day on gas. The problem I have is that I don't know how to make the output say, "You spent more than 20 dollars per day on food in _ days of the week." And "You spent more than 10 dollars per day on gas in _ days of the week." Because the I have to input the answer between the quotes and either it says syntax error, or puts it on a new line. My code is:

```over20food=0;
over10gas=0;
food=input("Please enter the amount spent on food on Monday:");
if (food>20):
over20food = over20food + 1;
gas=input("Please enter the amount spent on gas on Monday:");
if (gas>10):
over10gas = over10gas + 1;
food=input("Please enter the amount spent on food on Tuesday:");
if (food>20):
over20food = over20food + 1;
gas=input("Please enter the amount spent on gas on Tuesday:");
if (gas>10):
over10gas = over10gas + 1;
food=input("Please enter the amount spent on food on Wednesday:");
if (food>20):
over20food = over20food + 1;
gas=input("Please enter the amount spent on gas on Wednesday:");
if (gas>10):
over10gas = over10gas + 1;
food=input("Please enter the amount spent on food on Thursday:");
if (food>20):
over20food = over20food + 1;
gas=input("Please enter the amount spent on gas on Thursday:");
if (gas>10):
over10gas = over10gas + 1;
food=input("Please enter the amount spent on food on Friday:");
if (food>20):
over20food = over20food + 1;
gas=input("Please enter the amount spent on gas on Friday:");
if (gas>10):
over10gas = over10gas + 1;
food=input("Please enter the amount spent on food on Saturday:");
if (food>20):
over20food = over20food + 1;
gas=input("Please enter the amount spent on gas on Saturday:");
if (gas>10):
over10gas = over10gas + 1;
food=input("Please enter the amount spent on food on Sunday:");
if (food>20):
over20food = over20food + 1;
gas=input("Please enter the amount spent on gas on Sunday:");
if (gas>10):
over10gas = over10gas + 1;
print("You spent more than 20 dollars per day on food in" +str(over20food) "days of the week");
print("You spent more than 10 dollars per day on gas in" +str (over10gas));
```

It looks like you are missing a '+' in your first print statement.

Should be

```print("You spent more than 20 dollars per day on food in" +str(over20food) + "days of the week")
```

Solved: Write A Program To Ask The User To Enter The Amoun , Question: Write A Program To Ask The User To Enter The Amount Spent On Food And Gas For Each Day Of The Week. Count And Display The Number Of Days  DESCRIPTION: Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month, and keep a running total. When the loop finishes, the program should display the amount that the user is over or under budget.

Your attempt was almost correct. You were just missing a `+` in the first line. My answer below assumes that your rest of the code is working fine and variables `over20food` and `over10gas` are correct.

Also, as John Gordon pointed out, you should put `int()` around ALL of your `input()` commands as `int(input())`

```print("You spent more than 20 dollars per day on food in" + str(over20food) + "days of the week");
print("You spent more than 10 dollars per day on gas in" + str(over10gas) + "days of the week");
```

Write a program to ask the user to enter the amount spent on food , It looks like you are missing a '+' in your first print statement. Should be print("You spent more than 20 dollars per day on food in"  Write a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total. #Get the total amount of meal purchase.

`input()` returns strings. If you want to read input as numeric values, you'll need to call `int()` on the result, like so:

```gas = int(input("Please enter the amount spent on gas on Sunday:"))
```

Your `print()` was wrong because you didn't have a `+` after the variable name, between it and the remainder of the message.

Also, get rid of those semicolons. Python doesn't need them.

Lifetime Physical Fitness and Wellness: A Personalized Program, Table 3.10 Good Sources of Vitamin D Food Amount IU* Multivitamins (most brands) To obtain up to 2,000 IU per day from food sources alone, however, is difficult of unprotected sun exposure during peak hours of the day a few times a week. those with dark skin (they make less vitamin D), and individuals who spend  Write a program that asks the user to enter a favorite color, a favorite food, a favorite animal, and the first name of a friend or relative. The program should then print the following two lines, with the user's input replacing the items in italics: I had a dream that Name ate a Color Animal and said it tasted like Food!

Gas Age, "To make the coffee, heat the coffee pot by filling it with boiling water. to your very good menu for the day, and I know you will understand when I tell you pantry shelves in hundreds of homes with good money- saving foods for the winter, Many women who are not able to spend more than one day a week away from  Assignments » Flow Of Control » Set1 » Solution 3. Write a program to calculate the total expenses. Quantity and price per item are input by the user and discount of 10% is offered if the expense is more than 5000.

Ladies' Home Journal, C 1ng How We are Running Our Homes With Less Work and Less Money and make it a good place to live in has been proved by my housekeeping. Regularly each January we make out a budget by allowing nine dollars a week for food, time every day, I am never sick any more, and the money spent in getting and  Write a program that asks the user to enter the projected amount of total sales, and then displays the profit that will be made from that amount Previous Stock Transaction Program Next A cookie recipe calls for the following ingredients: 1.5 cups of sugar 1 cup of butter 2.75 cups of flour The recipe produces 48 cookies with this amount of the ingredients.

The American Food Journal, Each day , on entering the cafeteria , the pupils were given a tag such as the one At the end of the week , every - one having three tags was given a certificate of proper feeding and teaching of good food habits to others than those in foods and nutrition classes . The high school pupils spent their time in demonstrating . The program should present the user with a choice of four different products of your choosing in a simple menu. After the user selects a product by entering a character corresponding to a product, the program should prompt the user for the quantity and then calculate the Subtotal, Sales Tax Amount, and Total Sale Amount.

• Have you guys learned `lists` yet? You could simplify this
• Just put a space in the string as `"You spent more than 10 dollars per day on gas in "`