Skip to content

24f2000445/24f2000445_git_challenge_lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ 24f2000445_git_challenge_lab

Arithmetic Operations Menu Program


๐Ÿ“– Description

This is a menu-driven Python application that allows users to perform basic arithmetic operations through an interactive command-line interface. The program is designed for simplicity and efficiency, continuing to run until the user explicitly chooses to exit.


โœจ Features

The application supports the following operations:

  • โž• Addition โ€“ Adds two numbers.
  • โž– Difference โ€“ Calculates the difference between two numbers.
  • โœ–๏ธ Product โ€“ Multiplies two numbers.
  • ๐Ÿšช Exit โ€“ Ends the program execution.

Note: Each operation is implemented using a separate function to ensure code readability and modular structure.


โš™๏ธ How the Program Works

  1. Display Menu: A menu is displayed to the user upon launch.
  2. User Input: The user selects an option by entering a number from 1 to 4.
  3. Execution: Based on the selection, the corresponding arithmetic operation is performed.
  4. Looping: The program repeats automatically until the user selects the exit option.

๐Ÿ“‚ File Structure

.
โ”œโ”€โ”€ main.py      # Core logic and menu interface
โ””โ”€โ”€ README.md    # Project documentation

๐Ÿš€ How to Run the Program

  1. Prerequisites: Ensure Python is installed on your system.
  2. Terminal: Open a terminal, command prompt, or Git Bash.
  3. Navigate: Move to the directory containing main.py.
  4. Run: Execute the program using:
python main.py

๐Ÿ–ฅ๏ธ Sample Output

--- Welcome to Arithmetic Operations Menu ---
--Please select your choice--
1. Addition
2. Difference
3. Product
4. Exit
Enter your choice (1-4): 


๐Ÿ› ๏ธ Tech Stack

  • Programming Language: ๐Ÿ Python
  • Execution Environment: ๐Ÿ–ฅ๏ธ Git Bash

๐Ÿ‘ค Author

  • Name: Arpita Keshari
  • Program: ๐ŸŽ“ IIT Madras BS Degree
  • Purpose: ๐Ÿ“š Academic / Workshop Assignment

About

Arithmetic Operations

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages