Skip to content

This repo contains two Java projects: one processes a text file, converting lowercase vowels to uppercase and saving the result to a new file; the other is a payroll system using OOP to manage employees and calculate salaries with bonuses based on employee type.

Notifications You must be signed in to change notification settings

2311-ops/Java-Assignments-CSCI-217

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 1: File Processing and Character Transformation This Java program reads a user-specified text file, processes its characters, and generates a modified version of the file:

Lowercase vowels (a, e, i, o, u) are converted to uppercase.

All other characters remain unchanged.

The processed content is written to a new file named processed_file.txt.

🛠 Features: Reads and writes files using buffered streams.

Handles exceptions (FileNotFound, IO issues).

Uses StringBuilder for efficient string manipulation.

Outputs both the original and processed content. Project 2: Employment System and Payroll Management A full-featured object-oriented payroll system that simulates three types of employees and calculates their payments including bonuses:

Permanent Employees receive a 10% salary bonus.

Contract Employees receive a 5% salary bonus.

Interns receive a 2% salary bonus.

The system supports adding/removing employees and calculating total payroll via a PayrollSystem class that implements a Payable interface.

🛠 Features: Abstract class Employee with subclasses:

PermanentEmployee

ContractEmployee

Intern

Bonus logic is handled via method overriding.

PayrollSystem uses a List to manage employees.

Methods to:

Add and remove employees

Calculate total salary + bonus

Display employee info

A Test class demonstrates full functionality.

About

This repo contains two Java projects: one processes a text file, converting lowercase vowels to uppercase and saving the result to a new file; the other is a payroll system using OOP to manage employees and calculate salaries with bonuses based on employee type.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages