Giter VIP home page Giter VIP logo

third-project-3'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!

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.
  • They 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 validations in the fields were also tested and are correct. If the person types the email or in the name field with numbers, an error will appear and return to the same field.

testing

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

third-project-3's People

Contributors

pagioro 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.