Sample Input/Output Set A

Other sample inputs and outputs for the practice problems

  1. Problem 1:
    Enter number of minutes: 0
    0 hours, 0 minutes
    

    Enter number of minutes: 22
    0 hours, 22 minutes
    

    Enter number of minutes: 98323
    1638 hours, 43 minutes
    


  2. Problem 2:
    Enter first and last names: Jane  Goodall
    
        Last,First: Goodall,Jane
    
        Letters:    11
    

    Enter first and last names: a b
    
        Last,First: b,a
    
        Letters:    2
    


  3. Problem 3:
    Enter number of minutes: 0
    Time: 0:00
    

    Enter number of minutes: 22
    Time: 0:22
    

    Enter number of minutes: 1440
    Time: 24:00
    

    Enter number of minutes: 983
    Time: 16:23
    

  4. Problem 4:
    Enter your name: X
    Letters:
      1. X
    

    Enter your name: Dr.Jones
    Letters:
      1. D
      2. r
      3. .
      4. J
      5. o
      6. n
      7. e
      8. s
    

    Challenge problem: print only the actual letters; that is, only print characters if they are between A and Z or a and z.

  5. Problem 5:
    Enter an integer: 5
    Divisors: 1 5
    

    Enter an integer: 0
    Divisors: 
    

    Enter an integer: 21
    Divisors: 1 3 7 21
    

    Enter an integer: 1
    Divisors: 1