Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 40 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
# Buffer-5.0
Buffer is a Data Structures and Algorithms Project Series, in which students can participate as mentees in teams of 2-4. Under Buffer 5.0, the themes on which students can create a project are:

1. Public Welfare
2. Tourism
3. College level applications
4. Custom Data structure
# Cummins Connect

This repository is created for all the teams to be able to upload their final project source code. While submitting, note that all the submission guidelines given are followed, and all the files are named appropiately. Also ensure that your README file contains the links of the progress reports and the drive link containing the video of the project.
To develop a solution to the problem of current students lacking effective means to connect with esteemed alumni from our college, hindering access to valuable guidance and opportunities, Cummins Connect is developed using the concepts of data structure and algorithms to improve the students access to alumni of their college. This solution aims to enhance mentorship and networking within our college community.

![Screenshot (741)](https://github.com/Swetathakare/Alumni-Connect/assets/143093330/0d9fae5c-3587-4baa-80b6-e9b731aaf20b)


## Data Structures Used


1. Alumni Database Side: HashMap
--------------------------

Hash maps offer efficient lookup and retrieval times, crucial for managing large sets of alumni data.

2. Alumni Arrangement: Trees (Non-linear)
-------------------

Trees facilitate hierarchical organization, allowing for easy navigation and categorization of alumni based on
various attributes.
![WhatsApp Image 2024-04-30 at 23 11 22_0f65f492](https://github.com/Swetathakare/Alumni-Connect/assets/143093330/1db44c82-f938-4ef7-bf5a-13ad0962597c)


4. Student Database Side: Linked List
----------------
Linked lists provide flexibility for dynamic data manipulation, making them suitable for managing student profiles.

5. Post: Array List
---------------

Arrays offer constant-time access to elements, making them suitable for storing and retrieving posts efficiently.

![WhatsApp Image 2024-04-30 at 23 11 21_fd47c2af](https://github.com/Swetathakare/Alumni-Connect/assets/143093330/24f7ba1b-0e10-459c-857c-db5cf63c766c)


## Drive Links

Drive link to reports - https://drive.google.com/drive/folders/16QytgTrUZU1-pWZAhtDUHEW6Rv-FrNG3


Drive link to video - https://drive.google.com/drive/folders/11TPVyBYEx6EUqWXIUXrv9hcdp7Z_PEts?usp=sharing
111 changes: 111 additions & 0 deletions Team 31 - Cummins Connect/Alumni.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
package buffer;

//import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Alumni {

String name;

String branch;

String passingYear;

String domain;
String password;
String organisation;

ArrayList<String> tags;

String id;
String gmail;
String contact;
ArrayList<Post> posts = new ArrayList<>();

public ArrayList<Post> getPosts() {
return posts;
}

Alumni(String Name, String Branch, String PassingYear, String domain, String organisation, ArrayList<String> Tags,

String Id, String gmail, String contact ,String password) {

//this.posts = new ArrayList<>();

this.name = Name;

this.branch = Branch;

this.passingYear = PassingYear;

this.domain = domain;

this.organisation = organisation;

this.tags = Tags;

this.id = Id;

this.gmail = gmail;

this.contact = contact;

this.password =password;
}


public void displayPost(Post post) {

System.out.println("-------------------------------------");

System.out.println("Post ID: " + post.getId());

System.out.println("Post Title: " + post.getTitle());

System.out.println("Post Date: " + post.getPostDate());

System.out.println("Deadline of Registration: " + post.getDeadlineOfRegistration());

System.out.println("Date of Event: " + post.getDateOfEvent());

System.out.println("Post Description: " + post.getPostDescription());

System.out.println("Tags: " + post.getTags());

System.out.println("-------------------------------------");

}



public void deletePost() {

Scanner input = new Scanner(System.in);

System.out.print("Enter post ID to delete: ");

String postIdToDelete = input.nextLine();

for (int i = 0; i < posts.size(); i++) {

Post post = posts.get(i);

if (post.Id.equals(postIdToDelete)) {

posts.remove(i);

System.out.println("Post deleted successfully!");

return;

}

}

System.out.println("Post not found.");

}

}
Loading