Scenario/Summary The purpose of this lab is to develop your programming skills and introduce functions.
Scenario/Summary
The purpose of this lab is to develop your programming skills and introduce functions.
Write a program that simulates flipping a coin and rolling a dice.
A user will input their choice of flipping a coin (C), rolling a dice (D), or exiting (E).
If the user chooses a coin toss, the program will ask how many times the coin should be tossed, then will simulate tossing the coin that many times and print the result to the user.
If the user chooses rolling a die, the program will ask how many sides the die has and how many times it should be rolled. The program will then simulate rolling a die (with the number of sides specified) that many times.
The program will continue until the user presses E.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.