Skip to content

Latest commit

 

History

History

pset1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Problem set 1

Problem set 1 consists of 5 problems:

  • Hello
    • Implement a program that greets the user with "Hello, user name"
  • Mario (less)
    • Implement a program that draws a pyramid
  • Mario (more)
    • Implement a program that draws a pyramid
  • Cash (less)
    • Implement a program that first asks the user how much change is owed and then prints the minimum number of coins with which that change can be made
  • Credit (more)
    • Implement a program that prompts the user for a credit card number and then reports whether it is a valid American Express, MasterCard, or Visa card number

The "less" / "more" indicates the difficulty level of problem. Students are given the choice of selecting between a less/more challenging problem to complete but both have been done for more practice.