// find high score and output

Posted: November 8th, 2022

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

I attached a file with the code that I have to write, and the template for this code:)
#include
#include
#include
using namespace std;
// Add all occurences of goal value
int CheckSingles(vector& diceValues, int goal) {
/* Complete the function and update the return statement */
return -1;
}
// Check for three of a kind (score = 30)
int CheckThreeOfKind(vector& diceValues) {
/* Complete the function and update the return statement */
return -1;
}
// Check for four of a kind (score = 40)
int CheckFourOfKind(vector& diceValues) {
/* Complete the function and update the return statement */
return -1;
}
// Check for five of a kind (score = 50)
int CheckFiveOfKind(vector& diceValues) {
/* Complete the function and update the return statement */
return -1;
}
// Check for full house (score = 35)
int CheckFullHouse(vector& diceValues) {
/* Complete the function and update the return statement */
return -1;
}
// Check for straight (score = 45)
int CheckStraight(vector& diceValues) {
/* Complete the function and update the return statement */
return -1;
}
// Find high score
int FindHighScore(vector& diceValues) {
/* Complete the function and update the return statement */
return -1;
}
int main() {
vector diceValues(5);
int highScore = 0;
// Fill array with five values from input
for(int i = 0; i > diceValues.at(i);
}
// Place values in ascending order
sort(diceValues.begin(), diceValues.end());
// Find high score and output
highScore = FindHighScore(diceValues);
cout << "High score: " << highScore << endl;
return 0;
}

For This or a Similar Paper Click To Order Now

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00