SlideShare a Scribd company logo
1 of 12
I received answers to 2 App requests and paid. The JAVA Apps
are not working. They are both due at noon tomorrow Eastern
time.I need serious and no-BS tutor that can have this working
tonight since I have to get them in. I paid 40 to get this far and
would pay another $50 to get the work completed and working.
I want to see the output from the netbeans IDE directly.
Ticket
import java.util.Date;
public class Ticket {
/** Ticket number */
private long number;
/** Category of Ticket */
private String category;
/**Ticket Holder*/
private String holder;
/** Purchase date */
private Date date;
/** Ticket Price */
private double price;
private boolean status;
/***
*
* @param num
* @param cat
* @param hold
* @param d
* @param p
* @param newstatus
*/
Ticket (String num, String cat,String hold, Date d, double p,
boolean newstatus){
number =Long.parseLong(num);
category =cat;
holder =hold;
date =d;
price=p;
status =newstatus;
}
/**
* @return the number
*/
public long getNumber() {
return number;
}
/**
* @return the category
*/
public String getCategory() {
return category;
}
/**
* @return the date
*/
public Date getDate() {
return date;
}
/**
* @param price
* the price to set
*/
public void setPrice(double price) {
this.price = price;
}
/**
* @return the price
*/
public double getPrice() {
return price;
}
/***
*
* @return
*/
public void changePurchaseStatus(boolean newStatus) {
status= newStatus;
}
/***
*
*/
public String toString() {
return "Ticket Number: "+number +"nCategory:
"+category +"nHolder: "+holder+"nDate:
"+date.toString()+"nPrice: "+price+"n";
}
/**
* @return the holder
*/
public String getHolder() {
return holder;
}
}
Merchandise
import java.util.Scanner;
public class Merchandise {
private long id;
private String category;
private String description;
private double price;
private boolean instock;
public Merchandise() {
this.id = 0;
this.category = null;
this.description = null;
this.price = 0;
this.instock=true;
}
public Merchandise(long nid, String nCate, String nDesc,
double nPri, boolean instck) {
this.id = nid;
this.category = nCate;
this.description = nDesc;
this.price = nPri;
this.instock=instck;
}
public void setPrice(Double newPrice) {
this.price = newPrice;
}
public void setStock(boolean newStatus) {
this.instock= newStatus;
}
public long getId() {
return id;
}
public String getCategory() {
Scanner in=new Scanner(System.in);
System.out.println("Enter category");
category = in.next();//inputing category
//checking if the item inserted matches the
category
String b = new String("T-Shirt");
boolean g = category.equals(b);
if(g==false)
{
String c = new
String("Sweatshirt");
boolean h = category.equals(c);
if(h==false)
{
String d = new
String("Stuffed Animal");
boolean i =
category.equals(d);
if(i==false)
{
System.out.println("Error: Ivalid category! ");
category="UNKNOWN";
}
}
}
in.close();
return category;
}
public String getDescription() {
return description;
}
public double getPrice() {
return price;
}
public String toString() {
return ("NUMBER: "+this.getId()+"
CATEGORY: "+ this.getCategory() +
" DESCRIPTION: "+ this.getDescription() +
" PRICE: " + this.getPrice());
}
}
AmusementPark
import java.awt.List;
import java.sql.Date;
import java.util.ArrayList;
//amusementPark class
public class AmusementPark {
//the three instance fields are as follows
private String name;//the name of the bookstore
private ArrayList tickets = new ArrayList();//storing Ticket
objects
private ArrayList merchandise = new ArrayList();//storing
Merchandise objects
public AmusementPark(String name){ this.name = name; }
public String getName(){return name;}//returns the name
of the bookstore.
public ArrayList getTicketDates(){
return tickets;}
//returns an ArrayList of all the dates for which tickets are
still available.
public Date getTicketDates(Date date){
return date;}
public Ticket number getTicket(long number){return
Ticket;}
public ArrayList getMerchandise(){return merchandise;}
public ArrayList getMerchandise(String category){return
merchandise;}
public Merchanidse getMerchandise(long id){return
Merchandise;}
}
AmusementParkTester
import java.util.Date;
import java.util.Scanner;
public class AmusementParkTester {
public static void main(String args[]) {
AmusementPark amusementPark = new
AmusementPark("Walden Amusement Park");
Ticket adult = new Ticket("123", "Adult", "Air USA", new
Date(2015, 3,
12), 12322.4, true);
Ticket child = new Ticket("10", "Children", "Air USA",
new Date(2015,
3, 14), 13322.4, true);
Ticket senior = new Ticket("20", "Senior", "Air USA",
new Date(2015, 3,
20), 10000.4, true);
Merchandise merchandis1 = new Merchandise("123123",
"sweatshirts",
"Nike", 234, true);
Merchandise merchandis2 = new
Merchandise("12312323", "t-shirts",
"Nike", 450, true);
// add it to Amuesement oark
amusementPark.addTicket(adult);
amusementPark.addTicket(child);
amusementPark.addTicket(senior);
// Add merchandise
amusementPark.addMerchandise(merchandis1);
amusementPark.addMerchandise(merchandis2);
Scanner scanner = new Scanner(System.in);
while (true) {
System.out.println("1. Show Ticket Details: ");
System.out.println("2. Merchandise Details: ");
System.out.println("3. Remove Merchandise : ");
System.out.println("4. Remove Tickets: ");
System.out.println("Enter the choice: ");
String chString = scanner.nextLine();
switch (Integer.parseInt(chString)) {
case 1:
System.out.print("nEnter the Ticket ID: ");
int id = Integer.parseInt(scanner.nextLine());
System.out.println(amusementPark.getTicket(id).toString());
break;
case 2:
System.out.print("nEnter the Category: ");
String cat = scanner.nextLine();
System.out
.println(amusementPark.getMerchandise(cat).toString());
break;
case 3:
System.out.print("nEnter the ID: ");
String ID = scanner.nextLine();
amusementPark.buyTicket(ID);
break;
case 4:
System.out.print("nEnter the ID: ");
ID = scanner.nextLine();
amusementPark.buyMerchandise(ID);
break;
}
System.out.println("Do you want to continue(Y/N)?: ");
String choice = scanner.nextLine();
if (choice.charAt(0) == 'N') {
System.exit(0);
}
}
}
}
Retail Transaction Classes
LineItem
import java.util.*;
public class LineItem {
protected String itemName;
protected int quantity;
protected double price;
public LineItem(String itemName, int quantity, double price)
{
this.itemName = itemName;
this.quantity = quantity;
this.price = price;
}
public String getName()
{
return itemName;
}
public int getQuantity()
{
return quantity;
}
public void setQuantity()
{
quantity = quantity;
}
public void setPrice()
{
price = price;
}
public double getPrice()
{
return price;
}
public double getTotalPrice()
{
return quantity*price;
}
public String toString ( ) //Returns a formatted String for output
purposes //toString () Method
{
return "t" + itemName + "t qty " + quantity + "t @ $" + price
+ "t $" + getTotalPrice();
}
}
Transaction - Not working
import java.util.ArrayList;
public class Transaction {
private final ArrayList lineItems;
private int customerID;
private String customerName;
private String LineItem;
public Transaction(int customerID,String customerName) {
this.customerID = customerID;
this.customerName = customerName;
this.lineItems = new ArrayList();
}
public int getcustomerID(){
return customerID;
}
public void setcustomerID(int customerID){
this.customerID = customerID;
}
public String getcustomerName(){
return customerName;
}
public void setcustomerName(String
customerName){
this.customerName = customerName;
}
public String addLineItemString (String
itemName, int quantity, double price){
lineItems.add(new
LineItem(itemName,quantity,price));
}
double totalPrice = 0;
for (int i =0;i
LineItem item = lineItems.get(i);
totalPrice = totalPrice + item.getTotalPrice();
}
//return "Colgate Toothpaste not found";
public String updateItem(){
return null;
}
public double getTotalPrice(){
return 0;
}
public String getLineItem(){
return LineItem;
}
}
Missing the main routine.

More Related Content

Similar to I received answers to 2 App requests and paid. The JAVA Apps are not.docx

Construct a java method.   This method chooses the number of sti.pdf
Construct a java method.    This method chooses the number of sti.pdfConstruct a java method.    This method chooses the number of sti.pdf
Construct a java method.   This method chooses the number of sti.pdfarihantmobilepoint15
 
Introduction You implemented a Deck class in Activity 2. This cla.pdf
Introduction You implemented a Deck class in Activity 2. This cla.pdfIntroduction You implemented a Deck class in Activity 2. This cla.pdf
Introduction You implemented a Deck class in Activity 2. This cla.pdffeelinggifts
 
BasicPizza.javapublic class BasicPizza { Declaring instance .pdf
BasicPizza.javapublic class BasicPizza { Declaring instance .pdfBasicPizza.javapublic class BasicPizza { Declaring instance .pdf
BasicPizza.javapublic class BasicPizza { Declaring instance .pdfankitmobileshop235
 
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdffasttracksunglass
 
- the modification will be done in Main class- first, asks the use.pdf
- the modification will be done in Main class- first, asks the use.pdf- the modification will be done in Main class- first, asks the use.pdf
- the modification will be done in Main class- first, asks the use.pdfhanumanparsadhsr
 
the code below is a recommendation system application to suggest a s.pdf
the code below is a recommendation system application to suggest a s.pdfthe code below is a recommendation system application to suggest a s.pdf
the code below is a recommendation system application to suggest a s.pdfrajatchugh13
 
Implement a queue using a linkedlist (java)SolutionLinkedQueue.pdf
Implement a queue using a linkedlist (java)SolutionLinkedQueue.pdfImplement a queue using a linkedlist (java)SolutionLinkedQueue.pdf
Implement a queue using a linkedlist (java)SolutionLinkedQueue.pdfkostikjaylonshaewe47
 
Write a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdfWrite a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdfeyebolloptics
 
In your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdfIn your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdfarihanthtextiles
 
I Have the following Java program in which converts Date to Words an.pdf
I Have the following Java program in which converts Date to Words an.pdfI Have the following Java program in which converts Date to Words an.pdf
I Have the following Java program in which converts Date to Words an.pdfallystraders
 
Working with Layout Managers. Notes 1. In part 2, note that the Gam.pdf
Working with Layout Managers. Notes 1. In part 2, note that the Gam.pdfWorking with Layout Managers. Notes 1. In part 2, note that the Gam.pdf
Working with Layout Managers. Notes 1. In part 2, note that the Gam.pdfudit652068
 
Part 1 - Written AnswersDownload the GridWriter.zip file and exami.pdf
Part 1 - Written AnswersDownload the GridWriter.zip file and exami.pdfPart 1 - Written AnswersDownload the GridWriter.zip file and exami.pdf
Part 1 - Written AnswersDownload the GridWriter.zip file and exami.pdfkamdinrossihoungma74
 
Need help finding the error in my code. Wherever theres a player.pdf
Need help finding the error in my code. Wherever theres a player.pdfNeed help finding the error in my code. Wherever theres a player.pdf
Need help finding the error in my code. Wherever theres a player.pdfarihanthtoysandgifts
 
I need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdfI need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdfrajeshjangid1865
 
java experiments and programs
java experiments and programsjava experiments and programs
java experiments and programsKaruppaiyaa123
 

Similar to I received answers to 2 App requests and paid. The JAVA Apps are not.docx (16)

Construct a java method.   This method chooses the number of sti.pdf
Construct a java method.    This method chooses the number of sti.pdfConstruct a java method.    This method chooses the number of sti.pdf
Construct a java method.   This method chooses the number of sti.pdf
 
Introduction You implemented a Deck class in Activity 2. This cla.pdf
Introduction You implemented a Deck class in Activity 2. This cla.pdfIntroduction You implemented a Deck class in Activity 2. This cla.pdf
Introduction You implemented a Deck class in Activity 2. This cla.pdf
 
BasicPizza.javapublic class BasicPizza { Declaring instance .pdf
BasicPizza.javapublic class BasicPizza { Declaring instance .pdfBasicPizza.javapublic class BasicPizza { Declaring instance .pdf
BasicPizza.javapublic class BasicPizza { Declaring instance .pdf
 
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
 
JAVA.pdf
JAVA.pdfJAVA.pdf
JAVA.pdf
 
- the modification will be done in Main class- first, asks the use.pdf
- the modification will be done in Main class- first, asks the use.pdf- the modification will be done in Main class- first, asks the use.pdf
- the modification will be done in Main class- first, asks the use.pdf
 
the code below is a recommendation system application to suggest a s.pdf
the code below is a recommendation system application to suggest a s.pdfthe code below is a recommendation system application to suggest a s.pdf
the code below is a recommendation system application to suggest a s.pdf
 
Implement a queue using a linkedlist (java)SolutionLinkedQueue.pdf
Implement a queue using a linkedlist (java)SolutionLinkedQueue.pdfImplement a queue using a linkedlist (java)SolutionLinkedQueue.pdf
Implement a queue using a linkedlist (java)SolutionLinkedQueue.pdf
 
Write a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdfWrite a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdf
 
In your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdfIn your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdf
 
I Have the following Java program in which converts Date to Words an.pdf
I Have the following Java program in which converts Date to Words an.pdfI Have the following Java program in which converts Date to Words an.pdf
I Have the following Java program in which converts Date to Words an.pdf
 
Working with Layout Managers. Notes 1. In part 2, note that the Gam.pdf
Working with Layout Managers. Notes 1. In part 2, note that the Gam.pdfWorking with Layout Managers. Notes 1. In part 2, note that the Gam.pdf
Working with Layout Managers. Notes 1. In part 2, note that the Gam.pdf
 
Part 1 - Written AnswersDownload the GridWriter.zip file and exami.pdf
Part 1 - Written AnswersDownload the GridWriter.zip file and exami.pdfPart 1 - Written AnswersDownload the GridWriter.zip file and exami.pdf
Part 1 - Written AnswersDownload the GridWriter.zip file and exami.pdf
 
Need help finding the error in my code. Wherever theres a player.pdf
Need help finding the error in my code. Wherever theres a player.pdfNeed help finding the error in my code. Wherever theres a player.pdf
Need help finding the error in my code. Wherever theres a player.pdf
 
I need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdfI need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdf
 
java experiments and programs
java experiments and programsjava experiments and programs
java experiments and programs
 

More from walthamcoretta

If overload does not get you, underload might. People are not ever b.docx
If overload does not get you, underload might. People are not ever b.docxIf overload does not get you, underload might. People are not ever b.docx
If overload does not get you, underload might. People are not ever b.docxwalthamcoretta
 
If we sensed and attended equally to each stimulus in the world, the.docx
If we sensed and attended equally to each stimulus in the world, the.docxIf we sensed and attended equally to each stimulus in the world, the.docx
If we sensed and attended equally to each stimulus in the world, the.docxwalthamcoretta
 
If Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docx
If Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docxIf Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docx
If Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docxwalthamcoretta
 
If machine 2 was purchased on April 1 instead of July 1, what would .docx
If machine 2 was purchased on April 1 instead of July 1, what would .docxIf machine 2 was purchased on April 1 instead of July 1, what would .docx
If machine 2 was purchased on April 1 instead of July 1, what would .docxwalthamcoretta
 
If I Had Been the Attorney of Record Then...For this Written Assig.docx
If I Had Been the Attorney of Record Then...For this Written Assig.docxIf I Had Been the Attorney of Record Then...For this Written Assig.docx
If I Had Been the Attorney of Record Then...For this Written Assig.docxwalthamcoretta
 
If the Quabbin Reservoir Watershed is 100 km2, the average preci.docx
If the Quabbin Reservoir Watershed is 100 km2, the average preci.docxIf the Quabbin Reservoir Watershed is 100 km2, the average preci.docx
If the Quabbin Reservoir Watershed is 100 km2, the average preci.docxwalthamcoretta
 
Identifytwo barriers that influence your critical thinking.Inc.docx
Identifytwo barriers that influence your critical thinking.Inc.docxIdentifytwo barriers that influence your critical thinking.Inc.docx
Identifytwo barriers that influence your critical thinking.Inc.docxwalthamcoretta
 
If using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docx
If using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docxIf using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docx
If using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docxwalthamcoretta
 
Identifying OpportunitiesSelect a company which is described in re.docx
Identifying OpportunitiesSelect a company which is described in re.docxIdentifying OpportunitiesSelect a company which is described in re.docx
Identifying OpportunitiesSelect a company which is described in re.docxwalthamcoretta
 
Identifying and responding effectively to grant proposals is more an.docx
Identifying and responding effectively to grant proposals is more an.docxIdentifying and responding effectively to grant proposals is more an.docx
Identifying and responding effectively to grant proposals is more an.docxwalthamcoretta
 
Identify the research problem.Identify the research purpose.Summ.docx
Identify the research problem.Identify the research purpose.Summ.docxIdentify the research problem.Identify the research purpose.Summ.docx
Identify the research problem.Identify the research purpose.Summ.docxwalthamcoretta
 
Identify two analytical tools used to process data collection..docx
Identify two analytical tools used to process data collection..docxIdentify two analytical tools used to process data collection..docx
Identify two analytical tools used to process data collection..docxwalthamcoretta
 
Identify two different examples (one positive and one negative) of.docx
Identify two different examples (one positive and one negative) of.docxIdentify two different examples (one positive and one negative) of.docx
Identify two different examples (one positive and one negative) of.docxwalthamcoretta
 
Identify three (3) Websites that you plan to use for your research o.docx
Identify three (3) Websites that you plan to use for your research o.docxIdentify three (3) Websites that you plan to use for your research o.docx
Identify three (3) Websites that you plan to use for your research o.docxwalthamcoretta
 
Identify the four basic financial statements.Describe the purpos.docx
Identify the four basic financial statements.Describe the purpos.docxIdentify the four basic financial statements.Describe the purpos.docx
Identify the four basic financial statements.Describe the purpos.docxwalthamcoretta
 
Identify Funding OpportunityAfter you have completed your public h.docx
Identify Funding OpportunityAfter you have completed your public h.docxIdentify Funding OpportunityAfter you have completed your public h.docx
Identify Funding OpportunityAfter you have completed your public h.docxwalthamcoretta
 
Identify at least two (2) factors that have led to the explosive gro.docx
Identify at least two (2) factors that have led to the explosive gro.docxIdentify at least two (2) factors that have led to the explosive gro.docx
Identify at least two (2) factors that have led to the explosive gro.docxwalthamcoretta
 
Identify two (2) classical Greek and or Roman figures or qualities.docx
Identify two (2) classical Greek and  or Roman figures or qualities.docxIdentify two (2) classical Greek and  or Roman figures or qualities.docx
Identify two (2) classical Greek and or Roman figures or qualities.docxwalthamcoretta
 
Identify the subject and the verb1. Te angry student dropped the c.docx
Identify the subject and the verb1. Te angry student dropped the c.docxIdentify the subject and the verb1. Te angry student dropped the c.docx
Identify the subject and the verb1. Te angry student dropped the c.docxwalthamcoretta
 
Identify and describe a historical event in which the deindividuatio.docx
Identify and describe a historical event in which the deindividuatio.docxIdentify and describe a historical event in which the deindividuatio.docx
Identify and describe a historical event in which the deindividuatio.docxwalthamcoretta
 

More from walthamcoretta (20)

If overload does not get you, underload might. People are not ever b.docx
If overload does not get you, underload might. People are not ever b.docxIf overload does not get you, underload might. People are not ever b.docx
If overload does not get you, underload might. People are not ever b.docx
 
If we sensed and attended equally to each stimulus in the world, the.docx
If we sensed and attended equally to each stimulus in the world, the.docxIf we sensed and attended equally to each stimulus in the world, the.docx
If we sensed and attended equally to each stimulus in the world, the.docx
 
If Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docx
If Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docxIf Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docx
If Men Could Menstruate By Gloria Steinem, Ms. Magazine, O.docx
 
If machine 2 was purchased on April 1 instead of July 1, what would .docx
If machine 2 was purchased on April 1 instead of July 1, what would .docxIf machine 2 was purchased on April 1 instead of July 1, what would .docx
If machine 2 was purchased on April 1 instead of July 1, what would .docx
 
If I Had Been the Attorney of Record Then...For this Written Assig.docx
If I Had Been the Attorney of Record Then...For this Written Assig.docxIf I Had Been the Attorney of Record Then...For this Written Assig.docx
If I Had Been the Attorney of Record Then...For this Written Assig.docx
 
If the Quabbin Reservoir Watershed is 100 km2, the average preci.docx
If the Quabbin Reservoir Watershed is 100 km2, the average preci.docxIf the Quabbin Reservoir Watershed is 100 km2, the average preci.docx
If the Quabbin Reservoir Watershed is 100 km2, the average preci.docx
 
Identifytwo barriers that influence your critical thinking.Inc.docx
Identifytwo barriers that influence your critical thinking.Inc.docxIdentifytwo barriers that influence your critical thinking.Inc.docx
Identifytwo barriers that influence your critical thinking.Inc.docx
 
If using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docx
If using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docxIf using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docx
If using the Ballard Integrated Managed Services, Inc. (BIMS) case s.docx
 
Identifying OpportunitiesSelect a company which is described in re.docx
Identifying OpportunitiesSelect a company which is described in re.docxIdentifying OpportunitiesSelect a company which is described in re.docx
Identifying OpportunitiesSelect a company which is described in re.docx
 
Identifying and responding effectively to grant proposals is more an.docx
Identifying and responding effectively to grant proposals is more an.docxIdentifying and responding effectively to grant proposals is more an.docx
Identifying and responding effectively to grant proposals is more an.docx
 
Identify the research problem.Identify the research purpose.Summ.docx
Identify the research problem.Identify the research purpose.Summ.docxIdentify the research problem.Identify the research purpose.Summ.docx
Identify the research problem.Identify the research purpose.Summ.docx
 
Identify two analytical tools used to process data collection..docx
Identify two analytical tools used to process data collection..docxIdentify two analytical tools used to process data collection..docx
Identify two analytical tools used to process data collection..docx
 
Identify two different examples (one positive and one negative) of.docx
Identify two different examples (one positive and one negative) of.docxIdentify two different examples (one positive and one negative) of.docx
Identify two different examples (one positive and one negative) of.docx
 
Identify three (3) Websites that you plan to use for your research o.docx
Identify three (3) Websites that you plan to use for your research o.docxIdentify three (3) Websites that you plan to use for your research o.docx
Identify three (3) Websites that you plan to use for your research o.docx
 
Identify the four basic financial statements.Describe the purpos.docx
Identify the four basic financial statements.Describe the purpos.docxIdentify the four basic financial statements.Describe the purpos.docx
Identify the four basic financial statements.Describe the purpos.docx
 
Identify Funding OpportunityAfter you have completed your public h.docx
Identify Funding OpportunityAfter you have completed your public h.docxIdentify Funding OpportunityAfter you have completed your public h.docx
Identify Funding OpportunityAfter you have completed your public h.docx
 
Identify at least two (2) factors that have led to the explosive gro.docx
Identify at least two (2) factors that have led to the explosive gro.docxIdentify at least two (2) factors that have led to the explosive gro.docx
Identify at least two (2) factors that have led to the explosive gro.docx
 
Identify two (2) classical Greek and or Roman figures or qualities.docx
Identify two (2) classical Greek and  or Roman figures or qualities.docxIdentify two (2) classical Greek and  or Roman figures or qualities.docx
Identify two (2) classical Greek and or Roman figures or qualities.docx
 
Identify the subject and the verb1. Te angry student dropped the c.docx
Identify the subject and the verb1. Te angry student dropped the c.docxIdentify the subject and the verb1. Te angry student dropped the c.docx
Identify the subject and the verb1. Te angry student dropped the c.docx
 
Identify and describe a historical event in which the deindividuatio.docx
Identify and describe a historical event in which the deindividuatio.docxIdentify and describe a historical event in which the deindividuatio.docx
Identify and describe a historical event in which the deindividuatio.docx
 

Recently uploaded

21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfKartik Tiwari
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 

Recently uploaded (20)

OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 

I received answers to 2 App requests and paid. The JAVA Apps are not.docx

  • 1. I received answers to 2 App requests and paid. The JAVA Apps are not working. They are both due at noon tomorrow Eastern time.I need serious and no-BS tutor that can have this working tonight since I have to get them in. I paid 40 to get this far and would pay another $50 to get the work completed and working. I want to see the output from the netbeans IDE directly. Ticket import java.util.Date; public class Ticket { /** Ticket number */ private long number; /** Category of Ticket */ private String category; /**Ticket Holder*/ private String holder; /** Purchase date */ private Date date; /** Ticket Price */ private double price; private boolean status; /*** * * @param num * @param cat * @param hold * @param d * @param p * @param newstatus */ Ticket (String num, String cat,String hold, Date d, double p, boolean newstatus){ number =Long.parseLong(num);
  • 2. category =cat; holder =hold; date =d; price=p; status =newstatus; } /** * @return the number */ public long getNumber() { return number; } /** * @return the category */ public String getCategory() { return category; } /** * @return the date */ public Date getDate() { return date; } /** * @param price * the price to set */ public void setPrice(double price) { this.price = price; } /** * @return the price */ public double getPrice() { return price;
  • 3. } /*** * * @return */ public void changePurchaseStatus(boolean newStatus) { status= newStatus; } /*** * */ public String toString() { return "Ticket Number: "+number +"nCategory: "+category +"nHolder: "+holder+"nDate: "+date.toString()+"nPrice: "+price+"n"; } /** * @return the holder */ public String getHolder() { return holder; } } Merchandise import java.util.Scanner; public class Merchandise { private long id; private String category; private String description; private double price; private boolean instock;
  • 4. public Merchandise() { this.id = 0; this.category = null; this.description = null; this.price = 0; this.instock=true; } public Merchandise(long nid, String nCate, String nDesc, double nPri, boolean instck) { this.id = nid; this.category = nCate; this.description = nDesc; this.price = nPri; this.instock=instck; } public void setPrice(Double newPrice) { this.price = newPrice; } public void setStock(boolean newStatus) { this.instock= newStatus; } public long getId() { return id; } public String getCategory() { Scanner in=new Scanner(System.in); System.out.println("Enter category"); category = in.next();//inputing category
  • 5. //checking if the item inserted matches the category String b = new String("T-Shirt"); boolean g = category.equals(b); if(g==false) { String c = new String("Sweatshirt"); boolean h = category.equals(c); if(h==false) { String d = new String("Stuffed Animal"); boolean i = category.equals(d); if(i==false) { System.out.println("Error: Ivalid category! "); category="UNKNOWN"; } } } in.close(); return category; } public String getDescription() {
  • 6. return description; } public double getPrice() { return price; } public String toString() { return ("NUMBER: "+this.getId()+" CATEGORY: "+ this.getCategory() + " DESCRIPTION: "+ this.getDescription() + " PRICE: " + this.getPrice()); } } AmusementPark import java.awt.List; import java.sql.Date; import java.util.ArrayList; //amusementPark class public class AmusementPark { //the three instance fields are as follows private String name;//the name of the bookstore private ArrayList tickets = new ArrayList();//storing Ticket objects private ArrayList merchandise = new ArrayList();//storing Merchandise objects public AmusementPark(String name){ this.name = name; } public String getName(){return name;}//returns the name of the bookstore. public ArrayList getTicketDates(){ return tickets;}
  • 7. //returns an ArrayList of all the dates for which tickets are still available. public Date getTicketDates(Date date){ return date;} public Ticket number getTicket(long number){return Ticket;} public ArrayList getMerchandise(){return merchandise;} public ArrayList getMerchandise(String category){return merchandise;} public Merchanidse getMerchandise(long id){return Merchandise;} } AmusementParkTester import java.util.Date; import java.util.Scanner; public class AmusementParkTester { public static void main(String args[]) { AmusementPark amusementPark = new AmusementPark("Walden Amusement Park"); Ticket adult = new Ticket("123", "Adult", "Air USA", new Date(2015, 3, 12), 12322.4, true); Ticket child = new Ticket("10", "Children", "Air USA", new Date(2015, 3, 14), 13322.4, true); Ticket senior = new Ticket("20", "Senior", "Air USA", new Date(2015, 3, 20), 10000.4, true); Merchandise merchandis1 = new Merchandise("123123", "sweatshirts", "Nike", 234, true); Merchandise merchandis2 = new
  • 8. Merchandise("12312323", "t-shirts", "Nike", 450, true); // add it to Amuesement oark amusementPark.addTicket(adult); amusementPark.addTicket(child); amusementPark.addTicket(senior); // Add merchandise amusementPark.addMerchandise(merchandis1); amusementPark.addMerchandise(merchandis2); Scanner scanner = new Scanner(System.in); while (true) { System.out.println("1. Show Ticket Details: "); System.out.println("2. Merchandise Details: "); System.out.println("3. Remove Merchandise : "); System.out.println("4. Remove Tickets: "); System.out.println("Enter the choice: "); String chString = scanner.nextLine(); switch (Integer.parseInt(chString)) { case 1: System.out.print("nEnter the Ticket ID: "); int id = Integer.parseInt(scanner.nextLine()); System.out.println(amusementPark.getTicket(id).toString()); break; case 2: System.out.print("nEnter the Category: "); String cat = scanner.nextLine(); System.out .println(amusementPark.getMerchandise(cat).toString()); break; case 3: System.out.print("nEnter the ID: "); String ID = scanner.nextLine(); amusementPark.buyTicket(ID); break;
  • 9. case 4: System.out.print("nEnter the ID: "); ID = scanner.nextLine(); amusementPark.buyMerchandise(ID); break; } System.out.println("Do you want to continue(Y/N)?: "); String choice = scanner.nextLine(); if (choice.charAt(0) == 'N') { System.exit(0); } } } } Retail Transaction Classes LineItem import java.util.*; public class LineItem { protected String itemName; protected int quantity; protected double price; public LineItem(String itemName, int quantity, double price) { this.itemName = itemName; this.quantity = quantity; this.price = price; } public String getName() { return itemName; } public int getQuantity() { return quantity; }
  • 10. public void setQuantity() { quantity = quantity; } public void setPrice() { price = price; } public double getPrice() { return price; } public double getTotalPrice() { return quantity*price; } public String toString ( ) //Returns a formatted String for output purposes //toString () Method { return "t" + itemName + "t qty " + quantity + "t @ $" + price + "t $" + getTotalPrice(); } } Transaction - Not working import java.util.ArrayList; public class Transaction { private final ArrayList lineItems; private int customerID; private String customerName; private String LineItem;
  • 11. public Transaction(int customerID,String customerName) { this.customerID = customerID; this.customerName = customerName; this.lineItems = new ArrayList(); } public int getcustomerID(){ return customerID; } public void setcustomerID(int customerID){ this.customerID = customerID; } public String getcustomerName(){ return customerName; } public void setcustomerName(String customerName){ this.customerName = customerName; } public String addLineItemString (String itemName, int quantity, double price){ lineItems.add(new LineItem(itemName,quantity,price)); } double totalPrice = 0; for (int i =0;i LineItem item = lineItems.get(i); totalPrice = totalPrice + item.getTotalPrice(); } //return "Colgate Toothpaste not found"; public String updateItem(){ return null; } public double getTotalPrice(){
  • 12. return 0; } public String getLineItem(){ return LineItem; } } Missing the main routine.