Hi, I am not "getting it" with Java nearly as quickly as I should. I am writing an inventory program and I need to create a DVD inventory program that will display the following; I need to create a product class that holds the item number, name of DVD, how many I have in stock, as well as the price per DVD. Then I need to show the value of my inventory.
I am so lost, can anyone help? I have this so far:
package InventoryProgram;
import java.util.Scanner;
public class InventoryProgram {
/**
Inventory Program for DVD's
*/
public static void main(String[] args) {
Scanner input = new Scanner( System.in);
String movie_dvd; //dvd movie name
String item_number; //dvd item number
String stock_dvd; //dvd quantity in stock
String cost_dvd; //price per dvd
int sum;
System.out.println("Enter Movie's Inventory Number and Name");
movie_dvd = input.next(); // prompt
System.out.println("Enter DVD's Product Number");
item_number = input.next(); // prompt
System.out.println("Enter Quantity Available in Stock");
stock_dvd = input.next(); // prompt
System.out.printf("The Movie Name is %s", movie_dvd); // display DVD name
System.out.printf("The DVD's Product Number is %s", item_number); // display product number
System.out.printf("There are %s", stock_dvd, " available"); // display available total
System.out.printf("The Value of DVD Inventory is %d\n", sum); // display total of inventory
Thanks so much, Vickie
}
// end main method
}