Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions javaPractice/averageHW.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SoloLearn Time for HW Program

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int math = scanner.nextInt();
int history = scanner.nextInt();
int geometry = scanner.nextInt();

//your code goes here
int sum = math + history + geometry;
int hr = sum/60;
int min = sum % 60;

System.out.println(hr);
System.out.println(min);
}
}
10 changes: 10 additions & 0 deletions javaPractice/countBlocks.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Udacity Practice - Counts the level of blocks in a pyramid
public int countBlocks(int levels){
int total =0;

for(int i=0; i <= levels; i++){
total += (i*i);
}

return total;
}
14 changes: 14 additions & 0 deletions javaPractice/findLongestName.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Udacity - find the longest name in a string array
// Create findLongestName.java (max string length example)

public String findLongestName(String [] names){
int size = names.length;
String longestName = names[0];

for(int i=1; i < size; i++){
if(names[i].length() > longestName.length()){
longestName = names[i];
}
}
return longestName;
}
16 changes: 16 additions & 0 deletions javaPractice/hrBudget.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SoloLearn HR Budget Program
import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
//get salaries
int salary1 = scanner.nextInt();
int salary2 = scanner.nextInt();
//your code goes here
int sum = salary1 + salary2;
System.out.println(sum);

}
}
22 changes: 22 additions & 0 deletions javaPractice/martingale.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Udacity martingale betting technique
public int martingale() {
int money = 1000;
int target = 1200;
int bet = 10;
while (money > bet) {
boolean win = play();
if (win) {
money += bet;
bet = 10;
}
else {
money -= bet;
bet *= 2;
}

if(money >= target){
break;
}
}
return money;
}
20 changes: 20 additions & 0 deletions javaPractice/scoring.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SoloLearn Who Scored More? Program

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);
//taking initial score
int initScore = scanner.nextInt();
int scoreTom = initScore;
int scoreBob = initScore;

System.out.println("Round 1 results:");
//fix
System.out.println(++scoreTom);
System.out.println(--scoreBob);
}
}
54 changes: 54 additions & 0 deletions psuedo_LT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// ---------------------------------------------------------------------------------------------------------------------
// NAME: Taryn Nicole Jones ----------------------------------------------------------------------------------------
// COURSE: Revature - Java Reactive --------------------------------------------------------------------------------
// DATE: 7/23/2021 ---------------------------------------------------------------------------------------------------
// TITLE: Project 0 -----------------------------------------------------------------------------------------------------
// DESCRIPTION: Lightning Predictor App ---------------------------------------------------------------------------
// Goals: ---------------------------------------------------------------------------------------------------------------
// ----- 1. predict next lightning stirke given data -------------------------------------------------------------------
// ----- 2. predict lightning in given area, given history trends (possibly try to get all in US based on zipcode) --
// ----- 3. output lightning map through time -----------------------------------------------------------------------
// ----- 4. output lightning heat map ---------------------------------------------------------------------------------
// ----- >>> BONUS: Can also try predicting the magnitude + landfall + potential warnings? --------------------

Lightning Predictor App:
1. predict next lightning stirke given data
2. predict lightning in given area, given history trends (possibly try to get all in US based on zipcode)
3. output lightning map through time
4. output lightning heat map
>>> Can also try predicting the magnitude + landfall + potential warnings?

// headers

//class???
public static void main(Strings[] args){
// Make a program that can output data to make sure loaded well from source
// Follow the logic from Rstudio data population - QMB 5565
// Can even run there to ensure running as expected

System.out.println();
}


// Function that creates multi-lienear regression to predict next lightning strike
// Explain why important and useful
// ****** BONUS: see if can compare throughout the day ****
// Z-scores, p value etc.


// Function that creates an animated map/ gif of lightning outputs
// Explain why important and useful
// ****** BONUS: see if can compare times throughout the day (decide upon frequency) ****
// ****** BONUS: future map - use averages of last 3 years in a month/day/time ****


// Function that creates heat map of lightning outputs
// Explain why important and useful
// ****** BONUS: see if can compare on 3 year time frame photos ****
// ****** BONUS: future map - use averages of last 3 years in a month/day/time ****


// Impreovemnts:
// Make fast to load data
// Make fast to quickly find data to predict
// Make look nice, fancy for user interface (still on command line)