https://github.com/prathmeshsoni/placementtraining
Repository showcasing Java training exercises highlighting core programming concepts.
https://github.com/prathmeshsoni/placementtraining
Last synced: about 1 year ago
JSON representation
Repository showcasing Java training exercises highlighting core programming concepts.
- Host: GitHub
- URL: https://github.com/prathmeshsoni/placementtraining
- Owner: prathmeshsoni
- Created: 2024-07-18T06:13:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T17:04:14.000Z (about 2 years ago)
- Last Synced: 2025-03-01T00:24:41.020Z (over 1 year ago)
- Language: Java
- Homepage: https://prathmeshsoni.tech/PlacementTraining/
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Placement Training Programs
This repository contains a series of Java programs organized into training modules to demonstrate basic programming concepts, including arithmetic operations, conditional statements, loops, and object-oriented programming concepts such as class definitions, methods, and user input handling.
## File Structure
```
Training Day 1
- If-Else-If.java
- Loops.java
- Division.java
Training Day 2
- Supply.java
- Main.java
```
## Overview
### Training Day 1
#### If-Else-If
A program that takes user input for marks and prints the corresponding grade based on the specified ranges using if-else-if statements.
#### Loops
A program that prints even numbers from 1 to 30 using a while loop and odd numbers from 1 to 30 using a do-while loop.
#### Division
A program that performs a division operation between two integers and prints the result as a floating-point number.
### Training Day 2
#### Supply
The `Supply` class manages food information by providing methods to input and display details about the food item. It includes:
- `GetType()`: Determines the type of food based on the sticker color.
- `FoodIn()`: Prompts the user to input food details and sets the member variables.
- `FoodOut()`: Displays the food details.
#### Main
The `Main` class serves as the entry point for the program. It creates an instance of the `Supply` class, calls the `FoodIn()` method to input food details, and then calls the `FoodOut()` method to display them.