lab10 go brrr, pt2

This commit is contained in:
2022-10-06 16:46:00 -05:00
parent f298dfd268
commit 52ce289927
11 changed files with 2054 additions and 1 deletions

View File

@@ -4,13 +4,37 @@
*/
package lab10_calebfontenot;
import java.util.Scanner;
/**
*
* @author caleb
*/
public class IndependanceUSA {
public static void main(String[] args)
{
// Setup vars
String month, day, year;
// Create scanner
Scanner input = new Scanner(System.in);
boolean conditionStillTrue = true;
// Prompt fo rinput
System.out.println("Please enter the date of Independence. (Month, day, year): ");
month = input.next();
day = input.next();
year = input.next();
if (month.compareToIgnoreCase("july") == 1) {
}
if (day.compareToIgnoreCase("4th" ) == 1) {
if (year == 1776) {
System.out.println("Hurrah!");
else {
System.out.println("No no no! Incorrect!");
}
}
}