So far I have done this project twice. I deleted the first one. I will keep this and look it over and over. This is very good and practical for understanding the basics. Thank you so much!! Some courses teach teh basics but not how to apply it. Very well done.
You could use "tuitionBalance += costOfCourse", not "tuitionBalance = tuitionBalance +costOfCourse" You could leave tuitionBalance without assigning it to 0, because all instance variables are 0, false, null by default. You could use 1 static Scanner for better memory management and locality.
This is a very good project for all the major core java concepts. We have static variables, an abstract class for students, maybe even an interface if you wanted . IO with scanner. File handling if you want or being cool and integrating an actual database. I have a hard time figuring out project ideas lol, so, you definitely gave me a good idea!
Thanks for your time putting up this quick project. Have a quick question. If the student mistakenly enrolls for the same course twice how do I send an alert to the student? Also how to retrieve an information for a particular student?......Sorry I am new to Java so having all sorts of questions.
in this case the String courses should be an Array of Strings, and you need a Loop to check if the new added string is equal to one of the Strings that you added
nice idea project for beginners, but kinda weird code though, Student class seems to be too busy , and methods like and enroll and so on should be in a different file.
The last line, System.out.println(students[n].toString()); just prints out something like "studentDatabaseApp.Student@378bf509". I used students[n].showInfo(); to show the added students instead
sir software is ready i needed software for school purpose by seeing this video actually i am not getting what features are there because i am not a developer so if software is ready then tell sir i will pay for that if any help needed then i will do if it is incomplete
package studentdatabaseapp; import java.util.Scanner; public class Student { private String firstname; private String lastname; private int gradeYear; private String studentID; private String courses = ""; private int numberOfCourses; private int tuitionBalance = 0; private static int costOfCourse = 600; private static int id = 1000; //constructor takes student name and year public Student(Scanner scanner) { //Scanner scanner = new Scanner(System.in); setStudentDetails(scanner); enrollCourse(); payTuition(scanner); System.out.println(showInfo()); System.out.println(); System.out.println(); //scanner.close(); } private void setStudentDetails(Scanner scanner) { System.out.print("Enter First name: "); this.firstname = scanner.next(); System.out.print("Enter last name: "); this.lastname = scanner.next(); System.out.println(); System.out.print("1. Freshmen 2. Sophmore 3. Junior 4. Senior Enter the grade year for " + this.firstname + ":"); this.gradeYear = scanner.nextInt(); //sets student ID setStudentID(); System.out.println(); }
//creates unique ID - first being grade level private void setStudentID() { Student.id++; this.studentID = this.gradeYear + "" + Student.id; }
//Enrol courses private void enrollCourse() { //Inside a loop until user hits Q or q Scanner scanner = new Scanner(System.in); while(1!=0){ System.out.print("Enter the course that you wanna study(Q to quit): "); String c = scanner.nextLine(); if(!(c.equals("Q") || c.equals("q"))) { this.courses = courses + " " + c; this.tuitionBalance += Student.costOfCourse; this.numberOfCourses += 1; }else { break; } } //scanner.close(); System.out.println(); System.out.println( "Total course amount = " + this.numberOfCourses + " x £" + Student.costOfCourse + " = £" + this.tuitionBalance); } //view balance private void viewBalance() { System.out.println("Your tuition balance: £" + this.tuitionBalance); }
//pay tuition private void payTuition(Scanner scanner) { viewBalance(); System.out.print("Please Enter the amount you wanna pay today: £"); int payment = scanner.nextInt(); this.tuitionBalance = this.tuitionBalance - payment; System.out.println(); System.out.println("-----------------------------------------"); System.out.println("Thank you for the payment of £" + payment); viewBalance(); System.out.println("-----------------------------------------"); }
It's more of the last part, where an array of objects was created. It's basically all about efficiency. Instead of creating several objects, we can go through a for loop and just create an array.
@@samybarakat9853 thank you. someone mentioned abstract class and I didn't see that also when it comes to main oops concept, i was not seeing like polymorphism or inheritance or even an encapsulation other than some privatization.
Hate that you stopped after so few videos. The two java projects were helpful and you presented them really well.
the java tutor is really motivating could you continue posting on java tutorials please if you read this comment thanks alot
Sir , I am feeling very happy for the courses . Thanks for taking the initiation. Your project classes are very helpful.
Sir I do had a a similar scenario on e-commerce can u be able to help me with that.
For anyone curious, Coding with John has a great video on when to use .equals() vs == and why they work in different ways. I found it very helpful.
Good Project suppoprting Learn By Doing
So far I have done this project twice. I deleted the first one. I will keep this and look it over and over. This is very good and practical for understanding the basics. Thank you so much!! Some courses teach teh basics but not how to apply it. Very well done.
Is this project is good to put on resume . Pls reply?
lol it’s in mine 😂😂. Good for showing Java skill set for sure!!
@@kendallwhite4699 I mean did you made front end , frame work etc as additional to this project or this code is enough.
You could use "tuitionBalance += costOfCourse", not "tuitionBalance = tuitionBalance +costOfCourse"
You could leave tuitionBalance without assigning it to 0, because all instance variables are 0, false, null by default.
You could use 1 static Scanner for better memory management and locality.
This is a very good project for all the major core java concepts. We have static variables, an abstract class for students, maybe even an interface if you wanted . IO with scanner. File handling if you want or being cool and integrating an actual database. I have a hard time figuring out project ideas lol, so, you definitely gave me a good idea!
why abstract class for students ?
Thank you, those projects helped me a lot to remember Java (after a long period that I stoped using the language).
ruclips.net/p/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2
please make more of these, they are invaluable.
Keep this up! its help me understand the logic of OOP in java well.
ruclips.net/p/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2
thank you this is really helping me with my database project
Thank you for this video, it makes me understand the concept of OOP and I was able to build this project using Kotlin.
ruclips.net/p/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2
thanks a lot. this video saved my life
This gave me a clarification of how things works thank you brother.
THIS GUY IS PURE GEM 💎
You doing good Job i hope we can see more real life project
Thanks
Keep Uploading man! Your videos are awesome!
Great project. I got an excellent idea
Love it ----------- Just Awesome ....... Thank you For this ....
please upload more java projects.
i've completed this project thank you
Completely done it again after 2 years. Practicing Java once more!
do you have source code ?
@@ManojVerma-mx3vv Yes, I do. Thankfully.
source code
github.com/mahmoud-abdalmaksoud/Student-manegement-system
Awesome video.
great video,please make another one
Awesome tutor thanks a lot
Thank you very much Sir. Completely done with it.
This type of projects help to grow logic
Is this is good project to put on resume?
@@yashaswinihm4288 no
@@yashaswinihm4288 Put something that has good GUI. Nobody looks into the code.
Great Project! Thank you very much for tutoring.
Great stuff, I hope you upload more, thanks
well done job
awesome tutorial,looking forward for more real time projects on core java ,plsss upload
Awesome upload more dude.....
its very help full
Great
This was a great tutorial thank you 🙏
good project
Thanks for your time putting up this quick project. Have a quick question. If the student mistakenly enrolls for the same course twice how do I send an alert to the student? Also how to retrieve an information for a particular student?......Sorry I am new to Java so having all sorts of questions.
in this case the String courses should be an Array of Strings, and you need a Loop to check if the new added string is equal to one of the Strings that you added
great video thank you man.
Thanks for share your knowleadge!! This is helped me a learning OOP with Java!!
Brabo
ruclips.net/p/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2
Hello,thank you for your videos,it really helpful,can you upload more videos about OOP and Data structures project?🥰
In the middle of a project now. I'll be back!
How was it?
@@phungaoxuan1839 I am not back yet. Deep into React, Bootstrap, Tailwind, CSS Flexbox & Grid, Python, Data Science & Machine Language now.
And Javascript of course!
Then there is Statistics & Tableau too!
Will be back when I need a Java refresher. LOL
u r amazing !
Make it vedios will be more visible! Thank you!
I seem to keep having the "courses enrolled: null" shown in the console when starting the program? i didnt see how you removed it in the video
Use this code to fix it:
private String courses = "";
I wish my professor wrote project instructions like this.
I hate genius professors. They're always terrible at teaching.
that's good
Thanx..
you should come back with new tutorials
Please implement the same in GUI Project
Would love to see this.
WHY THERE AREN'T MORE OF THESE REAL LIFE PROJECTS? SO frustrating...
@Epoch plus5 Up. if tou want
@Epoch plus5 why, im at the begining of, any advance?
@Epoch plus5 why did you moved to C#?
Any advice for beginers in JAva?
@Epoch plus5 sure me too
@Epoch plus5 I'll surely try... vut may i do it in Java...... Am too new in C sharp
nice idea project for beginners, but kinda weird code though, Student class seems to be too busy , and methods like and enroll and so on should be in a different file.
Is there a video where you go over the JDBC and the process of building the database.
doing this project in python to learn it i suggest trying it on ur own first then if u get stuck look at vid
How do you remove the null value being displayed after "ENROLLED IN:" ??
I used this code to fix it.
private String courses = "";
@@ilikeprogramming9101 Thanks a million man wow can't believe how annoying that display error was!!
@@ilikeprogramming9101 Thanks a ton!
@@ilikeprogramming9101 thank you!
does anyone know what concept did he use from the OOP 4 concepts?
Sir I do had a a similar scenario on e-commerce can u be able to help me with that.
ruclips.net/p/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2
isn't this incomplete though? I wanted to see an admin adding or editing the courses
ruclips.net/p/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2
sir do you have javafx code for the same student management app?
In class Student, line 56 can be more consistent using while (true);
The last line, System.out.println(students[n].toString()); just prints out something like "studentDatabaseApp.Student@378bf509". I used students[n].showInfo(); to show the added students instead
I found out it would have also worked using @Override.
@@honii_0045 do you have source code for this project? if yes please let me know! thanks
sir software is ready i needed software for school purpose by seeing this video actually i am not getting what features are there because i am not a developer so if software is ready then tell sir i will pay for that if any help needed then i will do if it is incomplete
Can you use inheritance in this project
What is the front end and backend for this project
hi, how to break, or close the program if the user enters the wrong index, and then they decide to leave with 3 instead of 5?
add switch statements.
by the way, this is a video on udemy that was uploaded here ofr free by one on the subcribers. We saved $20+
sorted meself haha
course link?
I am confused. I do not know what to do?
Can you make with database Connectivity?
here is code from my github
github.com/kingc-creator/studentdatabasesystem
package studentdatabaseapp;
import java.util.Scanner;
public class Student {
private String firstname;
private String lastname;
private int gradeYear;
private String studentID;
private String courses = "";
private int numberOfCourses;
private int tuitionBalance = 0;
private static int costOfCourse = 600;
private static int id = 1000;
//constructor takes student name and year
public Student(Scanner scanner) {
//Scanner scanner = new Scanner(System.in);
setStudentDetails(scanner);
enrollCourse();
payTuition(scanner);
System.out.println(showInfo());
System.out.println();
System.out.println();
//scanner.close();
}
private void setStudentDetails(Scanner scanner) {
System.out.print("Enter First name: ");
this.firstname = scanner.next();
System.out.print("Enter last name: ");
this.lastname = scanner.next();
System.out.println();
System.out.print("1. Freshmen
2. Sophmore
3. Junior
4. Senior
Enter the grade year for " + this.firstname + ":");
this.gradeYear = scanner.nextInt();
//sets student ID
setStudentID();
System.out.println();
}
//creates unique ID - first being grade level
private void setStudentID() {
Student.id++;
this.studentID = this.gradeYear + "" + Student.id;
}
//Enrol courses
private void enrollCourse() {
//Inside a loop until user hits Q or q
Scanner scanner = new Scanner(System.in);
while(1!=0){
System.out.print("Enter the course that you wanna study(Q to quit): ");
String c = scanner.nextLine();
if(!(c.equals("Q") || c.equals("q"))) {
this.courses = courses + "
" + c;
this.tuitionBalance += Student.costOfCourse;
this.numberOfCourses += 1;
}else {
break;
}
}
//scanner.close();
System.out.println();
System.out.println(
"Total course amount = " + this.numberOfCourses + " x £" + Student.costOfCourse + " = £" + this.tuitionBalance);
}
//view balance
private void viewBalance() {
System.out.println("Your tuition balance: £" + this.tuitionBalance);
}
//pay tuition
private void payTuition(Scanner scanner) {
viewBalance();
System.out.print("Please Enter the amount you wanna pay today: £");
int payment = scanner.nextInt();
this.tuitionBalance = this.tuitionBalance - payment;
System.out.println();
System.out.println("-----------------------------------------");
System.out.println("Thank you for the payment of £" + payment);
viewBalance();
System.out.println("-----------------------------------------");
}
//show status of the student
//must include name, ID, courses enrolled, balance
private String showInfo() {
return("Name: " + this.firstname + " " + this.lastname +
"
StudentID: " + this.studentID +
"
Year Level: "+ this.gradeYear +
"
Courses Enrolled: " + this.courses +
"
Balance: £" + this.tuitionBalance);
}
}
Tysm
@@zutick.768 your welcome!
do you have forms in your project?
can someone explain how and where the oops concepts are being applied?
It's more of the last part, where an array of objects was created. It's basically all about efficiency. Instead of creating several objects, we can go through a for loop and just create an array.
@@samybarakat9853 thank you. someone mentioned abstract class and I didn't see that also when it comes to main oops concept, i was not seeing like polymorphism or inheritance or even an encapsulation other than some privatization.
is this console based? Can someone please tell me about it
Did you even bother watching this?
timecode 31:26
Anyone with the source code of this program?
Can you provide the code ?
Please provide source code sir ?
Anyone managed to get rid of null? I had no luck
I also tried and searching in comments for better solution.
private String courses = "";
Use "" (two quotation marks with no space) instead of null.
i love you baby
Can you give me this code
Can I get the source code?
This is a simple program u know, even a school kid can do such program, it’s another thing to do it with GUI, that would be dope !
give the link of source code bro
Plz shre source code
Does it work on NetBeans?
Why cant be?
of course, NetBeans, Eclipse, IntelJ...etc are just an IDE(like a text editor but provides functions to make you coding easier and clearer)
Source code: github.com/attrayadas/Student-Management-System
Please leave a star if you find it helpful :)
sir can you share the code ????