Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

=+1 Where are the best places in the world to live (and work)?

Answered: 1 week ago

Question

Complexity of linear search is O ( n ) . Your answer: True False

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago