Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Write a C++ program that simulates the throw of a dice. The program allows th

ID: 3545671 • Letter: 1

Question

1.    Write a C++ program that simulates the throw of a dice.  The program allows the user to enter the number of throws he/she would like to do. The program then, will calculate the statistics of the number of faces appears in these throws.  The program should satisfies the following:


a.    List the subtasks that are required when breaking down the problem

b.    List all functions that you may use in the program

c.    Define the functions required for your program and show both precondition  as well as post conditions of these functions before implementing them in your code

d.    You need to implement all of your program activities in separate functions. Then test your function from within the main function.  You should not do any calculation or task in the main function ( apart from calling the functions ).

e.    Make sure that the program will not allow the user to enter inappropriate values of the number of throws.

f.     In case inappropriate number entered, the program should prompt the user to re-enter the number of throws again until is entered correctly.

Explanation / Answer

how can this be solved

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote