IFT 194 CH 7.5

foooq55

1.     Why would you use a While/WhileEnd over the other two?

2.     Why would you use a Repeat/Until over the other two?

3.     Develop a solution to flip a coin a given amount of times and then print the number of heads and the number of tails. The equation to toss the coin is

  coin = Integer(Random * 2) +1

 

# Write the pseudo code and then code it in Python. Write a function that has number of tosses as an input parameter. As usual, screen copy your code and results and embed within a word doc

 

    • 9 years ago
    • 10
    Answer(1)

    Purchase the answer to view it

    NOT RATED
    • ift_194_ch_7.5.docx