simulation and design top-level design top-down design is easier to illustrate than it is to define let' give it try on our racquetball simulation and see where it takes us as alwaysa good start is to study the program specification in very broad brush strokesthis program follows the basic inputprocessoutput pattern we need to get the simulation inputs from the usersimulate bunch of gamesand print out report here is basic algorithmprint an introduction get the inputsprobaprobbn simulate games of racquetball using proba and probb print report on the wins for playera and playerb now that we've got an algorithmwe're ready to write program know what you're thinkingthis design is too high-levelyou don' have any idea yet how it' all going to work that' ok whatever we don' know how to dowe'll just ignore for now imagine that all of the components you need to implement the algorithm have already been written for you your job is to finish this top-level algorithm using those components first we have to print an introduction think know how to do this it just requires few print statementsbut don' really want to bother with it right now it seems an unimportant part of the algorithm 'll procrastinate and pretend that someone else will do it for me here' the beginning of the programdef main()printintro(do you see how this worksi' just assuming there is printintro function that takes care of printing the instructions that step was easylet' move on nexti need to get some inputs from the user also know how to do that-- just need few input statements againthat doesn' seem very interestingand feel like putting off the details let' assume that component already exists to solve that problem we'll call the function getinputs the point of this function is to get values for variables probaprobband the function must return these values for the main program to use here is our program so fardef main()printintro(probaprobbn getinputs(we're making progresslet' move on to the next line here we've hit the crux of the problem we need to simulate games of racquetball using the values of proba and probb this timei really don' have very good idea how that will even be accomplished let' procrastinate again and push the details off into function (maybe we can get someone else to write that part for us later but what should we put into mainlet' call our function simngames we need to figure out what the call of this function looks like suppose you were asking friend to actually carry out simulation of games what information would you have to give himyour friend would need to know how many games he was