import java.util.Arrays;
public class InventoryPart2
%26#123;
// main method begins execution of Java application
public static void main( String args[] )
%26#123;
Product newProduct = new Product("ZX432", "Microsoft Office", 125, 309.99);
Product[]newProduct= new Product[5];
newProduct[0]= new Product(1,"Microsoft Office", 125, 309.99);
newProduct[1]= new Product(2,"Symantec Antivirus", 54, 21.99);
newProduct[2]= new Product(3,"Roxio", 60, 120.99);
newProduct[3]= new Product(4, "Dolphin Imaging", 2, 995.00);
System.out.println("\n\nSoftware Item: "+ newProduct.getSoftwareItem()); //display item name
System.out.println("Software Title: "+ newProduct.getSoftwareTitle()); //display item number
System.out.println("Software in Stock: "+ newProduct.getSoftwareStock()); //display quantity in stock
System.out.println("Software Price:$ "+ newProduct.getSoftwarePrice()); //display item price
System.out.println("Value of Inventory:$ "+newProduct.value()); //display total value of inventory
%26#125; // end main method
//Start bubble Sort
private static void SortProductArray()
%26#123;
int flag = 5; // value for completion of sort
newProduct temp; // Create object for sorting
// Begin while
while (flag == 5);
No comments:
Post a Comment