Giter Club home page Giter Club logo

text-analysis-arrays-using-c's Introduction

Text Analysis: Arrays using C

Homework from Harvard's Introduction to Computer Science CS50 hosted on eDX

🎓 Problem Set 2

  • Readability: Estimation of grade level required to comprehend any text that is inputted via command line
  • I wrote all the code in each file. No code was provided by the instructor.

Readability Program Demo

💡Lessons Learned

  • Working with ASCII values, which is one step above binary code (lowest level)
  • Strings are an abstraction for an array of characters
  • Applying knowledge of null terminating character at end of array of characters in C
  • Deconstructing sentences into words and words into characters

🕹 How to Use

To run this project locally:

  • In your terminal, navigate to the Readability folder and run the following commands
$ clang -o readability readability.c
$ ./readability

The program will prompt you input your sample text after Text:. Note that the maximum character count is 350.

$ Text: A large class of computational problems involve the determination of properties of graphs, digraphs, integers, arrays of integers, finite families of finite sets, boolean formulas and elements of other countable domains.

The expected result for the above example is

$ Grade 16+

text-analysis-arrays-using-c's People

Contributors

jacobgrisham avatar

Watchers

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