Home / Expert Answers / Computer Science / please-help-python-nbsp-itp-150-module-5-assignment-list-of-counters-instructions-recall-the-pa608

(Solved): please help? #python  ITP-150-Module 5- Assignment - List of Counters - Instructions Recall the ...



please help? #python 

ITP-150-Module 5- Assignment - List of Counters - Instructions
Recall the third looping problem from our last assignment:
Sim
ITP-150-Module 5- Assignment - List of Counters - Instructions Recall the third looping problem from our last assignment: Simulate rolling a 6-sided die. This time, do not print the number that was rolled. Instead, keep a dount of how many times each side was rolled. This means that you may need to have 6 counter variables. After the looping, print how many times each side was rolled, along with a percentage. Print "Goodbye" at end of program. Create a new Python file and copy in the code from the previous problem. Change the new code such at: Instead of using 6 counter variables, create a list of 6 integers. Each element will represent the count for each side. Set each element in the list to 0. Each time you roll the die in the loop, add one to the appropriate element in the list. - When finished looping and you print the output as shown below, this time use a loop to loop through the list of counters, printing each counter and calculate the percentage to print the percentage. Reminder of Sample output: Num of times 1 was rolled 92 Percentage is 0.15333333333333332 Num of times 2 was rolled 94 Percentage is 0.15666666666666668 Num of times 3 was rolled 115 Percentage is 0.19166666666666668 Num of times 4 was rolled 99 Percentage is 0.165 Num of times 5 was rolled 101 Percentage is 0.16833333333333333 Num of times 6 was rolled 99 Percentage is 0.165


We have an Answer from Expert

View Expert Answer

Expert Answer


ANSWER """Problem #2: Simulate rolling 6-sideds die. print die number, ask user if they want to roll again, print goodbye at the end""" impor
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe