I need help with JAVA

It’s 1 or 2 pages explaining how the programs work you will find the Qion in the page 2 in the attachment

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Prog
Name: Mohammed Al
te given: 2/24/2016
ATM machine) Use the one
late an ATM mac
ch Problem Page 2 of 2
Programming assignment 4
initial balanc
INF 2151 A, B
red incorrec
Given Mar 28 ; due Apr 6
nying three Java
n menu is
Problem 11.1, p. 445 for 100 points
iewing the
Carin
Problem 11.2, p. 445 for 125 points
11.3, p. 445 for 125 points
Research Problem Page 3 of 7
import java.util.Scanner;
//public class TestCups
public class TestCups
{
public static void main(String[] args)
{
String color, size;
//
Scanner input = new Scanner(System.in);
System.out.println(“What is the cup’s color? “);
color = input.nextLine();
System.out.println(“What is the cup’s size? “);
size = input.nextLine();
//
PaperCup pcup1 = new PaperCup(color, size);
PaperCup pcup2 = new PaperCup();
System.out.println(“Ok, next\n”);
pcup1.printPaperCup();
System.out.println(“another object\n”);
pcup2.printPaperCup0;
System.out.println(“Afterwards\n”);
}//end main
}//end c;lass
Pr
Name: MO
Page 14 of 15
Research Problem Page 4 oz
public class PaperCup extends Cup
Add Name
{
//attributes
private String color;
private String size;
private String material;
private String volume;
//constructors
public PaperCup
{
super();
this.material = “paper”;
}//end constructor
public PaperCup(String sColor, String sSize)
Gridpane
t Name
{
super(sColor, sSize);
this.material = “paper”;
}//end constructor
:
ast Name
//methods
public void setColor(String sColor)
color = sColor;
}
public String getColor()
{
return color;
}//
public void setSize(String sSize)
{
size = sSize;
public String getSize()
{
return size;
}
public String getMaterial
{
return material;
Pr
Name: MO
Page 14 of 15
Research Problem Page 4 oz
public class PaperCup extends Cup
Add Name
{
//attributes
private String color;
private String size;
private String material;
private String volume;
//constructors
public PaperCup
{
super();
this.material = “paper”;
}//end constructor
public PaperCup(String sColor, String sSize)
Gridpane
t Name
{
super(sColor, sSize);
this.material = “paper”;
}//end constructor
:
ast Name
//methods
public void setColor(String sColor)
color = sColor;
}
public String getColor()
{
return color;
}//
public void setSize(String sSize)
{
size = sSize;
public String getSize()
{
return size;
}
public String getMaterial
{
return material;
Pr
Name: MO
Page 14 of 15
Research Problem Page 4 oz
public class PaperCup extends Cup
Add Name
{
//attributes
private String color;
private String size;
private String material;
private String volume;
//constructors
public PaperCup
{
super();
this.material = “paper”;
}//end constructor
public PaperCup(String sColor, String sSize)
Gridpane
t Name
{
super(sColor, sSize);
this.material = “paper”;
}//end constructor
:
ast Name
//methods
public void setColor(String sColor)
color = sColor;
}
public String getColor()
{
return color;
}//
public void setSize(String sSize)
{
size = sSize;
public String getSize()
{
return size;
}
public String getMaterial
{
return material;
Pr
Name: MO
Page 14 of 15
Research Problem Page 4 oz
public class PaperCup extends Cup
Add Name
{
//attributes
private String color;
private String size;
private String material;
private String volume;
//constructors
public PaperCup
{
super();
this.material = “paper”;
}//end constructor
public PaperCup(String sColor, String sSize)
Gridpane
t Name
{
super(sColor, sSize);
this.material = “paper”;
}//end constructor
:
ast Name
//methods
public void setColor(String sColor)
color = sColor;
}
public String getColor()
{
return color;
}//
public void setSize(String sSize)
{
size = sSize;
public String getSize()
{
return size;
}
public String getMaterial
{
return material;

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER