Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,418 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,350 people online right now. Registration is fast and FREE... Join Now!




Dice rolling program

 
Reply to this topicStart new topic

Dice rolling program, dice roll

rookieprogrammer
15 Oct, 2008 - 09:27 AM
Post #1

New D.I.C Head
*

Joined: 15 Oct, 2008
Posts: 1

Create a new console application titled “Assignment 5”. This application will be used to simulate the rolling of 2 standard dice (range of 1 – 6). The program will start and immediately roll the 2 virtual dice. The console output will display the results of the roll as both a text numeric value (1for each dice) and a graphic representation of the number displayed on each of the dice. The graphic representation will be created by using cout with ASCII characters across multiple lines. The output should be the first dice followed by the second dice displayed underneath the first.
Once the dice have been displayed the program will ask the user if they want to quit or roll again. Use a ‘q’ to quit and an ‘r’ to roll again. If the user rolls again the program should clear the console display, re-generate 2 random numbers for the dice and display their values as described above. If the user chooses to quit the program should immediately terminate. This process should repeat until the user quits the program.
This application must use a switch statement when displaying the output and must use a loop to control the flow of the program.

---------------------------------------------------------------------------------------------------------------------------------------------------------------

This was our instrustions, but as I'm new to programming, i don't really know where to start lol. Any help would be appreciated.
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Dice Rolling Program
15 Oct, 2008 - 09:30 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,993



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
What kind of research have you done on this? Have you even tried to write anything to get it started?

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 01:02PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month