Coder Social home page Coder Social logo

chetannihith / java-hacktoberfest23 Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 67.0 287 KB

Fork this repository to contribute your java programs. If you like this repo give it a star ⭐️. Happy hacking!!

Home Page: https://github.com/chetannihith/Java-hack

C++ 15.38% Java 83.82% Python 0.63% JavaScript 0.13% CSS 0.05%
hacktoberfest hacktoberfest-accepted hacktoberfest2023

java-hacktoberfest23's Introduction

Java-hack

Fork this repository to contribute your java programs. If you like this repo give it a star ⭐️. Happy hacking!!

java-hacktoberfest23's People

Contributors

aayush105 avatar abhi07aryan avatar abhinavs1920 avatar adriagual avatar akash722 avatar amaan-p avatar artihere avatar avadhut-shedage avatar bhairavibhuyar avatar charan-s108 avatar chetannihith avatar deepanshubarve avatar gulatikeshav avatar hydraveer avatar king1484 avatar knockcat avatar koustav2001 avatar kushal-lalwani avatar milishparsai007 avatar naybyal avatar oshada2002 avatar prakharr5 avatar sachin10fi avatar shivani-001 avatar shrutikak2911 avatar siddhant2002 avatar simplyaditya avatar sunilkumar-k avatar tishachhabra avatar yashbajpaigithub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

java-hacktoberfest23's Issues

Solve Question 2

Write a class Account which should have a private instance variable called balance. Create gettter and setter methods for balance variable. Also write two methods
with the following signature –
void deposit(int amt)
void withdraw(int amt)

withdraw method should give a message insufficient amount if the amount you are trying to withdraw is more than current balance otherwise balance need to be reduced
by the amount withdrawn.

Create another class TestAccount and write down main method there. Create an object of Account class. Start the account with Rs 2000. Add Rs 500 and withdraw Rs 1800. Then show the balance.

Overloading 1.0

  • Create a class 'Student' with three data members which are roll, name, marks and address. The constructor of the class assigns default values roll as "not assigned", name as "unknown", marks as '0' and address as "not available". It has three methods with the same name 'getData'. First method has two parameters for name and roll and assigns the same whereas the second method has four parameters which are assigned to name, roll, marks and address respectively. Defined another method to print the student details. create three objects and print the details of these student Objects.

  • Implement the above program using Constructor Overloading.

Add CONTRIBUTING.md file

This files describe how to fork , clone, create branch, commit message, and push to the repository which is followed inorder to get their PRs merged.

Solve question 3.4

Create a class named 'School' with the following data members

1 –Roll no of Student
2 –Name of Student
3 - Address
4 -Branch
5- Marks in 4 subjects
6- Percentage

7- Grade

Class 'School' has a method for the following

The program will support the following menu based activities: do the following operations:
Number of students are to be entered by user. Depending upon the number of students, enter the information (name, address, type of account, balance) for each student.

Q. Print the information of a particular student.

Terminal/console based project on Task Manager and Remainder System.

This project should completely run in terminal and should be purely programmed with Java.

Your program needs to solve two important needs of this project, they are:

  • Task Manager: The program should take input from the user to create tasks, view tasks, mark task as completed and exit.
  • Task Remainder: Should contain remainder system. When a task doesn't get completed it should display "Task is due!" without any actions done by the user.

You can customize your project in whichever way you want. Don't forget to solve the two important needs.

Thank You.

Solve question 3.2

Create a class named 'School' with the following data members

1 –Roll no of Student
2 –Name of Student
3 - Address
4 -Branch
5- Marks in 4 subjects
6- Percentage

7- Grade

Class 'School' has a method for the following

a. Calculate the percentage

b. Calculate the grade as per the following conditions

  •   for percentage >=85, “A grade”
    
  •   for percentage >=75,  “B grade”
    
  •   for percentage >=60,  “C grade”
    
  •   for percentage >=45,  “D grade”
    
  •   for percentage <45,  “Fail”
    

Constructor Overloading

Create a class to print the area of a square and a rectangle. Use methods to assign the values and print the details. Implement the program using a constructor for initializing the values. (Use constructor overloading)

Solve Question 3.5

Create a class named 'School' with the following data members

1 –Roll no of Student
2 –Name of Student
3 - Address
4 -Branch
5- Marks in 4 subjects
6- Percentage

7- Grade

Class 'School' has a method for the following

The program will support the following menu based activities: do the following operations:
Number of students are to be entered by user. Depending upon the number of students, enter the information (name, address, type of account, balance) for each student.

Q. Remove a particular student who has left the school and display the information of rest of the students

Solve question 3.3

Create a class named 'School' with the following data members

1 –Roll no of Student
2 –Name of Student
3 - Address
4 -Branch
5- Marks in 4 subjects
6- Percentage

7- Grade

Class 'School' has a method for the following

The program will support the following menu based activities: do the following operations

Q1. Number of students are to be entered by user. Depending upon the number of students, enter the information (name, address, type of account, balance) for each student.

Q2. Print the information of all the students

Solve Question 1

Create a class called Calculator which has different add methods. Overload the methods such that the parameters can be of the following pattern.

a) Both are of int data type.
b) Both are of double data type.
c) First parameter is of int data type and second parameter is of double data type.
d)First parameter is of double data type and second parameter is of int data type

Create a separate class for implementation of above methods.

Solve question 3.2

Create a class named 'School' with the following data members

1 –Roll no of Student
2 –Name of Student
3 - Address
4 -Branch
5- Marks in 4 subjects
6- Percentage

7- Grade

Class 'School' has a method for the following

Display information of Student

Solve Question 3.1

Create a class named 'School' with the following data members

1 –Roll no of Student
2 –Name of Student
3 - Address
4 -Branch
5- Marks in 4 subjects
6- Percentage

7- Grade

Class 'School' has a method for the following

Generate a unique rollno for each student. For first Student, roll number will be ABC1012019, for second student it will be ABC1022019 and so on.

Understanding Types of Inheritance in Java

Description:

This GitHub issue is aimed at providing a comprehensive explanation and examples of the various types of inheritance in Java. Inheritance is a fundamental concept in object-oriented programming that allows one class (subclass) to inherit attributes and methods from another class (superclass). There are several types of inheritance, each with its own unique

  1. Single Inheritance: In this type, a subclass inherits from only one superclass. This is the simplest form of inheritance.

  2. Multilevel Inheritance: In this type, a subclass inherits from a superclass, and another class inherits from this subclass. This creates a hierarchy of classes.

  3. Hierarchical Inheritance: In this type, multiple subclasses inherit from the same superclass. This allows for the creation of specialized classes with shared attributes and methods.

  4. Multiple Inheritance (through Interfaces): While Java does not support multiple inheritance of classes, it does allow a class to implement multiple interfaces. This allows a class to inherit method signatures from multiple sources.

  5. Hybrid (Combination of any two types of inheritance): Java allows for combinations of the above types, such as a mix of single and multiple inheritance.

The goal of this issue is to create a detailed explanation for each type of inheritance, along with clear and concise code examples. Contributors are encouraged to provide well-commented code snippets and explanations to help readers grasp the concepts effectively.

Contribution Guidelines:

  • Please make sure to follow proper code formatting conventions (e.g., indentation, naming conventions).
  • Provide detailed comments to explain the code logic.
  • Ensure that the examples are clear and easy to understand for learners of various levels.

If you wanna assign to me, I can work on it otherwise you can assign it to someone else.

Repository Structuring in proper format

This issue is raised to address the formatting and code structure concerns within the repository. The current organization of files and code is not following best practices, which can make it challenging for contributors and users to navigate and utilize the content effectively.

To improve the repository, we should consider the following actions:

  1. Define Clear Structure: We need to define a clear and consistent structure for the repository. This includes organizing code according to the programming language.

  2. Standardize File and Folder Names: Standardize the naming conventions for files and folders to make them more descriptive and easier to understand.

  3. Remove Unnecessary Files: Identify and remove irrelevant files like .DS_Store and .gitgnore. Keep the repository clean and free from clutter.

By addressing these issues, we can enhance the overall quality and usability of the repository. Please feel free to share your thoughts and suggestions on how we can achieve these improvements effectively. Your input is valuable in making this repository more accessible and user-friendly for all.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.