Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Learning Full Stack Development

Wayne Wallace waynewallace

😎
Learning Full Stack Development
View GitHub Profile
@waynewallace
waynewallace / mario.c
Created May 11, 2020
Harvard C Assignment 1
View mario.c
// mario.c
//
// prints pyrimid block wall with stair step on both sides with valley of
// spaces in the middle
//
// Sample output
//
// Height:
// 4
// # #
@waynewallace
waynewallace / readability.c
Last active May 12, 2020
Harvard CS50 Readability.c Assignment
View readability.c
// readability.c
// Design and implement a program, readability, that computes the Coleman-Liau index of the text.
// Implement your program in a file called readability.c in a directory called readability.
// Your program must prompt the user for a string of text (using get_string).
// Your program should count the number of letters, words, and sentences in the text. You may
// assume that a letter is any lowercase character from a to z or any uppercase character from
// A to Z, any sequence of characters separated by spaces should count as a word, and that any
@waynewallace
waynewallace / substitution.c
Created May 15, 2020
Harvard CS50 Substitution
View substitution.c
// substitution.c
// Implement a program that does a substitution cipher with a user supplied key
// Sample Usage
// $ ./substitution qwerTyuIopasDfghjKlzXcVbnm
// Text to encrypt: Wayne is the BEST programmer in the WORLD!
// plaintext:Wayne is the BEST programmer in the WORLD!
// ciphertext:Vqnft ol zit WTLZ hkgukqddtk of zit VGKSR!
@waynewallace
waynewallace / plurality.c
Created May 17, 2020
Harvard CS50 Plurality.c Assignment
View plurality.c
#include <cs50.h>
#include <stdio.h>
#include <string.h>
// Implement a program that runs a plurality election, per the below.
// $ ./plurality Alice Bob Charlie
// Number of voters: 4
// Vote: Alice
// Vote: Bob