Skip to content

mayankkushwaha24082006/Java-Assignment-02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Java-Assignment-02

๐Ÿงฎ Project on Calculator Application using Method Overloading

A simple Calculator Application written in Java that allows users to perform basic arithmetic operations such as Addition, Subtraction, Multiplication, and Division.
This project demonstrates the use of Java OOP concepts like Method Overloading, Polymorphism, Exception Handling, along with control structures and user input handling using the Scanner class.

๐Ÿ“Œ Features

  • โœ… Perform Addition, Subtraction, Multiplication, and Division
  • ๐Ÿ” Method Overloading for different parameter types:
    • Add two integers
    • Add two doubles
    • Add three integers
  • โš ๏ธ Handles division by zero with proper exception handling
  • ๐Ÿงญ Interactive menu-driven interface
  • ๐Ÿงฑ Clear, modular code structure โ€” great for learning core OOP concepts in Java

๐Ÿ› ๏ธ Tech Stack

  • Language : Java
  • IDE : VS Code

๐Ÿ“š Concepts Used

  • โœ… Object-Oriented Programming (OOP)
  • โœ… Method Overloading (compile-time Polymorphism)
  • โœ… Exception Handling (try-catch)
  • โœ… Control Structures (Loops, switch-case)
  • โœ… Scanner for reading user input

๐Ÿ“ธ Demo (Sample Run)

Welcome to the Calculator Application!

  1. Add Numbers
  2. Subtract Numbers
  3. Multiply Numbers
  4. Divide Numbers
  5. Exit

Enter your choice: 1

Choose Addition Type:

  1. Two Integers
  2. Two Doubles
  3. Three Integers

Enter your choice: 1

Enter first integer: 10

Enter second integer: 20

Result: 30

About

Project on Calculator Application Using Method Overloading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages