Java Assignment
Good afternoon guys ,I just need assistance in regards to my assignment . The code is good but faulty as it is not displaying the desired console output and I've been struggling to figure out the solution to the problem. I can gladly share my source code whenever you're ready!! Your assistance would be very much appreciated !
16 Replies
⌛
This post has been reserved for your question.
Hey @dans132! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Thank you so much will do
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
theres about 6 classes and do you mind if i please share with the desired console output the prof wants too?
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Alright let me send you a screenshot
one moment please
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
yes so must i send source code for all the classes ?? The main issue is the console output
Please bare with me
These are src code files
The desired console out put is in this file below
Scroll and you will see sample output
this sequence works like planned according to the desired console output:Please select one of the following:
1: Add Item to Inventory
2: Display Current Inventory
3: Buy Item(s)
4: Sell Item(s)
5: To Exit
2Inventory: Please select one of the following: 1: Add Item to Inventory 2: Display Current Inventory 3: Buy Item(s) 4: Sell Item(s) 5: To Exit
3Error...could not buy item Please select one of the following: 1: Add Item to Inventory 2: Display Current Inventory 3: Buy Item(s) 4: Sell Item(s) 5: To Exit
4Error...could not sell item Please select one of the following: 1: Add Item to Inventory 2: Display Current Inventory 3: Buy Item(s) 4: Sell Item(s) 5: To Exit
1Do you wish to add a fruit(f), vegetable(v), preserve(p)? w Invalid entry Do you wish to add a fruit(f), vegetable(v), preserve(p)? 1 Invalid entry Do you wish to add a fruit(f), vegetable(v), preserve(p)? f Enter the code for the item: 111 Enter the name for the item: Granny Smith Apple Enter the quantity for the item: 30 Enter the cost of the item: .10 Enter the sales price of the item: .25 Enter the name of the orchard supplier: Apple Orchard Please select one of the following: 1: Add Item to Inventory 2: Display Current Inventory 3: Buy Item(s) 4: Sell Item(s) 5: To Exit
2Inventory: Item: 111 Granny Smith Apple 30 price: $0.25 cost: $0.10 orchard supplier: Apple Orchard Please select one of the following: 1: Add Item to Inventory 2: Display Current Inventory 3: Buy Item(s) 4: Sell Item(s) 5: To Exit
1Do you wish to add a fruit(f), vegetable(v), preserve(p)? v : but this appears after :Enter the name of the supplier: Instead of :Enter the code for the item: 222 the issue starts at the 2nd item whcih i want to add according to the desired console output
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.