Hello I am going to give a program that I have done, but I have to modifiy it, but I need help okay can you help ?
Here the program I need help to straighten up below:
the Java error is right at the point is at the end of the program.
[CODE=Java]
//week 6 Inventory3
// by Tina Jones
// IT 215
// october 07/2007
import java.util.Scann er;
public class Inventory3
{
class restockfee3
{
//Inventoryprogra mpart3
// Created on October 5, 2007, 10:19 PM
//To change this template, choose Tools | Template Manager and open the template in the editor.
{
// Creat a calculation for restock fee
//Create a new instance of Inventoryprogra mpart2
// Create private varibles
//Create a constructor Inventory2 varibles
// private main method begins program execution
// Create a new instance for class Inventory2
// create a new instance for ProductGUI1
class array1
{
public static void main ( String args[] )
{
// array of stock number
product array []={ doll ,computer , car, list};
//array of product
number array[]={ 1 , 2 , 3 , 4};
// array of item number
value array []={ $29, $600, $23};
// array of price
stock array []={ 43436, 65656,76767};
//array of stock number
class Sortmethod1
{
// Create private varibles
//Create a constructor sortmethod1 varibles
// private main method begins program execution
// Create a new instance for sortmethod1
// create a new instance for arrayGUI1
private String name; //sets varialbe
private int Number; //sets inventory number
private int units = Numbers ;// sets Unit number
private double Stock = numbers; // sets the stock amount
private double Price = dollars;//sets price with restock fee of 5%
private double invPrice;
//Create a constructor array list1 varibles
// private main method begins program execution
// Create a new instance for array list1
// create a new instance for array listGUI1
// getmethod for array list GUI
private static void main ( String name, int number, int units, double stock, double price, double invprice[])
{
product name = name;// getproduct name
item number = number;//getitem number
units = number;// getunits number
stock = number;// getstock number
price = number;// getprice number
restock fee= number;// getrestock fee
Scanner input = new Scanner( System.in ); //user input
// Create a sort method for product name array list
System.out.prin tf("%s\n%s\n"," use sort method for Product name array");
System.out.prin tf("Please Enter Name of Product");
String name = input.nextLine( );
// array of product
// start array constructor
System.out.prin tf("\nList of Products");
System.out.prin tf("%s\n%s\n"," use sort method for Item number array");
System.out.prin tf("Please Enter Item number");//Needs be a number
double number = input.nextDoubl e();
System.out.prin tf("%s\n%s\n"," use sort method for product price array");
System.out.prin tf("Please Enter Product Price");//Needs be a number
double price = input.nextDoubl e();
// start array constructor
//perform verious opreations of the data
//create a list method for array
// create a sort method for stock number array list
System.out.prin tf("%s\n%s\n"," use sort method for stock array");
System.out.prin tf("Please Enter Stock Number");// Need be a number
double number = input.nextDoubl e();
// create a calculation for restock fee of 5%
//start calculation constructor
System.out.prin tf("%s\n%s\n"," user enters a restock fee is: 5%");
double fee = input.nextDoubl e();
//Output Display
System.out.prin tf("Product name:%s\n","nam e");
System.out.prin tf("Item number:%s\n","n umber");
System.out.prin tf("Item price:%s\n","pr ice");
System.out.prin tf("Stock number:%s\n","n umber");
System.out.prin tf("use a sort method for array lists:%s\n","al l array list a-z listings");
System.out.prin tf("A Restock fee:%s\n","calc ulation fee");
}// end sub public class sortmethod
) // end public class Inventory3[/CODE]
the line error that I am gettins here: ) // end public class Inventory3
so far do you have any sugguestions how to improve my program?
Here the program I need help to straighten up below:
the Java error is right at the point is at the end of the program.
[CODE=Java]
//week 6 Inventory3
// by Tina Jones
// IT 215
// october 07/2007
import java.util.Scann er;
public class Inventory3
{
class restockfee3
{
//Inventoryprogra mpart3
// Created on October 5, 2007, 10:19 PM
//To change this template, choose Tools | Template Manager and open the template in the editor.
{
// Creat a calculation for restock fee
//Create a new instance of Inventoryprogra mpart2
// Create private varibles
//Create a constructor Inventory2 varibles
// private main method begins program execution
// Create a new instance for class Inventory2
// create a new instance for ProductGUI1
class array1
{
public static void main ( String args[] )
{
// array of stock number
product array []={ doll ,computer , car, list};
//array of product
number array[]={ 1 , 2 , 3 , 4};
// array of item number
value array []={ $29, $600, $23};
// array of price
stock array []={ 43436, 65656,76767};
//array of stock number
class Sortmethod1
{
// Create private varibles
//Create a constructor sortmethod1 varibles
// private main method begins program execution
// Create a new instance for sortmethod1
// create a new instance for arrayGUI1
private String name; //sets varialbe
private int Number; //sets inventory number
private int units = Numbers ;// sets Unit number
private double Stock = numbers; // sets the stock amount
private double Price = dollars;//sets price with restock fee of 5%
private double invPrice;
//Create a constructor array list1 varibles
// private main method begins program execution
// Create a new instance for array list1
// create a new instance for array listGUI1
// getmethod for array list GUI
private static void main ( String name, int number, int units, double stock, double price, double invprice[])
{
product name = name;// getproduct name
item number = number;//getitem number
units = number;// getunits number
stock = number;// getstock number
price = number;// getprice number
restock fee= number;// getrestock fee
Scanner input = new Scanner( System.in ); //user input
// Create a sort method for product name array list
System.out.prin tf("%s\n%s\n"," use sort method for Product name array");
System.out.prin tf("Please Enter Name of Product");
String name = input.nextLine( );
// array of product
// start array constructor
System.out.prin tf("\nList of Products");
System.out.prin tf("%s\n%s\n"," use sort method for Item number array");
System.out.prin tf("Please Enter Item number");//Needs be a number
double number = input.nextDoubl e();
System.out.prin tf("%s\n%s\n"," use sort method for product price array");
System.out.prin tf("Please Enter Product Price");//Needs be a number
double price = input.nextDoubl e();
// start array constructor
//perform verious opreations of the data
//create a list method for array
// create a sort method for stock number array list
System.out.prin tf("%s\n%s\n"," use sort method for stock array");
System.out.prin tf("Please Enter Stock Number");// Need be a number
double number = input.nextDoubl e();
// create a calculation for restock fee of 5%
//start calculation constructor
System.out.prin tf("%s\n%s\n"," user enters a restock fee is: 5%");
double fee = input.nextDoubl e();
//Output Display
System.out.prin tf("Product name:%s\n","nam e");
System.out.prin tf("Item number:%s\n","n umber");
System.out.prin tf("Item price:%s\n","pr ice");
System.out.prin tf("Stock number:%s\n","n umber");
System.out.prin tf("use a sort method for array lists:%s\n","al l array list a-z listings");
System.out.prin tf("A Restock fee:%s\n","calc ulation fee");
}// end sub public class sortmethod
) // end public class Inventory3[/CODE]
the line error that I am gettins here: ) // end public class Inventory3
so far do you have any sugguestions how to improve my program?
Comment