• Averager

    At the end of this problem you should submit to Laulima:

    • a file named UHusername_averager.c
    • example:

      • zhaol_averager.c
    • Write a program that will allow the user to enter in numbers and the program will display the minimum number, the maximum number, the average of the numbers at the end. The program will ask the user after each number is entered if s/he would like to enter in more numbers.

      Click here for more details on the problem when you want to verify your understanding of the problem statement.

        The program should:
      • accept numbers until user tells program to stop
      • calculate and display the average of all the numbers entered by the user
      • display the maximum number of all the numbers entered by the user
      • display the minimum number of all the numbers entered by the user
  • Calculator

    At the end of this problem you should submit to Laulima:

    • a file named UHusername_averager.c
    • example:

      • zhaol_averager.c
    • Write a program that will allow the user to enter in 2 numbers and an arithmetic operator. The program will then output the result of performing the arithmetic operator on the 2 numbers.

      Click here for more details on the problem when you want to verify your understanding of the problem statement.

        The program should:
      • accept 2 numbers
      • accept an arithmetic operator, +, -, *, /, %
      • perform the arithmetic, e.g. first_number / second_number
        Be sure you understand the implications of:
      • type casting a decimal to an integer, e.g. does it round or does it truncate?
      • using the mod operator %, e.g. what is it doing? when does using % make sense and on which data types?
  • Converter

    At the end of this problem you should submit to Laulima:

    • a file named UHusername_averager.c
    • example:

      • zhaol_averager.c
    • Write a program that will allow the user to enter in a number of seconds and return the equivalent number of minutes and seconds where the seconds is always less than 60

      • Test Case 1:
        Please enter in the number of seconds to be converted:
        [user enters 130]
        130 seconds is equivalent to 2 minutes and 10 seconds