![]() ("The value of the inventory is " stapler.value()) Stapler = new Stapler( 645, 2, 17.99 ) //declares a new item number,units in Public Product (String name, int itemNumber, int numberofunits, int priceper Here is aupdated version of the app is this correct or does it need other changes? //InventoryProgram1.Java ("The value of the inventory is " + stapler.value()) ![]() ("Product Title is " + stapler.getstaplercolor()) ![]() ("The item number is " + stapler.getItemNumber()) Stapler = new Stapler( 645, "Black", 2, 17.99 ) //declares a new item number, Scanner input = new Scanner( System.in ) Public static void main(String args ) //starts the program Public class InventoryProgram1 //declares public class inventory Public Product (String name, int item number, int number of units, int price per unit) I would appreciate it if someone could look over what I have done and make suggestions I am new at this and appreciate the help. Then I needed to create a java app that would display the product number, the name of the product, the number of units in stock, the price of the units, and the value of the inventory (number of units * price of each) ![]() I had to create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit. I am submitting a inventory program that I need some help with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |