Giter Site home page Giter Site logo

kefournier / extraproblems Goto Github PK

View Code? Open in Web Editor NEW

This project forked from choibhs/extraproblems

0.0 1.0 2.0 10 KB

Extra problems that could be used for AP CS Principles. Includes problem descriptions and check50 files. Sample solutions will be posted elsewhere.

Python 100.00%

extraproblems's Introduction

extraproblems

Contact: choi at belmonthill dot org

Extra problems that could be used for AP CS Principles. Includes problem descriptions and check50 files. Sample solutions will be posted elsewhere (email for link).

Recommended order of assignments and topics:

  • add_two_numbers: Simple assignment after "Hello, World". Ask user for two numbers and return the sum. Topics: variables, printf(), get_int()

  • mad_libs: Ask user for a float, int, string, char. Combine them into a humorous output with printf() statements. Topics: get_int() etc., printf()

  • multiples: Ask the user to enter a number and a divisor. Then print out multiples less than or equal to that number. Topics: loops

  • loops: Ask user for a number to count to from 1 to that number. Implement with a for loop. Ask user for another number between 0 and 12 and recite the multiplication table up to 12 for that number. Implement with a while loop. Topics: loops

  • fahrenheit: Slight modification of the CS50 assignment. Implement Fahrenheit to Celsius conversion and vice versa using functions. Topics: do-while loop, functions

  • geometry: Create functions to calculate area or perimeter of a square, triangle, and rectangle. Create a program that will ask the user which formula he/she would like to calculate, ask the lengths to use, and output the result. Topics: do-while loop, functions

  • lottery: Create a program that will draw the winning numbers, and then simulate drawing 100,000 lottery tickets. Keep track of how many tickets matched exactly 1 number, exactly 2, etc. and in a final print out display the percentage for each. Topics: arrays, rand()

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.