Skip to content

My solutions to the PSETs given in Harvard's Introduction to Computer Science course.

Notifications You must be signed in to change notification settings

verajs/cs50-harvard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harvard's CS50 (Introduction to Computer Science) PSETs preview

WEEK 1 - mario.c

Towards the end of World 1-1 in Nintendo’s Super Mario Brothers, Mario must ascend a right-aligned pyramid of blocks. this recreates that pyramid in C, albeit in text, using hashes (#) for bricks.

mario

WEEK 1 - cash.c

A program that prompts the user for the number of cents that a customer is owed and then prints the smallest number of coins with which that change can be made.

cash

WEEK 1 - credit.c

A program that prompts the user for a credit card number and then reports (via printf) whether it is a valid American Express, MasterCard, or Visa card number, per the definitions of each’s format using Luhn's Algorithm.

credit

WEEK 2 - scrabble.c

A program that determines the winner of a short scrabble-like game, where two players each enter their word, and the higher scoring player wins.

scrabble

WEEK 2 - caesar.c

A program that encrypts messages using Caesar’s cipher.

caesar

WEEK 2 - substitution.c

A program that implements a substitution cipher.

substitution

WEEK 3 - plurality.c

A program that runs a plurality election

plurality

## WEEK 3 - runoff.c

A program that runs a runoff election.

runoff

WEEK 3 - tideman.c

A program that runs a Tideman election

tideman

WEEK 4 - volume.c

A program that modifies the volume of an audio file. Where INPUT.wav is the name of an original audio file and OUTPUT.wav is the name of an audio file with a volume that has been scaled by the given factor (e.g., 2.0).

volume

WEEK 4 - filter.c

A program that applies filters to BMPs, including grayscale, reflection, blur and edge detection using Sobel operator.

filter

WEEK 4 - recover.c

A program that recovers JPEGs from a forensic image.

recover

WEEK 5 - inheritance.c

Simulate the inheritance of blood types for each member of a family.

inheritance

WEEK 5 - speller.c

A program that spell-checks a file using a hash table.

speller

WEEK 6 - tournament.py

A program that runs simulations of the FIFA World Cup.

tournament

WEEK 6 - dna.py

A program that identifies a person with their DNA using Short Tandem Repeats (STRs).

dna dna1

WEEK 7 - SQL - songs

SQL queries to answer questions about a Spotify database.

WEEK 7 - SQL - movies

Write SQL queries to answer questions about IMDB's movies database.

WEEK 7 - SQL - fiftyville

Write SQL queries to solve a mystery. (Similar to SQL City.)

WEEK 8 - trivia

A trivia webpage that lets users answer questions

trivia

About

My solutions to the PSETs given in Harvard's Introduction to Computer Science course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published