Assume that we are interested in determining the functional differences among sites. We have two types of sites that have comparatively short occupations. Further, assume that summer season sites have four ceramic vessel forms: storage jars, cooking pots, serving bowls, and eating bowls. In a week of use, each pot of a given type has the following likelihood of being broken: .0038, .0115, .0115, .0173. (This means that in a year the probabilities are .2,.6, .6, .9) When they break, pots of the different types break into the following numbers of pieces: 200, 100, 80, 40. An in-use assemblage for the summer sites consists of the following numbers of each form 3, 3, 6, 10. In the winter sites, the in-use assemblage consists of 12, 4, 4, 10 pots, respectively. We can assume that each broken pot is immediately replaced by another of the same form, so that the in-use assemblage size stays the same.
On a weekly basis, simulate the cumulative sherd assemblage composition and output the count and percentage of the sherd assemblage composition by vessel form. For this problem set, the program only needs to output data to the screen in a way that allows one to reasonably track the changes. Email your program file and turn in a printed listing of your program.
Yu can use the construction KWK.rStr(<double expresion>,wid,dec) or iStr(<int expression>,wid) in your program for formatted output.
Next week you will be modifying this program to write the output to a file and to use arrays. If you have trouble, look at PS4 Hints.