Need help with school work
I need help with my school work. I have to do a program by Sunday night and I don't even know how to begin. The first part of the assignment os Creat a Java application that displays the product number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory (the number of units in stock multiplied by the price of each unit). This is what I have so far. I don't know if it is right or not can someone please help?!?!?!?!
/**
* @(#)Inventory.java
*
* Inventory application
*
* @author
* @version 1.00 2009/8/28
*/
import java.util.Scanner; //program uses class Scanner
public class Inventory {
//main method begins execution of Java application
public static void main( String args [])
{
//create scanner to obtain input from command window
Scanner input = new Scannner( System.in );
int itemNumber; //item number
int productNumber; //product number
int unitsInStock; //first number to mulitply
int priceOfEach; //second number to mylitply
int total; //total of unitsInStock * priceOfEach
System.out.print( "Enter item number: " );
//promt itemNumber=input.nextInt(); read input from user
System.out.print( "Enter product number: " );
//promt productNumber=input.nextInt(); read input from user
System.out.print( "Enter units in stock: " );
//promt unitsInStock=input.nextInt(); read input from user
System.out.print( "Enter price of each: " );
//promt priceOfEach=input.nextInt(); read input from usre
total=unitsInStock*priceOfEach;
//multiply unitsInStock and priceOfEach to get total value of stock
System.out.printf( "Total value of stock is %2f\n",total ); //display total amount
}//end main method
}//end class Inventory