MSH's Projects
Write a program in C++ that will print out the result: Hello, World!
simple program to show the usage of pointers in a C++ program
a simple program to print out the value of a variable
codespaces
Repository for Java Programs
An easy example of using one of three tools of connection among classes
Write a Java program that does the following: Creates an ArrayList of integers. Adds 5 integers to the ArrayList. Prints the elements of the ArrayList. Removes the second element from the ArrayList. Prints the elements of the ArrayList again.
Java program showing sorting., removing, finding index and checking object in index of elements in an arraylist.
A banking program where we ask Customers for their names and balances. Then we sort the balances in different orders.
A great example looking for concepts of classes and objects, loops, private variables, etc.
a game fo dice with 3 players rolling dice twice. there is a condition that if they roll the same number, they will have another dice rolling. the 1st is the one who scores +15.
A simple game to adopt a pet and decide to feed or play with it. have fun playing the game!
a Java code that asks the user to enter the radius r of a sphere, reads it, and calculate the volume and area of the sphere as follows: š“ššš=4šš^2 and šššš¢šš=4/3 * šš ^ 3
A prgram using JFrame graphics in order to manage a book store in the app Amazon so we can add books details (title, author , and price) and display them all along with showing the total price of the books.
Write a driver class which hard-codes employee data into an array of objects. This program will then display in the order of increased salaries the names of the employees with salaries between $40,000 and $60,000.
A program of bank accounts showing the topics of overloaded constructors, Static variables,
A practical example of inheritance with 2 derived classes. Paperback and Hardcopy.
A program showing how we can use Composition instead of Inheritance.
A driver class hard coding employee data into an array of objects. then the program will display in the order of increased salaries the names of the employees with salaries between 40k and 60k.
A program with a list of 100 employees with the user entering each one's name, age, salary. then typing the list of them. also, putting people with 40k to 60k salary in another extra list.
A program demonstrating a student with their name, ID number, year of study, major , and fees based on their courseload with the consideration of the year of their study.
A program using inheritance for students and Undergrad-Phd students. a good practice to see different functions we can use in each class.
A program using the concept of inheritance to make distinctive output for different students of a university based on detailed information.
An interesting program showing the override of a method in the derived class from it's base class using the super reference.
A program demonstrating the use of Super class and Method in inheritance and how i would affect in calling other classes! this exercise is good for tracing and finding the output!
JavaScript concept of going to random webpages