Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write an inventory system  RSS feed

 
Shalimar Sulaiman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
who can help me doing an inventory system using java code
hint use 2d arrays
please need help
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You have been given poor advice because there is no such thing as a 2D array. There are arrays of arrays which are better than 2D arrays. Why are you using arrays for an inventory system? The question looks as if you have thought how to do it before you thought what you want to do. Write down on paper what you want in simple English/other language. Make it very very simple and you will be able to turn it to code easily. If any words like method or array appear on the paper erase the lot and start again.

Don't add a new question to an existing thread. I shall create a new thread from this question.
 
Shalimar Sulaiman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inventory System
Menu:
[a] add vegetables
[b] add fruits

Select letter to add items. (Letters aside from a and b should not be accepted and should ask the user to enter a letter again)
How many items do you like to add?
Hint: use 2d array.
Input after selecting a or b: (input depends on the number of items the user like to add)
Item code:
Item name:
Price:
Quantity:

After adding items, the program should ask the user to search for an item based on the item name. if the item name is not found, display “Sorry, Item is not found!”.

Output:
Search item:
Item code:
Price:
 
Shalimar Sulaiman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enrollment System
Input:
Enter Student Name:
Enter Student Number:
Please select a program:
[a] BSIT (TF is 29,000) [d] CoE (TF is 31,000)
[b] BSHRM (TF is 27,000) [e] AsCT (TF is 26,000)
[c] BSTM (TF is 28,000)

Select payment type:
1 Installment (if installment, Downpayment is 20% of tuition fee and the rest will be divided into 4(prelim, midterm, prefinal, final))
2 Cash (Tuition fee is -10%)
Output:
Congratulations <student name>!
You are now enrolled in <program> program.
Your Payment mode is <payment mode> and tuition fee is:
<CASH AMOUNT>

If installment:
Output:
Congratulations <student name>!
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But what have you done?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!