#Java Assignment
23 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @wraith lichen! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
please share your code but only the relevant part.
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?
Narrow down where the issue is. I'm not going to read through 6 classes. And yeah the expected output would be great
please don't share screenshots of your code
Please format your code & make it more readable.
For the java programming language, it should look like this:
```java
public class Main {
public static void main(String[] args){
System.out.println("Hello World!");
}
```
• These are backticks, not quotes.
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
2
Inventory:
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
3
Error...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
4
Error...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
1
Do 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
2
Inventory:
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
1
Do 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