Code Monkey home page Code Monkey logo

graduation-seating's Introduction

This program takes an input .csv file; this can be easily exported from an Excel/Google Drive spreadsheet. It will correctly sort a maximum of ~740 students and teachers.

To get proper results, the .csv data format MUST be:
Student First Name, Student Last Name, Teacher First Name, Teacher Last Name, if student is a graduation speaker (true or false, case doesn't matter), if student is a musician (choir, band, etc; true or false, case doesn't matter)

  • the algorithm will split students being handed a diploma by the principal into groups of 8, and distribute them throughout the rows. If you want to take advantage of this feature, the name of the "teacher" MUST be Simone Rick-Kennel, regardless of who the current principal is

EXAMPLE INPUTS INTO CSV FILE:
A student named Jamie Montoya, who is a graduation speaker and will get her diploma from Patty Kim
Jamie, Montoya, Patty, Kim, true, false

A student named Alex Wong, who will get his diploma from James Smith
Alex, Wong, James, Smith, false, false

A student named Hannah Smith, who is in band and will get her diploma from the principal
Hannah, Smith, Simone, Rick-Kennel, false, true

INSTRUCTIONS (if running via code editor):

  1. Run the "void main (String [] args)" of the GradRunner class.
  2. You'll be asked for the input and export file path. Enter the FULL direct file path; backslashes are important. On Mac, you can find this by right-clicking, selecting "Get Info", and looking under the "General" header for "Where". (example for Mac: /Users/yourUserName/Downloads/yourDataSpreadsheet.csv )
  3. You'll be asked if you want to flag if a student is a speaker or a musician. Do this if you want to easily visualize where everyone is; enter "true" to enable (the "true" MUST be all lowercase).
  4. You'll be asked if you want to print to the console. This is another way to view the data without having to open the .csv export file. Enter "true" to enable (the "true" MUST be all lowercase).
  5. If you've done everything right, a .csv export file with the seating arrangement will be placed into wherever you specified in step 2!

INSTRUCTIONS (if running via .jar executible with an older OS and Java JDK):

  1. Download "GradSeating.jar" file.
  2. Click on file; if prompted to type in password to allow it to run, do so.
  3. Enter the input and export file path. Enter the FULL direct file path; backslashes are important. On Mac, you can find this by right-clicking the file, selecting "Get Info", and looking under the "General" header for "Where". (example for Mac: /Users/yourUserName/Downloads/yourDataSpreadsheet.csv )
  4. Enter if you want to flag if a student is a speaker or a musician. Do this if you want to easily visualize where everyone is; enter "true" to enable (the "true" MUST be all lowercase).
  5. If you've done everything right, a .csv export file with the seating arrangement will be placed into wherever you specified in step 2!

INSTRUCTIONS (if running via .jar executible in BlueJ with a newer OS and Java JDK):

  1. Download "GradSeating.jar" file. Drag into BlueJ.
  2. Right-click the GradAlgorithmApplication; click on "Run JavaFX application."
  3. Enter the input and export file path. Enter the FULL direct file path; backslashes are important. On Mac, you can find this by right-clicking the file, selecting "Get Info", and looking under the "General" header for "Where". (example for Mac: /Users/yourUserName/Downloads/yourDataSpreadsheet.csv )
  4. Enter if you want to flag if a student is a speaker or a musician. Do this if you want to easily visualize where everyone is; enter "true" to enable (the "true" MUST be all lowercase).
  5. If you've done everything right, a .csv export file with the seating arrangement will be placed into wherever you specified in step 2!

COMMON ISSUES: If no file is output by the program, try these solutions: - check input path (if it is invalid, the program won't run) - check that input file has the inputs in the correct order - check that input file is a .csv file - check output path (if it is invalid, the program can't export the file anywhere!) - check that output path is a .csv file Alt text

graduation-seating's People

Contributors

novalegra avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.