Week 4 Lab
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.
5 years ago 30
Purchase the answer to view it
- Week4lab.cpp
- Week4Lab......docx
Purchase the answer to view it
- BESTANSWERCourseproj4.cpp
- Assignment 2: (RA 1): Communication Analysis Paper
- essay aus schools
- Case Study 1: Reaching Success through Best Project Management Practices
- Paper
- week-5
- Need help ASAP!!!!!!!!
- Air Bags - Discussion
- Select cell range A5:A8 and G5:G8, using the control feature to select G5:G8, and then click the Insert tab select...
- Chapter 01 Questions for Discussion (QFD) Post one (1) original response to ALL of MY QUESTIONS below and at least one (1) reply to a classmate’s post in this discussion forum by the Syllabus deadline for this assignment. At least 2 posts (as defined abo
- Respond 3