Advanced Search
Search Results
46 total results found
L04 - Part 2
Loops.java public class Loops { public static void main(String[] args) { // sum the numbers from 1 to 5 using a for loop int sum = 0; for (int i = 0; i <= 5; i++) { sum = sum + i; } System.out.println("Th...
L05
UsingArrays.java public class UsingArrays { public static void main(String[] args) { int[] arr = { 3, 7, 13, 18 }; for (int i = 0; i < arr.length; i++) System.out.println(arr[i] + " squared is " + arr[i] * arr[i]); for...
L06
BankAccount.java /** * Parent BankAccount class * * @author Brandon * @version 1/1/1990 */ public class BankAccount { private double balance; public BankAccount() { balance = 0; } public BankAccount(double initialBalance) { ...
L07
Shape.java public abstract class Shape { private String shapeName; public Shape() { shapeName = "Generic Shape"; } public Shape(String shapeName) { this.shapeName = shapeName; } public String getShapeName() { ...
L08
AutoPilot.java public interface Autopilot { final double MAX_AIRSPEED = 550; double airspeed = 0; double altitude = 0; double heading = 0; public void setAirspeed(double inAirspeed); public void setAltitude(double inAltitude); pu...
L09
ReverseIt.java /** * Reverses each line of an input file and writes it to an output file. * * @author Brandon * @version 1/1/1990 */ import java.util.*; import java.io.*; public class ReverseIt { public static void main(String[] args) throws IOException...
L10
ExceptionsLab.java import java.util.Scanner; public class ExceptionLab { public static void main(String[] args) { int[] myInts = new int[4]; Scanner scan = new Scanner(System.in); try { for (int i = 0; i != 4; i++) { ...
L11
InsufficientFunds.java public class InsufficientFunds extends RuntimeException{ public InsufficientFunds(){ } public InsufficientFunds(String msg){ super(msg); // use superclass constructor } } BankAccount.java public class BankAccoun...
L12
FibonacciTest.java import java.util.*; public class FibonacciTest { public static void main(String[] args) { Scanner myScanner = new Scanner(System.in); boolean done = false; while (!done) { System.out.print("Enter an i...
Required Development Tools Install Instructions
Git Follow default install instructions in installer. FRC Game Tools Follow instruction on the webpage to uninstall any old versions and install the new one. WPILib and VS Code Follow instuctions on webpage to install the robotics library WPILib and the ...
Resources
This will serve less as a direct guide to how to do web design, but put you on a guided course of online courses available for web design. Please follow the lessons in the order outlined below. You will need a Codecademy account to access the below courses L...
Glossary
Basic Terms Term one is a more simple version, while term two is a more advanced explanation. It is recommended to read both to get a good understanding of what each term is. Repository A repository is the home for the source code and other related files. The...
What is Git?
Description Git is a version/source control software that tracks any changes across a set of source files usually used for tracking source code among collaborating programmers. It's goal is to be fast and light. It also supports distrobuted non-linear workflow...
Driver Controls
Basic Rules These arent absolute rules but you should really think about it when you break them. When in doubt listen to the driver's preference. The driver shouldn't be doing more than driving and alligning the robot. Adding more mental load makes it so t...
Operator Controls
General Rules Once again the operators preferences are key but following these rules first will give a good start. Any automated command needs to have a way for a manual backup. Adding a button to the controller that switches everything to manual is a good...
Example Seeing if a game piece is inside a mechanism
Sometimes you'll need to see if a game piece is inside of the robot. This can make automating a subsystem possible but it is hard to pick a sensor.For this example we are going to look at sensors that are good at checking if something is there. for this examp...