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
JavaBot
JavaBot8mo ago
This post has been reserved for your question.
Hey @DigitalDynamo! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Peter Rader
Peter Rader8mo ago
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)
DigitalDynamo
DigitalDynamoOP8mo ago
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.
JavaBot
JavaBot8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
How can make without UI ?
DigitalDynamo
DigitalDynamoOP8mo ago
i visualise this diagram how user add there product and hw to implement point 5 and 6 ?
No description
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
ok wait
DigitalDynamo
DigitalDynamoOP8mo ago
done
No description
DigitalDynamo
DigitalDynamoOP8mo ago
but how user enter multiple emails ?
DigitalDynamo
DigitalDynamoOP8mo ago
also done product
No description
DigitalDynamo
DigitalDynamoOP8mo ago
done company and product see it's fulfils all requirements ??
No description
No description
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
JavaBot
JavaBot8mo ago
An Error Occurred
Could not find Custom Tag with name code.
JavaBot
JavaBot8mo ago
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.
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
nope
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
cna you explain this with example ?
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
ok i will try this thing when i trying this menu.print () gives error
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
DigitalDynamo
DigitalDynamoOP8mo ago
you mean in menu i have to print both company and product list ?
JavaBot
JavaBot8mo ago
💤 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.
Want results from more Discord servers?
Add your server