Source code: Agenda.php

 
C++

   
   


   


Java Examples

Sample Problems
  • Pushups
  • Pushups2
  • Search101
  • DigitSum
    Example using mod and integer division
    public static void main(String[] args) {
            int num = 321;
            int sum = 0;
            while (num > 0) {
                sum = sum + num % 10;
                num = num / 10;
            }
            System.out.println(sum);
        }
    

    Java Topics
  • Sending a prompt to the user
  • Accepting input from the user
    testi.java Prompt user for n, output the first n numbers in the Fibonnacci sequence
  • Validating user input
  • Performing calculations on user input
  • Sending output to the user
  • Procesing program exceptions
  • Using builtin functions
    • Integer.parseInt()

    Examples
  • Batting Averages
    Read in a list of batting averages from the command line, store the batting averages in an array, sort the array, and output the batting averages from low to high.
Tic-Tac-Toe

File List

HWMath.net and MathHW.net © MathHW.net
This free resource is provided as a service to Student customers without warranty or stated suitability for any particular purpose.
Registration is not required