diff --git a/README.md b/README.md index 910ff0f..61ef43b 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,36 @@ -# 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: +# Team Wellness Wizards +# Mental Health Assessment Tool -1. Public Welfare -2. Tourism -3. College level applications -4. Custom Data structure +## Overview +This project is a simple mental health assessment tool designed to provide users with guidance on potential mental health conditions based on their responses to a series of questions. The tool prompts users with questions related to their mental well-being and uses their responses to categorize their potential conditions. It provides suggestions and resources based on the identified condition. -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. +## Features +- Clinic Finder: + - Users input their location of residence. + - The program calculates the nearest mental health clinic based on the provided location. + - Information about the nearest clinic, including name, distance, contact details, and website, is displayed to the user. + +- Mental Health Assessment: + - Users undergo a series of questions related to their mental health symptoms and experiences. + - Each question presents multiple options for the user to choose from. + - Based on the user's responses, the program evaluates potential mental health conditions. + - The assessment provides feedback on potential mental health conditions identified from the user's responses. + +## Implementation +- The program is implemented in Java. +- Array of Objects is used to store the user information.Each element of the array represents a single user, and the object's fields store specific details about that user. +- A series of interconnected nodes represent the questions and options for the mental health assessment.Each node contains a question and a list of options that lead to the next node based on the user's selection.This is implemented with Graph using linkedlist. +- The clinic finder functionality calculates distances between locations and clinics to determine the nearest one using Graph implemented by arrays. +- The mental health assessment functionality employs a decision tree approach to evaluate user responses. + +## Team Members +- Shweta Bagade +- Pradnya Bapat +- Aarya Patil + +## Links: +- video : https://drive.google.com/file/d/1S4ZZ4EY1yuJFEfi8tbj5gMSLDeDpoCAf/view?usp=sharing + +- Report 1 : https://docs.google.com/document/d/1zyozyGBz4Ju9nyZnXSbaxoKkr-Bh3R1O/edit?usp=sharing&ouid=101707835012972035195&rtpof=true&sd=true + +- Report 2 : https://docs.google.com/document/d/1vLmd9FRKg114FZ_8GFwp1NHvShTycNay/edit?usp=sharing&ouid=101707835012972035195&rtpof=true&sd=true diff --git a/bufferproject/Main.java b/bufferproject/Main.java new file mode 100644 index 0000000..146115c --- /dev/null +++ b/bufferproject/Main.java @@ -0,0 +1,279 @@ +package buffer; +import java.util.*; + +class info{ + String name; + int age; + String gender; + String mail; +} + +class Buffer{ + Scanner sc=new Scanner(System.in); + info Buffer[]=new info[10]; + void accept() { + Buffer[0]=new info(); + System.out.println("Enter name of customer"); + Buffer[0].name=sc.next(); + System.out.println("Enter age of customer"); + Buffer[0].age=sc.nextInt(); + System.out.println("Enter the gender of customer"); + Buffer[0].gender=sc.next(); + System.out.println("Enter the mail of customer"); + Buffer[0].mail=sc.next(); + } +} + +class Option { + char text; + Node nextNode; + + public Option(char text, Node nextNode) { + this.text = text; + this.nextNode = nextNode; + } +} + +class Node { + String question; + List