subject

Hi i need in my c++ homework. "write a program that reads five cards from the user, then analyzes the cards and prints out the category of hand that they represent. poker hands are categorized according to the following labels: straight flush, four of a kind, full house, straight, flush, three of a kind, two pairs, pair, high card. to simplify the program we will ignore card suits, and face cards. the values that the user inputs will be integer values from 2 to 9. when your program runs it should start by collecting five integer values from the user and placing the integers into an array that has 5 elements. it might look like this: enter five numeric cards, no face cards. use 2 - 9.card 1: 8 card 2: 7card 3: 8card 4: 2card 5: 3you must write a function for each hand type. each function must accept a const int array that contains five integers, each representing one of the 5 cards in the hand. the functions should have the following signatures. bool containspair(const int hand[])bool containstwopair(const int hand[])bool containsthreeofakind(const int hand[])bool containsstraight(const int hand[])bool containsfullhouse(const int hand[])bool containsfourofakind(const int hand[])sample would look like this: enter five numeric cards, no face cards. use 2 - 9.card 1: 8 card 2: 7card 3: 8card 4: 2card 5: 7two pair! enter five numeric cards, no face cards. use 2 - 9.card 1: 8 card 2: 7card 3: 4card 4: 6card 5: 5straight! enter five numeric cards, no face cards. use 2 - 9.card 1: 9 card 2: 2card 3: 3card 4: 4card 5: 5high card!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:50
You are working as a security analyst in a company xyz that owns the whole subnet range of 23.0.0.0/8 and 192.168.0.0/8. while monitoring the data, you find a high number of outbound connections. you see that ip's owned by xyz (internal) and private ip's are communicating to a single public ip. therefore, the internal ip's are sending data to the public ip. after further analysis, you find out that this public ip is a blacklisted ip, and the internal communicating devices are compromised. what kind of attack does the above scenario depict?
Answers: 3
question
Computers and Technology, 22.06.2019 21:10
Dameas communication challenge is due to which factor
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
You know the right answer?
Hi i need in my c++ homework. "write a program that reads five cards from the user, then analyzes t...
Questions
question
Health, 05.11.2020 22:10
question
Mathematics, 05.11.2020 22:10
question
History, 05.11.2020 22:10
question
History, 05.11.2020 22:10