The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Suppose we are writing a program that will print tickets for an event. We will represent a ticket object by a class named Ticket. Each Ticket object will store three private instance variables: (1) mPrice which is a double; (2) mRow which is a String; (3) mSeat which is an int. For example, here is an object diagram for a Ticket object named t:
The Ticket class shall have one public constructor with three inputs: (1) the price of the Ticket being constructed; (2) the row string; and (3) the seat number. The Ticket class shall provide public accessor and mutator methods for each of the instance variables. The Ticket class shall have one public class constant named CONV_FEE which is a double and is equivalent to 8.50.
Â
On a sheet of blank paper, neatly draw the UML class diagram for the Ticket class.
Â
It doesn't need to be on paper, I just need it to be legible.
Attachments:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly