Question: HELP PLEASE This to be coded in Python Help me with this program please ............. So THE REQUIREMENTS are bellow. And, the professor wants me

HELP PLEASE

This to be coded in Python

Help me with this program please ............. So THE REQUIREMENTS are bellow. And, the professor wants me to the program in the following way:

each of the functional actions (the numbered requirements) below must be put in a function and called from within the main() function

For example look at this sample code:

def creat_tuples():

weeks_tuple = ('Week One', 'Week Two')

days_tuple = (''Thursday', 'Friday', 'Saturday')

return weeks_tuple, days_tuple

#main() function

def main():

weeks, days = create_tuples()

print(weeks, days)

#determine if the program is run as the main or the module

if __name__ == '__main__':

main()

else:

pass

So, here are the requirements, but PLEASE, ensure it looks like that sample code above because I did it in a different way but unfortunately, I got ZERO for it because she wants us to put each of that numbered requiremtns in a function and be called from the main() function.

Ask if you have any questions.

Requirements:

1. Print This program practices working with lists, strings, tuples, and dictionaries. 2. Create two tuples - one for two weeks named Week One and Week Two and one for three days of the week (Thursday, Friday, Saturday). 3. Use a loop to record the first name and last name of sales people in one string (e.g. Bill Simms) and the name of the dealership where they work in another string (e.g. Hero Honda). 4. In each iteration of the loop, create a dictionary entry for the salesperson data entered where the name is the key and the dealership is the value. 5. After populating dictionary, create two nested loops to process sales data. 6. The outer loop uses the weeks tuple and the inner loop uses the days tuple. 7. In the inner loop, ask the user to enter the number of cars sold by salesperson (display the salespersons name to the user). Store the users response in a list of sales data. For each salesperson, there should be six entries in the list. 8. Use a loop to have the user populate a list of 20 customer compliments. Why 20? It is just a number for testing. Include sales rep names in each of the compliments. 9. Use nested loops to process the customer compliments. The outer loop cycles through the sales reps and the inner loop cycles through the compliments. Use a sequence operation to search for each sales reps name in each of the compliments. For instance, the outer loop is set to the first sales rep. The inner loop searches for the sales reps name (the key in the dictionary) in compliment one, then compliment two, etc. Record the number of compliments associated with each sales rep. More on the compliments section: - User enters a compliment - The compliments include the sales rep names - After collecting all compliments - Will need nested loops (outside loop for each sales rep; inner loop for each compliment) - Search for the name of each sales rep in each compliment - Count the number of times you find a compliment for each sales rep.

At the end of the program, produce output like that below for each of the sales reps processed. 10. All data is based on user entry (except tuples). Sample output: Bill Simms of Hero Honda Cars Sold Week One Thursday: 3 Friday: 4 Saturday: 7 Week Two Thursday: 5 Friday: 8 Saturday: 9 Total Cars Sold (per rep): _____ Average Cars Sold (per rep): _____ Number of Compliments (per rep):

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!