0% found this document useful (0 votes)
8 views14 pages

Java Final

The document presents a mini project titled 'Feedback Collection System' developed by students at Sethu Institute of Technology, focusing on user feedback management using Java. It details the project's objectives, design, implementation, and functionalities, including user feedback submission and admin review capabilities. The project emphasizes file handling, basic authentication, and future enhancements like a GUI version and web integration.

Uploaded by

Turgid gaming
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)
8 views14 pages

Java Final

The document presents a mini project titled 'Feedback Collection System' developed by students at Sethu Institute of Technology, focusing on user feedback management using Java. It details the project's objectives, design, implementation, and functionalities, including user feedback submission and admin review capabilities. The project emphasizes file handling, basic authentication, and future enhancements like a GUI version and web integration.

Uploaded by

Turgid gaming
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

SETHU INSTITUTE OF TECHNOLOGY

(An Autonomous Institution | Accredited with „A++‟ Grade

by NAAC) PULLOOR, KARIAPATTI-626115

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

B.E COMPUTER SCIENCE & ENGINEERING

R21UIT404 – JAVA PROGRAMMING

MINi PROJECT done by

JOSHVA PATRICK 921723102062


T
Kishore kumar V 921723102073
Lokesh Kumar A 921723102076

1
SETHU INSTITUTE OF TECHNOLOGY
(An Autonomous Institution | Accredited with „A‟
Grade by N PULLOOR, KARIAPATTI-626
115.
ANNA UNIVERSITY: CHENNAI 600 025.

BONAFIDE CERTIFICATE

Certified that this Mini project report entitled


“Feedback Collection System” is the bonafide work of
“Joshva Patrick T, Kishore Kumar V,Lokesh Kumar A”
who carried out
the Mini project work under my supervision.

SIGNATURE SIGNATURE

Dr. M. PARVATHY Mrs.K.PRIYADHARSINI

HEAD OF THE ASSISTANT PROFESSOR/CSE


DEPARTMENT/CSE

2
 To promote excellence in technical education
Institute and scientific research for the benefit of the
Vision society

 To provide quality technical education to


Institute fulfill the aspiration of the student and to
Mission meet the needs of the Industry
 To provide holistic learning ambience
 To impart skills leading to employability
and entrepreneurship
 To establish effective linkage with industries
 To promote Research and
Development activities
 To offer services for the development of
society through education and
technology
Core Values
 Quality
 Commitment
 Innovation
 Team work
 Courtesy

B.E. COMPUTER
PROGRAMME
SCIENCE AND
ENGINEERING

To achieve excellence in technical education


Departme and scientific research in the field of computer
nt Vision science and engineering to contribute to the
society.
(CSE)
Transforming students into technocrats in
Departme computer technology confirming the industry
nt Mission expectation.
(CSE) Imparting holistic learner centric environment.

Cultivating comprehensive

personality
development of students leading to
3
innovators, leaders and entrepreneurs
Establishing collaboration with the industries
for mutual benefits
Promoting Research activities among the
students and the faculty to solve problems
related to industry and society.
Offering computer applications life skill to
society for better living.

PROGRAMME EDUCATIONAL OBJECTIVES

Graduates will Practice as Competent Computer Engineers by


PEO – I exhibiting the state of the art technical skills to cater to the
needs
of the industries.
Graduates will lead the team and function in a team of multi-
cultural professionals with effective interpersonal skills.
PEO – II

PEO – III Graduates will hone their professional expertise by engaged


in research and sustained learning activities.

PROGRAMME SPECIFIC OUTCOMES

Engineering graduates will demonstrate individual expertise in


PSO – I various programming languages to develop applications for
static,
internet, and mobile domains.
Engineering graduates will demonstrate the knowledge of
analyzing, planning, and constructing databases, ability to
PSO – II extract information using queries, and skills to develop
programming
interfaces to synthesis databases.

PROGRAMME OUTCOMES
Apply the knowledge of mathematics, science, engineering
4
PO 1 fundamentals, and an engineering specialization to the solution of
complex engineering
problems. (Engineering knowledge)

PO 2 Identify, formulate, review research literature, and analyze complex


engineering problems reaching substantiated conclusions using first
principles of mathematics, natural sciences, and engineering
sciences.
(Problem Analysis)
PO 3 Design solutions for complex engineering problems and design system
components or processes that meet the specified needs with
appropriate consideration for the public health and safety, and the
cultural, societal, and environmental considerations. (Design and
Development of Solutions)

PO 4 Use research-based knowledge and research methods including design


of experiments, analysis and interpretation of data, and synthesis of
the information to provide valid conclusions. (Investigation of
Complex Problems)

PO 5 Create, select, and apply appropriate techniques, resources, and


modern engineering and IT tools including prediction and modeling to
complex engineering activities with an understanding of the
limitations. (Modern Engineering Tools)

PO 6 Apply reasoning informed by the contextual knowledge to assess


societal, health, safety, legal and cultural issues and the consequent
responsibilities relevant to the professional engineering
practice.
(Engineer and Society)
PO 7 Understand the impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate the knowledge
of, and need for sustainable development. (Environment and
Sustainability)

PO 8 Apply ethical principles and commit to professional ethics


and responsibilities and norms of the engineering practice.
(Ethics)
PO 9 Function effectively as an individual, and as a member or leader in
diverse teams, and in multidisciplinary settings. (Individual and
Team Work)

PO 10 Communicate effectively on complex engineering activities with the


engineering community and with society at large, such as, being able
to comprehend and write effective reports and design documentation,
make effective presentations, and give and receive clear
instructions.
(Communication)

5
PO 11 Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s own work, as a
member and leader in a team, to manage projects and in
multidisciplinary environments. (Project Management and
Finance)
PO 12 Recognize the need for, and have the preparation and ability to
engage in independent and life-long learning in
the broadest context of
technological change. (Life-long learning)

6
Table of Contents
S.No: Contents Page No.
1. Abstract 6
2. Requirements 7
3. Design and Implementation 7
a) Data Structure Choice
b) Function Definitions
c) Program Flow
4. Code Explanation 8
5. Testing 10
6. Output 10
7. Conclusion 11
8. Future Enhancements 11
9. References 11

7
Feedback Collection System Using Java

1. Abstract:
In the era of digital transformation, collecting and
managing user feedback is essential for continuous
improvement and user satisfaction. This project
demonstrates a console-based Java Feedback
Collection System, where users can submit their
feedback, and an admin can review all submitted
feedbacks.
It showcases the use of Java file handling, user input,
simple authentication, and time stamping, making it a
great mini-project for Java beginners. The system is
intuitive and emphasizes data organization, security
(basic authentication), and persistent storage via text
files.

2. Requirements:
Hardware Requirements:
 Any device that supports Java (PC/Laptop).
Software Requirements:
1. Java Development Kit (JDK)
2. Java IDE or Command Line (e.g., IntelliJ, VS Code, or
terminal)
3. A text editor (Notepad/Notepad++) to view the
feedback.txt file.

4.Code:
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
8
public class FeedbackSystem {
private static final String FILE_NAME =
"feedback.txt";
private static final String ADMIN_PASSWORD =
"admin123";

public static void main(String[] args) {


Scanner scanner = new Scanner(System.in);

while (true) {
System.out.println("\nFeedback Collection
System");
System.out.println("1. Submit Feedback");
System.out.println("2. View Feedback
(Admin)");
System.out.println("3. Exit");
System.out.print("Choose an option: ");
int choice = scanner.nextInt();
scanner.nextLine(); // Consume newline

switch (choice) {
case 1:
submitFeedback(scanner);
break;
case 2:
if (authenticateAdmin(scanner)) {
9
viewFeedback();
} else {
System.out.println("Authentication
failed! Access denied.");
}
break;
case 3:
System.out.println("Exiting... Thank
you!");
scanner.close();
return;
default:
System.out.println("Invalid option! Try
again.");
}
}
}

private static void submitFeedback(Scanner


scanner) {
try (FileWriter writer = new FileWriter(FILE_NAME,
true)) {
System.out.print("Enter your name: ");
String name = scanner.nextLine();
System.out.print("Enter your feedback: ");
String feedback = scanner.nextLine();

10
String timestamp = new
SimpleDateFormat("yyyy-MM-dd
HH:mm:ss").format(new Date());
writer.write("Timestamp: " + timestamp + "\
nName: " + name + "\nFeedback: " + feedback + "\
n----------------\n");
System.out.println("Thank you for your
feedback!");
} catch (IOException e) {
System.out.println("Error saving feedback: " +
e.getMessage());
}
}

private static void viewFeedback() {


File file = new File(FILE_NAME);
if (!file.exists()) {
System.out.println("No feedback available
yet.");
return;
}

try (BufferedReader reader = new


BufferedReader(new FileReader(FILE_NAME))) {
String line;
System.out.println("\n--- Feedback Records
---");
while ((line = reader.readLine()) != null) {
System.out.println(line);
}
11
} catch (IOException e) {
System.out.println("Error reading feedback: " +
e.getMessage());
}
}

private static boolean authenticateAdmin(Scanner


scanner) {
System.out.print("Enter admin password: ");
String password = scanner.nextLine();
return ADMIN_PASSWORD.equals(password);
}
}

4. Design and Implementation:


The system is built using core Java principles and file
handling. Here's how it functions:
Modules:
 Submit Feedback: Accepts user name and feedback,
saves to a text file with a timestamp.
 View Feedback (Admin): Only accessible through a
password, reads and displays feedback from the file.
 Exit: Exits the application.
Component Breakdown:
 Scanner: To take input from the user.
 FileWriter: Appends feedback to feedback.txt.
 BufferedReader: Reads and displays stored feedback.
 SimpleDateFormat: Formats timestamp for feedback
entries.
12
5. Output:
Console Output:
Below are screenshots from the system in action:

User Feedback Submission & Admin View

Multiple Feedback Entries & Admin View

13
6. Conclusion:
The Feedback Collection System is a simple yet
practical Java application that collects and stores user
feedback securely. This project demonstrates:
 File operations
 Time-stamping
 Basic admin authentication
 User-friendly CLI interface
It is a great starting point for learners to understand
file-based data management in Java.

7. Future Enhancements:
1. GUI version using JavaFX or Swing.
2. Email notification to admin on new feedback.
3. Web-based integration using JSP/Servlets.
4. Feedback rating (1–5 scale) and analytics.
5. Encryption of admin password and feedback file.

8. References:
 Java File I/O - Oracle Docs
 Java Scanner Class
 SimpleDateFormat in Java

14

You might also like