Write a test/driver program that: A- Creates two LottoTicket objects t1 and t2. First ticket with the owner name “Lola Bitar” and sequence “5-8-12- 15” For the second object t2, prompt the user to...


Write a test/driver program that:
A- Creates two LottoTicket objects t1 and t2. First ticket with the owner name “Lola Bitar” and sequence “5-8-12-
15” For the second object t2, prompt the user to user to enter the information and the use the second
constructor.
B- Change the price of the LottoTicket into 5.8.
C- Change the owner ot t2 to “Hilal Issa”.
D- Giving the winning numbers 5-8-12-15 check if any of those tickets is a winner and display only the first letter
of the winner name (the owner).
E- Display the purchase date of t1 and t2.



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here