GithubHelp home page GithubHelp logo

sepideharc / task-4-data Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inls161/task-4-data

0.0 1.0 0.0 6 KB

You will create a short questionnaire and then use Bash to script collection of answers

Shell 100.00%

task-4-data's Introduction

Task #4 - Creating and handling data

This assignment aims at strengthening our scripting skills and learning how to create a well-formed dataset to work with.

You will create a short questionnaire and then use Bash to script collection of answers.

Skillsets

You will be exposed to the following skillsets;

  1. Scripting user input
  2. Saving data to csv file
  3. Writing to temporary files
  4. Scripting database interface

Expectations

I expect you to create two scripts

  1. One that will take input from users and then store their responses to a CSV file. It must aggregate the responses of multiple users and therefore needs to have some form of disambiguation involved in the data generation process.
  2. A second script that will allow you to write the information gathered into a MySQL database instead of into a CSV file as the final output form.

Prerequisites

The only thing that you will need is Bash and text files, and MySQL, all of which are available in CodeAnywhere (you can actually use the MySQL stack to start your project).

Instructions

You will need to do the following for this assignment to be considered complete.

  1. Create a list of five questions.
  2. Write a script that will do the following:
  • Ask each question of the user running the script.
  • Write a random string of characters to a variable as a unique identifier.
  • Write the datestamp to a variable.
  • Accept text input from the user and write each answer as a variable.
  • Save all answers and other data to a CSV file.
  1. Create a database that has the appropriate variables and variable types (NB: You can script this: it might be an accessory script or a conditional statement in your script).
  2. Write a script to write your data into a MySQL database (you can call this script from your other one, or vice versa):
  • connect to a MySQL database (HINT: this will involve setting variables for MySQL USERNAME, PASSWORD, and LOCATION)
  • enter the data input by users into a MySQL database
  • dump the MySQL database into a .sql file in your repository directory with the rest of your files after it has been modified with new data
  1. Write a blog post that links to your fork of the repository and write a brief explanation of what your scripts actually do.

task-4-data's People

Contributors

jdmar3 avatar sepideharc 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.