0% found this document useful (0 votes)
4 views4 pages

Student Gradebook and Inventory Systems

The document outlines various programming projects including a student gradebook system using HashMap and ArrayList, a library book tracker with LinkedList and HashSet, an invoice generator for currency and date formatting, and an employee record system utilizing serialization. Additional projects include an inventory management system, social media analytics, a random access log editor, a chat logger with piped streams, and a log analyzer using streams and regex for server logs. Each project includes problem statements, input/output formats, and sample inputs/outputs.

Uploaded by

skdhakhil9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Student Gradebook and Inventory Systems

The document outlines various programming projects including a student gradebook system using HashMap and ArrayList, a library book tracker with LinkedList and HashSet, an invoice generator for currency and date formatting, and an employee record system utilizing serialization. Additional projects include an inventory management system, social media analytics, a random access log editor, a chat logger with piped streams, and a log analyzer using streams and regex for server logs. Each project includes problem statements, input/output formats, and sample inputs/outputs.

Uploaded by

skdhakhil9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Student Gradebook using HashMap and ArrayList


Problem Statement:
Create a gradebook system using HashMap where each student name maps
to a list of their
marks stored in an ArrayList. Include features to add students, add marks,
calculate averages,
and display details.
Input Format:
First line: Number of students
For each student: Name and number of marks
Then enter all marks
Output Format:
Display each student’s name, marks, and average
Sample Input:
2
Alice 3
85 90 78
Bob 2
70 75
Sample Output:
Student: Alice
Marks: [85, 90, 78]
Average: 84.33
Student: Bob
Marks: [70, 75]
Average: 72.50

[Link] Book Tracker using LinkedList and HashSet


Problem Statement:
Simulate a book issue system using LinkedList and HashSet to avoid issuing
the same book more
than once.
Input Format:
Book names to issue, ending with "END"
Then return first issued book
Then display issued list
Output Format:
List of books issued (before and after return)
Sample Input:
Java
Python
C++
Python
END
Sample Output:
Issued Books: [Java, Python, C++]
Returned: Java
Updated Issued Books: [Python, C++]

[Link] and Date Formatter for Invoice System


Problem Statement:
Create an invoice generator that formats price and date for display based on
locale using
NumberFormat and SimpleDateFormat.
Input Format:
Product name, quantity, unit price
Output Format:
Invoice with current date and properly formatted currency
Sample Input:
Product: Pen
Quantity: 10
Unit Price: 12.5
Sample Output:
Invoice Generated:
Product: Pen
Quantity: 10
Unit Price: ₹12.50
Total: ₹125.00
Date: 16 July 2025

[Link] Record System using Serialization


Problem Statement:
Create an employee record system that allows adding employee details and
serializes them to a
file. Deserialize to display all saved employee records.
Input Format:
Employee ID, Name, Salary (repeatable)
Command to serialize
Command to deserialize and view records
Output Format:
Confirmation of serialization
All employee records printed after deserialization
Sample Input:
Add Employee:
101 John 50000
102 Alice 60000
Serialize
Deserialize
Sample Output:
Employee records saved successfully.
Employee records loaded:
ID: 101, Name: John, Salary: 50000.0
ID: 102, Name: Alice, Salary: 60000.0

[Link] Management System:


Description: Implement a system to manage inventory items with
attributes such as name,
category, quantity, and price. Use streams to perform operations
like sorting items by category,
calculating total inventory value, finding items with low stock
(quantity below a threshold), and
generating alerts.
Key Concepts: Sorting, filtering, mapping inventory items,
reducing operations, and
handling data aggregation and reporting.

6. Social Media Analytics:


Description: Create a program that processes social media posts or
comments. Use streams
to analyze post data, such as counting the occurrences of specific
keywords, identifying
trending topics, calculating engagement metrics (likes, shares,
comments), and generating
analytics reports.
Key Concepts: Filtering based on text content, mapping post
attributes, counting
occurrences, and summarizing analytics using collectors.

7 Random Access Log Editor


Description:
Develop a tool using RandomAccessFile to directly modify or insert
data into a log file
without rewriting the whole file.
Key Concepts:
Use of seek(), readLine(), writeBytes() in RandomAccessFile
Byte-level file manipulation
Features:
Jump to a specific log entry and update its content
Append new entries at end
Backup original file before editing

8 Chat Logger using Piped Streams


Description:
Create a simulation of a simple chat system where one thread sends
messages and
another receives them using PipedInputStream and
PipedOutputStream.
Key Concepts:
Thread communication via streams
Inter-thread I/O using PipedInputStream & PipedOutputStream
Features:
Sender thread takes input and writes to pipe
Receiver thread reads and displays message
Handles termination gracefully with keyword like "exit"

9 Log Analyzer with Streams and Regex


Description:
Build a tool to analyze server log files.
Requirements:
Read a log file with entries like:
[2025-09-26 10:30:22] ERROR User: Alice Action: FILE_UPLOAD_FAILED
[2025-09-26 10:35:10] INFO User: Bob Action: LOGIN
•Use Regex Groups to extract: timestamp, log level, user, action.
•Use Streamsto:
•Count the number of ERROR, INFO, DEBUG logs.
•Find the most frequent user actions.
•Filter logs within a specific date range.
•Use .peek() to debug the stream pipeline.
•Export summary to a report (text file).

You might also like