java question
1. We should be able to find, add and delete companies.
2. Each company will have
name: its identifier
address: country, city, zip number and street info. If zip number is same, then the city must be the same.
phone number: Each company must have exactly one phone number, and two company cannot have the same phone number
e-mail: A company may have zero or more e-mail address
3. We should be able to find, add, delete and update products.
4. Each product will have an id, name, description and brand name
Products are identified by their ids.
The system should not accept products with no name.
5. A company has a capacity to produce a product. If the ordered transaction amounts are more than the production capacity, the order should not be accepted.
. The system accepts orders for products and send them to companies. Each order has an amount and order date information. 6 If the total active orders exceed the production capacity of company, it should automatically be rejected.
How can start this project and how to make the connection between company and product ?
31 Replies
⌛
This post has been reserved for your question.
Hey @DigitalDynamo! 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•8mo ago
Message Not Public
Sign In & Join Server To View
Since java is object-oriented, you could start having some classes. You named them in the text already.
1. Class Company (Is an object because you could touch a company-representatives with your hands)
2. Class Product (Is an object because you could touch a company-product)
3. Class Order (Is an object because you could touch the receipt)
4. Class ConnectionBetweenCompanyAndProduct (Is an theoretical object, like a patent, its existance proves that a product belongs to a company)
My means that how to connect company with products . In UI
For suppose i have a company and in company i have multiple products , but when I need to add more company how can i do this thing?
Thanks alot 💫 I understand this thing.
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.
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
How can make without UI ?
i visualise this diagram how user add there product and hw to implement point 5 and 6 ?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
yes i have done oop project
means there is no requirement of making ui , it's console base task ?
so how can i connect console base task to sql ?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
so how can the company accept or reject the order ?
can you define what i have do tell me the sequence how to achieve this whole project ?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
ok wait
done
but how user enter multiple emails ?
also done product
done company and product see it's fulfils all requirements ??
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
An Error Occurred
Could not find Custom Tag with name
code
.Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
nope
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
cna you explain this with example ?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
ok i will try this thing
when i trying this menu.print () gives error
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
you mean in menu i have to print both company and product list ?
💤
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.