Mini Project Dice
Mini Project Dice
GROUP MEMBERS:-
1) 7147 Gnana Sagar
2) 7148 Sahil Bhagat
3) 7154 Shreya Pradhan
4) 7155 SK Juned Afridi
Problem Statement:-
Program that simulates rolling dice. When the program runs ,it will
randomly choose a number between 1 and 6(Or other integer you
prefer).Print that number. Request user to roll again. Set the min and max
number that dice can show.
For the average die, that means a minimum of 1 and a maximum of 6.
Features:-
The project will be able to roll up to six dice, with each die having six
faces. After every roll, the program will generate an ASCII diagram of
dice faces and display it on the output.
Random module is used to generate random numbers.
Randint() method of the return module is used to return a random
number between 1 and 6.
With this project, we learned fundamental skills, such as gathering
and validating the user’s input, importing code, writing functions,
using loops and conditionals, and displaying nicely formatted output
on-screen.
Block diagram:-
WHILE
Another_roll==y FALSE
TRUE
Print random
faces of dice
END WHILE
LOOP
PROGRAM:-
OUTPUT:-