Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ here is the question and my code, if someone could fix it and make sure its

ID: 643147 • Letter: C

Question

C++ here is the question and my code, if someone could fix it and make sure its right

C++ here is the question and my code, if someone could fix it and make sure its right customer struct the customer id (an mt ? we?ll make it a random number later) the number of tickets (an mt, keeping track of the number of tickets the customer purchased) lotterynums ? a pointer to a 2dimensional array, with the number of tickets purchased being the first dimension and 3 being the second (for the 3 random lottery numbers). store struct store id (an mt ? randomly generated number) Numcust ? an mt ? the number of customers who bought lottery tickets customerlist ? a pointer to a list of customer objects, will be numcust long Numsold ? an mt the total number of lottery tickets sold Numwinners[3] ? an array of 3 ints ,initialized to O, will keep count of how many 1number winners, how many 2number winners, and how many 3number winners Owner struct stores ? a pointer to a list of store objects ? the list of stores the owner owns Numstores ? an mt ? the number of stores the owner owns Totalsold ? the total number of lottery tickets sold at all stores Totalwinners ? an array of 3 ints, with the first being the number of tickets with 1 number correct, the second being the number of tickets with 2 numbers correct, and the third place being the number of tickets with 3 numbers correct.

Explanation / Answer

#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { return 0; } //Lottery Winners #include #include using namespace std; const int LUCKY_NUMS =10; // Function prototype that searches winning ticket number int ticketSearch(const int [], int, int); int main () { //user continues playing lotto char again; const char QUIT = 'N'; //determines if player's ticket is a winner int winningNum; //5 digit ticket number entered by player int playerNum; //holds winning ticket number int ticket; //Array holding the winning tickets for each week int lottoTix[LUCKY_NUMS] = {13579, 26791, 26792, 33445, 55555, 62483, 77777, 79422, 85647, 93121}; //Player decides if they want to continue playing for (int week = 0; week < 10; week++) { //Winning lotto ticket for each week (10 weeks total) ticket = lottoTix[week]; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote