Question

A franchise restaurant is attempting to understand if customers think their service is good day-to-day by...

A franchise restaurant is attempting to understand if customers think their service is good day-to-day by summarizing a series of daily scores. The restaurant computes a daily score based on the number of positive comments and negative comments it receives that day. Each the score begins at 0. A positive comment adds 1 to the score, and a negative comment subtracts 1. So on a given day if there were 5 positive comments and 2 negative comments, the score for that day would be 3 (5 - 2).

Your task is to write a program that enables a restaurant manager to input these daily scores and report the total score for those days. For example, if the score on Monday is 3, Tuesday is 4, Wednesday is -2, and Thursday is 3, then the total score for those days would be 3 + 4 + (-2) + 3, which is 8. This would indicate the service is being positively reviewed over the past few days.

You program should prompt the user for how many days of scores they will be entering, and then prompt them for the score for each day. The score prompt should include the number of the day for which they entering a score (i.e., notice the ???1day1 phrase in the prompt of the example below).

Once all the scores have been entered, it should then output the number total score for those days. in python

Homework Answers

Answer #1

Code:

n=int(input("Enter no of days scores you want to enter:"))#reading no of days
total=0#declaring variables total
for i in range(n):
score=int(input("Enter Score on Day "+str(i+1)+":"))#reading score for each day
total+=score#adding to the total
print("Total Score:",total)#printing the total score

Output:

Indentation:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Scheduling in the restaurant Workforce management is central to efficient operations and good customer service. Proper...
Scheduling in the restaurant Workforce management is central to efficient operations and good customer service. Proper scheduling of employees can mean the difference between profitability and business failure. After faithfully serving the OM profession for 40 years, you decide to retire and open a restaurant. Among the hundreds of details with opening a restaurant, you need to hire and schedule employees. Based on the foot traffic of other restaurants in the area, you expect that you will need the following...
How much money do you think you would earn in a period of 30 days if...
How much money do you think you would earn in a period of 30 days if you were paid as follows: one cent for the first day, two cents for the second day, four cents for the third day, eight cents for the fourth day, and so on (i.e. your salary doubles each day)? Do you think you would make very little money, just a few dollars, at the end of the 30-day period? Let us write a program to...
1. Consider a survey in which customers’ perceptions of the service at a local store are...
1. Consider a survey in which customers’ perceptions of the service at a local store are gathered using a Likert Scale. Using this survey the customer gives a score of 1, 2, 3, 4 or 5 in response to a statement about the service. The scores represent 1 – Strongly Disagree 2 – Disagree 3 – Unsure 4 – Agree 5 – Strongly agree For example, one of the statements might be “The staff member appears knowledgeable regarding the store’s...
A restaurant needs full-time and part-time staffs for daily operation in the year of 2019. The...
A restaurant needs full-time and part-time staffs for daily operation in the year of 2019. The forecasted number of customers for Monday is 80. The forecasted number then increases by 10% each day from Tuesday to Saturday. For example, it is forecasted that there will be 80*110% customers on Tuesday and 80*(110%)2 customers on Wednesday, and so on. The forecasted number drops to 70 on Sunday. A full-time staff works for the restaurant throughout 2019. She/he works 7 days a...
Create a program to calculate and print basic stats on a set of a given input...
Create a program to calculate and print basic stats on a set of a given input values representing students' scores on an quiz. 1) Ask the user for the total number of quiz scores to be input (assume a positive integer will be given). 2) Create an array to hold all the quiz scores and then get all the scores from input to put into the array. For example, if the user input 10 in step (1) then you should...
Santana is a manager at a local Tex-Mex restaurant where she is responsible for the day...
Santana is a manager at a local Tex-Mex restaurant where she is responsible for the day to day operation of the restaurant. She has been tasked with several planning related duties in anticipation of the upcoming holiday season and the office parties that come with it. In previous years, decisions regarding ordering and staffing have been done using guess work and at times resulted in costly mistakes. This year, Santana has turned to you, Telfer School of Management Business Analytics...
CSE 231                                         &n
CSE 231                                                                                                                        Fall 2019 Project #2 ## Language Should be Python. Assignment Specifications The program will compute and display information for a company which rents vehicles to its customers. For a specified customer, the program will compute and display the amount of money charged for that customer’s vehicle rental. The program should start by asking the user if he wants to continue. The answer is ‘Y’ for yes or ‘N’ for no. You can check the value with Boolean expressions such...
      MK Restaurant: Branding of Thai-Style Hotpot The restaurant industry is one of the most...
      MK Restaurant: Branding of Thai-Style Hotpot The restaurant industry is one of the most competitive in Thailand. With a large number of players ranging from restaurants in five-star hotels, global fast-food chains to small stalls along the streets and everything in between, the Thais are spoiled for choice. In addition, as the world becomes globalized, consumers are familiar with international dishes and would not hesitate to try new offerings from the other side of the globe. As a...
The Company: Telemarketing Incorporated (TI) is a service company with their primary business base in the...
The Company: Telemarketing Incorporated (TI) is a service company with their primary business base in the Rocky Mountain region. TI is a service organization in the business of collecting and selling information for contracted clients. Production Information: TI made 5,221,782 calls in 2004 to households all over the Rocky Mountain region from their main telemarketing facility in Colorado Springs. There were a total of 330 working days in 2004, which TI conducted telemarketing calls. In 2004 TI completed, on average,...
The Company: Telemarketing Incorporated (TI) is a service company with their primary business base in the...
The Company: Telemarketing Incorporated (TI) is a service company with their primary business base in the Rocky Mountain region. TI is a service organization in the business of collecting and selling information for contracted clients. Production Information: TI made 5,221,782 calls in 2004 to households all over the Rocky Mountain region from their main telemarketing facility in Colorado Springs. There were a total of 330 working days in 2004, which TI conducted telemarketing calls. In 2004 TI completed, on average,...