Git Product home page Git Product logo

pagioro-third-project_mayresub's Introduction

Census Survey

Census Survey is a tool for capturing data from a person, and the administrator will have a solid database for future analysis.

Screenshot of the user data capture program.

Here is the live version of my software!

Here is the google sheets data!

Features

Existing Features

  • The program starts with the Census welcome message and the message to put data in the fields below.
  • The person must fill in seven fields for data validation to be recorded.

person input data

  • The program is connected to google sheets.
  • The data go to the main worksheet called Census.

main sheet

  • When we enter the data, they are also separated into other tabs by gender, who pays the rent and if they have children.

other sheets

  • In the program and the result tab, the total number of people is shown, how many are men or women if they have their own house, how many have children.

result sheets

Future Features

  • Will be added a graph in the results tab.
  • Will be added more input data.

Testing

  • Passed the code through a PEP8 linter and confirmed there are no problems.
  • All data inputs have been tested and are working perfectly.
  • The program presents an error when testing the blank name field and returns to the same field.
  • The program returns an error when testing the name field with a number and returns to the name field.
  • When testing the name field with letters and numbers, the program returns an error and returns to the name field.

testing name field

  • The program presents an error when testing the blank email field and returns to the same field.
  • The program returns an error when testing the email field with letters only and returns to the same field.
  • When testing the email field with letters and numbers, the program returns an error and returns to the same field.
  • When testing the email field with numbers, the program returns an error and returns to the same field.

testing email field

  • The program presents an error when testing the blank age field and returns to the same field.
  • The program returns an error when testing the age field with letters only and returns to the same field.
  • When testing the age field with letters and numbers, the program returns an error and returns to the same field.
  • When testing the age field with special character, the program returns an error and returns to the same field.

testing email field

  • The program presents an error when testing the blank gender field and returns to the same field.
  • The program returns an error when testing the gender field with special character and returns to the same field.
  • When testing the gender field with letters that are different from M and F, the program returns an error and returns to the same field.

testing email field

  • The program presents an error when testing the blank country field and returns to the same field.
  • The program returns an error when testing the country field with special character and returns to the same field.
  • The program returns an error when testing the country field with names that are not in the world country list and returns to the same field.

testing email field

  • The program presents an error when testing the blank city field and returns to the same field.
  • The program returns an error when testing the city field with special character and returns to the same field.
  • The program returns an error when testing the city field with numbers and returns to the same field.

testing email field

  • The program presents an error when testing the blank rent field and returns to the same field.
  • The program returns an error when testing the rent field with special character and returns to the same field.
  • The program returns an error when testing the rent field with numbers and returns to the same field.

testing email field

  • The program presents an error when testing the blank children field and returns to the same field.
  • The program returns an error when testing the children field with special character and returns to the same field.
  • The program returns an error when testing the children field with letters and returns to the same field.
  • The program returns an error when testing the children field with numbers higher than 12 and returns to the same field.

testing email field

Unfixed Bugs

  • No unfixed bugs.

Fixed Bugs

  • I had difficulties validating capital and lowercase letters in a part of the code, and I solved this by using .upper().

    • user_gender = user_gender.upper() and user_rent = user_rent.upper()
  • I could not calculate the number of lines correctly because it always took the title. I solved it by subtracting by minus one in the code below.

    • people_number = (len(SHEET.worksheet("census").get_all_values()) - 1)
  • To change a cell, I used the update_cell command and not .append, which was the error I was making.

    • census_worksheet.update_cell(2, 1, people_number)

Validator Testing

  • No errors were returned from PEP8online.com

pep8 online

Deployment

This project was deployed using Code Institute's mock terminal for Heroku.

  • Steps for deployment:
    • Fork or clone this repository
    • Create a new Heroku app
    • Link the Heroku app to this repository
    • Click on deploy

Credits

  • Code institute for the deployment terminal
  • Love Sandwiches by the example given
  • Ultimate Battleships Sample README

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.