Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Python Programming

Python Programming

Requirements
For the following problem:
– Each module must be written in Python and submitted as an executable .py file (NOT the Jupyter notebook file)
– Each module must have header comments at the top of the program that include:
o The Course
o The assignment number
o The submission or creation date
o The authors name
– Comments should be used to help explain your code if it may need explanation
Question 1
Write a module that simulates the rolling of 1 or more dice, then compare the theoretical with the actual results.
– The user must be asked how many dice will be used in the simulation. The number of dice should be between 1 and 16 inclusive. Your code should validate the user entry.
– The user must be asked for the number of rolls of the dice to simulate. Your code should validate the user entry to be a positive integer with a minimum value of 1.
– Your program must count the number of times each total of the dice faces appears. For example, if you have 3 dice, you will count the number of times 3, 4, 5, ¦. 18 appears.
– Your program must display a list of values representing the percentage of the total that each total appears, the theoretical likelihood, and the percentage error between the two values.
The name of the file must be of the form: FirstName_LastName_A02_Q1.py, where FirstName and LastName are your first name and last name respectively.
(continued on next page¦)
Question 2
Write a module that counts the number of times each word appears in paragraph.
– The user must be able to enter a number of sentences. You can assume that each sentence ends in a period. (No other punctuation needs to be considered.) You may use any mechanism you wish to enter the sentences. However, you must explicitly tell the user what they need to do when entering.
– When the user finishes entering the sentences, the program displays each unique word found in the paragraph, along with a count of how many times that word appears. The list must be displayed in alphabetical order.
– Unique words are not case sensitive. For example, ˜House and ˜house are considered the same.
The name of the file must be of the form: FirstName_LastName_A02_Q2.py, where FirstName and LastName are your first name and last name respectively.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Topnotch Essay only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided byTopnotch Essay are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Topnotch Essay is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Topnotch Essay, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.