This repo contains several programs that emphasize the basic building blocks of a Java program. Listed, the programs are:
This program draws a CheckerBoard utilizing the JavaFX toolkit for GUI programming.
This program reads a sequence of positive integers input by the user, and it will print out the average of those integers.
This program reads a positive integer from the user. It counts how many divisors that number has, and then it prints the result.
This program will convert measurements expressed in inches, feet, yards, or miles into each of the possible units of measure.
This program lists all the letters contained in a string and also counts the number of different letters.
A program that reads one line of input text and breaks it up into its individual words. The words are output one per line.
This program finds an integer between 1 and 10000 that has the largest number of divisors.
This program prints out a 12 by 12 multiplication table.
A program that reads an integer typed in by the user and computes and returns the square of that integer
This program simulates rolling a pair of dice. The number showing on each die is output as well as the total of the two dice rolls.
Taking a file that contains information about sales figures for a company in various cities, this program computes and prints the total sales from all the cities together. It also reports the number of cities for which data was not available. We use the test file "sales.dat"
This program evaluates simple math expressions.
This program simulates rolling a pair of dice until they come up snake eyes. It reports how many rolls were needed.
This program reads in a positive integer from the user and prints out the 3N+1 sequence starting from that integer.