Answered step by step
Verified Expert Solution
Question
1 Approved Answer
. University of Harda W ork Raffle Objective: Review Jana by working uit h iff ya, daises, and Deseriptisn The University of Hard w ork
. University of Harda W ork Raffle Objective: Review Jana by working uit h iff ya, daises, and Deseriptisn The University of Hard w ork is sponsoring a raffle to raise money for the unisersty. of the raffle tickets has a unique sis diga number. The raffle comittee needs a computer application to analyze the results of the ratfle, determining the winning tickets The winning tickets are determined as follows Each The sx digit mumber on the ticket exactly mmat ches the winning number First Prize Example. f the rurter on the ticket is 123456, it i5 a winner if the mng number is 123456. + Second Prize Ther of the &digit number on the ticken actly tches the wiming Esample: . r the number on the ticket is 654321, it is a winner if the wining number is t23456. * Third Prze Ay3 sequtial digta of ta 6 digt numbar on th tcket xly mates 3 sequential digit 2 in the EampleIf the number on the ticket is 123456, it is a winer if the iming number has 123 in postions 1-3, 234 in positions 2-4, 345 in positions 3 posituh of the wiring ticket 5, or 456 in positiona 4-6 1nstructions driver 4menda55) 5as programmer-defined dass mst be used The main program (driwer) should ask the user to eter the wining 6 digit nunber Do this only once Iput from the keyboard the ticket holder's name and his/her sx digit ticket number. Amalyze the ticket t2ae if it is a nimer using the rules for "ining above. If the ticket i wnter, display a meaaage indicat ing the prize won and the holder'sa.Cont inua to proceas tcketsumil thare are n whenal ticket, hrve been processed. daylay the tota! nurrber of first prize wnnersecond prTre a, and third priza . The class ust be named Ticket. The ma n program [driver) must be amed Raffie. driver {main dassj well a53 programmer-defned dass must be LEed submt program through the agnment tool in Moodle2 1ndudes comment stating your name " Ech student mnher own indapandent pr r a
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started