Question

In: Computer Science

For PYTHON You come into the fast food restaurant with a friend. Each of you orders...

For PYTHON

You come into the fast food restaurant with a friend. Each of you orders separately, but everything will appear on one receipt. Print the total per cost person and the total of the receipt. Calculate the sales tax and print the total cost assuming the following prices:

Fries are $3.50

Burger are $5.00

Drinks are $1.00

Sales tax rate is 7.25%

Solutions

Expert Solution

#python program for restaurant
n=int(input("Enter total items ordered"))
total=0
for i in range(n):
    x=float(input("Enter price of item"))
    total+=x

#calculating total and split
print("Your order total is %f"%total)
total=total/2
print("Each of you has to pay %f"%total)

#calculating sales tax and split
total=(total*2)+((total*2)*7.25/100)
print("Your order total with taxes if %f"%total)
total=total/2
print("Each of you has to pay %f with taxes"%total)

Sample Output:


Related Solutions

For python! You walk into a fast food restaurant and order fries, a burger, and a...
For python! You walk into a fast food restaurant and order fries, a burger, and a drink. Create a simple text based user interactive program keeps track of the menu items you order. Use a dictionary to keep track of your menu items and price and another dictionary to keep track of your order and quantity.  Fries are $3.50  Burger are $5.00  Drinks are $1.00  Sales tax rate is 7.25% menu = { "burger":5.00, "fries":3.50, "drink":1.00...
In a study of the accuracy of fast food​ drive-through orders, Restaurant A had 341accurate orders...
In a study of the accuracy of fast food​ drive-through orders, Restaurant A had 341accurate orders and 57 that were not accurate. Construct a 90​% confidence interval estimate of the percentage of orders that are not accurate. a. Construct a 90​% confidence interval. Express the percentages in decimal form. ------------- <p<------------- ​(Round to three decimal places as​ needed.) b. Compare the results from part​ (a) to this 90​% confidence interval for the percentage of orders that are not accurate at...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 36 orders...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 36 orders that were not accurate among 302 orders observed. Use a 0.10 significance level to test the claim that the rate of inaccurate orders is equal to​ 10%. 1. Does the accuracy rate appear to be​ acceptable? 2. Identify the null and alternative hypotheses for this test. 3. What is the test statistic for this hypothesis test? 4. What is the P-Value for this hypothesis...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 39 orders...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 39 orders that were not accurate among 327 orders observed. Use a 0.10 significance level to test the claim that the rate of inaccurate orders is equal to​ 10%. Does the accuracy rate appear to be​ acceptable? Identify the null and alternative hypotheses for this test. Choose the correct answer below. Identify the test statistic for this hypothesis test. The test statistic for this hypothesis test...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 33 orders...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 33 orders that were not accurate among 384 orders observed. Use a 0.10 significance level to test the claim that the rate of inaccurate orders is equal to​ 10%. Does the accuracy rate appear to be​ acceptable? Identify the test statistic and the P value.
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 39 orders...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 39 orders that were not accurate among 340 orders observed. Use a 0.05 significance level to test the claim that the rate of inaccurate orders is equal to​ 10%. Does the accuracy rate appear to be​ acceptable? Identify the null and alternative hypotheses for this test. Identify the test statistic for this hypothesis test. Identify the​ P-value for this hypothesis test. Identify the conclusion for this...
study of the accuracy of fast food drive through orders, Restaurant A had 339 accurate orders...
study of the accuracy of fast food drive through orders, Restaurant A had 339 accurate orders and 57 that were not accurate. construct a 90% confidence interval estimate of the percentage of orders not accurate. compare the results from part (a) to the 90% confidence interval for the percentage of orders that are not accurate at Restaurant B: 0.134<p<0.184. what do you conclude?
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 36 orders...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 36 orders that were not accurate among 313 orders observed. Use a 0.01 significance level to test the claim that the rate of inaccurate orders is equal to​ 10%. Does the accuracy rate appear to be​ acceptable? Identify the null and alternative hypotheses for this test. Identify the test statistic for this hypothesis test. Identify the conclusion for this hypothesis test. A. Fail to reject Upper...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 37 orders...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 37 orders that were not accurate among 305 orders observed. Use a 0.01 significance level to test the claim that the rate of inaccurate orders is equal to​ 10%. Does the accuracy rate appear to be​ acceptable? Identify the test statistic for this hypothesis test. The test statistic for this hypothesis test is? ​(Round to two decimal places as​ needed.) Identify the​ P-value for this hypothesis...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 32 orders...
In a study of the accuracy of fast food​ drive-through orders, one restaurant had 32 orders that were not accurate among 398 orders observed. Use a 0.10 significance level to test the claim that the rate of inaccurate orders is equal to​ 10%. Does the accuracy rate appear to be​ acceptable? Identify the null and alternative hypotheses for this test. Choose the correct answer below. A. H0​: p≠0.1 H1​: p=0.1 B. H0​: p=0.1 H1​: p≠0.1 C. H0​: p=0.1 H1​: p<0.1...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT