Question: 1. Draw a flowchart (using an appropriate program or hand drawn) for a program with the following requirements: a. The user is prompted to enter

 1. Draw a flowchart (using an appropriate program or hand drawn)for a program with the following requirements: a. The user is promptedto enter integers, one at a time, until they enter a dollar

1. Draw a flowchart (using an appropriate program or hand drawn) for a program with the following requirements: a. The user is prompted to enter integers, one at a time, until they enter a dollar sign (\$). You can assume that the user will only enter integers or the dollar sign correctly. You do not have to validate the user input. The number of integers the user enters can vary. b. Once the user finishes entering the data (in other words, when the dollar sign is entered), the following data must be presented: - the total number of integers the user entered - the number of times each integer appears in the list the user entered - the sum of the integers entered Write a program in Python that accomplishes the task described by your flowchart in question 1. The program should match the logic in the flowchart. Call the program, Calculator.py (10 marks) Write a program to simulate the 2 coins being flipped at the same time. Here are the requirements: a. The user is asked to enter the number of times the coins are flipped. The user provides an integer answer. (No input validation is necessary.) b. For the number of times the user asks the coins to be flipped: i. Simulate the possible outcomes of flipping 2 coins using the random number generator, twice in succession. ii. Use a dictionary to keep track of the number of times each possible combination appears. Please note there are only three possible combinations: 2H,2T,1H1T where H is heads and T is tails. c. Report the results by displaying the keys and values of the dictionary using a loop. (Do not simply print the dictionary in one line.) This report should appear as two columns of data, with the first column being the observed result and the second column showing the number of times those results appeared

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!