This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
const int SIZE = 8; | |
double numbers[] = { 5, 10, 15, 20, 25, 30, 35, 40 }; | |
double* getNumbers(); | |
double findMax(const double[], int); | |
double findMin(const double[], int); | |
int find(const double[], int, double); |
This file contains hidden or 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
html, body { | |
font-family: 'Source Sans Pro', sans-serif; | |
background: saddlebrown; | |
overflow-y: hidden; | |
} |
This file contains hidden or 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
package main.cis171.kelli.week09; | |
import javax.swing.*; | |
public class MyTimedResponse { | |
private static String question = "Who is your idol?"; | |
public static void main(String[] args) { | |
long start, end; |
This file contains hidden or 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.Scanner; | |
public class AverageAgeModified { | |
public static void main(String[] args) { | |
// Add scanner so we can get user input | |
Scanner scan = new Scanner(System.in); | |
int total = 0; |
This file contains hidden or 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
public class Main | |
{ | |
public static void main(String[] args) | |
{ | |
System.out.print(); | |
queue q = new queue(2); | |
q.doSomething(); | |
q.string | |
} | |
} |
This file contains hidden or 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
package week4; | |
import java.util.Scanner; | |
public class EFScale { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
System.out.print("Enter 3 second wind speed: "); | |
int windSpeed = scan.nextInt(); |
This file contains hidden or 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
package week4.rps; | |
import java.util.Scanner; | |
public class RockPaperScissorsRevised { | |
private static final String TIE = "It was a tie"; | |
private static final String PLAYER_ONE_WINS = "Player One wins"; | |
private static final String PLAYER_TWO_WINS = "Player Two wins"; |
This file contains hidden or 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
package week4.rps; | |
import java.util.Scanner; | |
public class RockPaperScissors { | |
private static final String TIE = "It was a tie"; | |
private static final String PLAYER_ONE_WINS = "Player One wins"; | |
private static final String PLAYER_TWO_WINS = "Player Two wins"; |
This file contains hidden or 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
package arrays; | |
import java.util.ArrayList; | |
import java.util.Random; | |
public class ArrayLists { | |
public static void main(String[] args) { | |
ArrayList<Integer> list = new ArrayList<>(); | |
Random randy = new Random(); |
This file contains hidden or 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
public static double computeBalance(double balance, double rate, int year) { | |
for (int i = 0; i < year; i++) { | |
balance += balance*rate ; | |
} | |
return balance; | |
} |