Hi friends, welcome to Tutor's Funny Channel
Today I am going to teach how to implement the use case diagram using chatgbt
So every programming we need a use case. Okay. Before we have to make the system, we have a use case diagram. Okay
What are the actors associate that particular system? What are the use cases
Because this all things very important when you are implement the software projects, whether
it is a library management system, hospital management system, student management system, etc
We need a use case diagram for it. Okay. So how to implement it very simple way. Okay
So here if you are when you are when some company and or the project to you, first you
would get the idea what are the actors of that particular system, all the things we
have easily we have gather from the chatgbt that is the AI tool which is help us to implement
the software very easily. Okay. You have to get get the good solution for it. Okay
So you go to the chatgbt official website. So here you have to now the chatgbt 4 has been released. Okay
That is you can easily you can that's a free version is there. You can you can number of prompt you can type for free version
So here you can type the prompt over here. What is the system you are going to implement
Take example I'm going to implement the library management system. Right. So first you have to put the prompt here act as a world best UML diagram creator
Then only the chatgbt actors what is the prompt you are given according to the point it will
be react. Okay. Right. So here you are put as a UML diagram creator
So here what are the UML diagram is there. They are list out. Okay
So what are the UML task diagram use case diagram sequence diagram activity diagram
state and all the diagram what are the diagram is available inside the UML it will be list out. Okay
So these all the diagram they are list out that now what is the system you are going
to make your tell them the chatgbt to implement what diagram you need
I need to meet you. You tell them I need you to generate generator complete use case diagram
Okay I need you to generate a complete use case diagram for for about I'm going to library
management system. Okay before you are selecting the language which is Java or C sharp everything thing
first need a you can diagram along with that or you can tell that along with that no need
at the moment we just put this prompt. Okay. So you can put I need to I need you to generate a complete use case diagram of the library
management system. You can I just get the library management you can put the student management system
or anything else. Yeah. How far it is. Yeah it will be easily you have to tell them these are the use cases these are the actors
these are the relationship. You can see here what are the actors are there what are the entity types and what are the
use cases. Okay you can see all things it will draw. Okay
Everything is there. Why is the use cases. These are all are things that they implement the use cases
You can easily see that everything it said it has been explained
But the drawing the chat if it is not enough at the moment to draw properly at the use
cases but you have to get that text. This act as a text based software
So it will be drawn but it's not the drawing is not professional
So you can see here what are the actors. Your librarian member guest and administrative are the actors which is a library management system. Right
So what are the use cases. This will be search books borrow books all the things are there. Right
Actors and use cases. It's very simple. Right. Member as actor guest is actor
These are the search books borrow books return books manage books. Right
So these are the use cases. Right. Rename with the membership. When the membership is entered we have to remove that
The pay fine. What is the meaning of pay fine. If you borrow the books from the library you haven't earned over the time on time
There will be a penalty fee. You have to pay the penalty fee
There is a pay fines. You have to pay the fines. This all things we include that particular system so that we have to get the right
So the relationship you can see that librarians perform all the action expert pay fine and
renew memberships. OK. The relationship here. Right. The member can search a book or borrow books return book everything you can
There are things you include that particular system. You roughly get the idea. OK
These are the relationship. OK. So you have to get the idea of that. OK
We all learn the system. These are these are the system. If you go for the library management these are the actors
These are roles. These are the entities. OK. Now let's select the class diagram
Now you don't have to write it here. I want to just generate that
You just put you already put this. We are going to do use a use case diagram
So you have to write it here. Class diagram. Generate a class diagram. It automatically takes the prompt library management says class diagram here
What are the attributes and methods. Now you can see every there is a what are the actors are there
You can see here. Right. What are the use cases. Right. So here class diagram it describes the attributes and methods
Use case diagram the actors and use cases. Now class diagram describes about actors and method of the system
What are the actors. What are the entities of the system. What are the entities mean. If you take the look at the example of books
Book has an ID which is attribute. Book has a name. Book has a ISPN ID. ISPN
And book author. OK. Right. Those are the attributes. What are the behavior
Add book. Delete book. Edit book. These are the methods of the books
So here it's simply list out. You can see a library as a name address books members. OK
These are libraries. OK. So right. So here it has attributes add book remove book and register member and generate reports
What are the books. Book has an attribute. See a title. ISPN number
Publish and date. Available copies. Available books available. We'll check it. Borrow
This with members. These are the methods. We are called as method. You roughly get the idea
These are the things we have to include that our pet cooler library management
So easily you roughly get the idea. It's very simple. OK. You have to implement the system
You have to get roughly. You have to get the idea. If you go for that. These are the diagrams
Class diagram. You can see the attributes here. Library. Books. List of books
We have a list of books. Remember. OK. So what are the methods
You can see the add book remove book. Everything you can see. OK. But you will be able to see this also
Here the diagram is drawn but the diagram is not properly drawing by chat GBD. It's not it is not good enough to draw the diagram
It's a chat based AI tool. OK. The chat GBD is brilliant for generating the text not drawing. So you can see the attributes
You can see the attributes. You can see the attributes. You can see the attributes. You can see the attributes
You can see the attributes. You can see the attributes. You can see the attributes. You can see the attributes. OK
So you can you just get that. They mentioned the relationship as a library contained books. OK. One library content many books
So one to many relationship. So if you are generate another diagram you can I need to generate the relationship. So I need you to generate the relationship
I like to put it in the gender the relationship. So I need you to generate the relationship. So I need you to generate the relationship
So I need you to generate the relationship. So I need you to generate the relationship. So I need you to generate the relationship. So I need you to generate the relationship
So I need you to generate the relationship. So I need you to generate the relationship