100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
MovieMembershipCode $7.99
Add to cart

Class notes

MovieMembershipCode

 5 views  0 purchase
  • Course
  • Institution

you will be designing classes according to the provided UML diagram and instructions. You are creating a program that will create movie membership accounts that will allow members to purchase movie tickets, earn points, and access VIP privileges

Preview 2 out of 12  pages

  • July 31, 2022
  • 12
  • 2021/2022
  • Class notes
  • ..
  • All classes
avatar-seller
import java.util.Scanner;
public abstract class MovieMembership
{

String memberName;
String nextMovie;
String theatreType;
int showHour;
int showMinute;
String snack;
int points;

public MovieMembership(String memberName)
{
this.memberName = memberName;
this.nextMovie = "unknown";
this.theatreType = "standard";
this.showHour = 0;
this.showMinute = 0;
this.snack = "unknown";
this.points = 0;
}

public MovieMembership(String memberName, String nextMovie, String th
eatreType, int showHour, int showMinute, String snack)
{
this.memberName = memberName;
this.nextMovie = nextMovie;
this.theatreType = theatreType;
this.showHour = showHour;
this.showMinute = showMinute;
this.snack = snack;
this.points = 0;
}



public String getMemberName()
{
return memberName;
}



public String getNextMovie()
{
return nextMovie;

, }

public int getPoints()
{
return this.points;
}



public String getSnacks()
{
return snack;
}



public String getTheatreType()
{
return theatreType;
}



public void setNextMovie(String nextMovie)
{
this.nextMovie = nextMovie;
}



public void setSnack(String snack)
{
this.snack = snack;
}

public void setTheatreType(String theatreType)
{
this.theatreType = theatreType;
}



public void setShowTime(int showHour, int showMinute)
{
this.showHour = showHour;
this.showMinute = showMinute;
}



public String displayShowTime()

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller sadiaafreen. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

56326 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.99
  • (0)
Add to cart
Added