This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table width="100%" cellspacing="0" cellpadding="0" border="0"> | |
<tbody> | |
<tr> | |
<td bgcolor="#238F8A" align="center"> | |
<table width="100%" cellspacing="0" cellpadding="0" border="0"> | |
<tbody> | |
<tr> | |
<td bgcolor="#238F8A" align="center"> | |
<table width="600" cellspacing="0" cellpadding="0" border="0" align="center"> | |
<tbody> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.InputMismatchException; | |
import java.util.Scanner; | |
public class TotalAverageCalculator { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int populationSum = 0; | |
int populationSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.InputMismatchException; | |
import java.util.Scanner; | |
import java.util.regex.Pattern; | |
public class PlantClassifier { | |
// Used for the final sentence | |
static final Pattern STARTS_WITH_VOWEL = Pattern.compile("^[aeiouy]", Pattern.CASE_INSENSITIVE); | |
// Let's at least standardise this code for future re-use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.text.DecimalFormat; | |
import java.util.InputMismatchException; | |
import java.util.Scanner; | |
public class LoanRepaymentCalculator { | |
// Just in case earth's orbit changes drastically | |
final static int MONTHS_IN_YEAR = 12; | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Scanner; | |
import java.util.logging.Logger; | |
public class TriangleArea { | |
static Logger logger; | |
static Scanner scanner; | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.InputMismatchException; | |
import java.util.Scanner; | |
public class BMI { | |
static double userWeight; // Given to the nearest kilogram | |
static double userHeight; // Given in meters | |
static float userBMI; // | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.logging.Logger; | |
public class StandardDeviation { | |
public static void main(String[] args) { | |
Logger logger = Logger.getLogger("Standard Deviation"); | |
double populationMean = 0; | |
double stdDeviationNumerator = 0; |
NewerOlder