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!
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.
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
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
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
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
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
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.
thank you this is really helping me with my database project
please make more of these, they are invaluable.
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 gave me a clarification of how things works thank you brother.
THIS GUY IS PURE GEM 💎
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 ?
i've completed this project thank you
Thank you, those projects helped me a lot to remember Java (after a long period that I stoped using the language).
th-cam.com/play/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2.html
Great project. I got an excellent idea
Keep this up! its help me understand the logic of OOP in java well.
th-cam.com/play/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2.html
You doing good Job i hope we can see more real life project
Thanks
please upload more java projects.
Thank you for this video, it makes me understand the concept of OOP and I was able to build this project using Kotlin.
th-cam.com/play/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2.html
source code
github.com/mahmoud-abdalmaksoud/Student-manegement-system
great video,please make another one
Love it ----------- Just Awesome ....... Thank you For this ....
thanks a lot. this video saved my life
Awesome tutor thanks a lot
Thank you very much Sir. Completely done with it.
awesome tutorial,looking forward for more real time projects on core java ,plsss upload
Completely done it again after 2 years. Practicing Java once more!
do you have source code ?
@@ManojVerma-mx3vv Yes, I do. Thankfully.
Great stuff, I hope you upload more, thanks
Great Project! Thank you very much for tutoring.
Great
well done job
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.
Awesome video.
I wish my professor wrote project instructions like this.
I hate genius professors. They're always terrible at teaching.
its very help full
Keep Uploading man! Your videos are awesome!
good project
you should come back with new tutorials
This was a great tutorial thank you 🙏
great video thank you man.
Is there a video where you go over the JDBC and the process of building the database.
Hello,thank you for your videos,it really helpful,can you upload more videos about OOP and Data structures project?🥰
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 = "";
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.
Thanks for share your knowleadge!! This is helped me a learning OOP with Java!!
Brabo
th-cam.com/play/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2.html
Awesome upload more dude.....
that's good
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
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
Thanx..
In the middle of a project now. I'll be back!
How was it?
@@phungdaoxuan99 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
does anyone know what concept did he use from the OOP 4 concepts?
Please implement the same in GUI Project
Would love to see this.
sir do you have javafx code for the same student management app?
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!
u r amazing !
Sir I do had a a similar scenario on e-commerce can u be able to help me with that.
th-cam.com/play/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2.html
isn't this incomplete though? I wanted to see an admin adding or editing the courses
th-cam.com/play/PLO5RJJOHj81ajejiLeSiXErEPnoWorjo2.html
Can you use inheritance in this project
In class Student, line 56 can be more consistent using while (true);
What is the front end and backend for this project
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
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.
do you have forms in your project?
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
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!
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.
timecode 31:26
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?
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 !
is this console based? Can someone please tell me about it
Did you even bother watching this?
Anyone with the source code of this program?
sir can you share the code ????
Can I get the source code?
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.
Can you give me this code
Please provide source code sir ?
give the link of source code bro
i love you baby
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)
Plz shre source code
Source code: github.com/attrayadas/Student-Management-System
Please leave a star if you find it helpful :)
Can you provide the code ?