No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Problem Statement Number-Guessing Game Assignment Write a program for a number-guessing game. Each player will be given 10 attempts to key in a 4-digit number to guess the randomly generated number. All four digits of the computer-generated number MUST be different and the left-most digit cannot be zero. Create a … |
|
#include<iostream> #include<string> #include <cstdlib> //rand #include<ctime> #include <algorithm> //shuffling #include <vector> using namespace std; int main() { int option,i=0, num_part; vector<string> names; cout << "Welcome to Number-guessing Game !\n\n"; do { cout << "Menu" << endl; cout << "-----" << endl; cout << "1)To register number of participants and name … |