Skip to content

Instantly share code, notes, and snippets.

View SuperDyslexic's full-sized avatar

SuperDyslexic

View GitHub Profile
@SuperDyslexic
SuperDyslexic / TransitCalculator.java
Created April 3, 2020 19:43
Calculate and return the lowest cost ticket-option for using NYC transit according to given days and expected rides. Uses Scanner. Crashes when given other than int variables. //my 4th project for codeacademy
import java.util.*;
public class TransitCalculator {
int daysTransit;
int expectedRides;
public TransitCalculator(int myDays, int myExpectedRides){
daysTransit = myDays;
expectedRides = myExpectedRides;