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

Customer struct the customer id (an int - we\'ll make it a random number later)

ID: 642938 • Letter: C

Question

Customer struct the customer id (an int - we'll make it a random number later) the number of tickets (an int, keeping track of the number of tickets the customer purchased) lotterynums - a pointer to a 2-dimensional 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 int - randomly generated number) Numcust - an int- the number of customers who bought lottery tickets Customerlist - a pointer to a list of customer objects, will be numcust long Numsold - an int- the total number of lottery tickets sold Numwinners[3] - an array of 3 ints ,initialized to 0, will keep count of how many 1-number winners, how many 2-number winners, and how many 3-number winners Owner struct stores - a pointer to a list of store objects - the list of stores the owner owns Numstores - an int - 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

int cust_id [5];

int no_of_tickets[5];

int *lottery_nums = int[tot][3];

struct account
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