Skip to content

Instantly share code, notes, and snippets.

View anoushkamishra's full-sized avatar

anoushkamishra

View GitHub Profile
@anoushkamishra
anoushkamishra / gist:0dabf661103a391b7526aa23ce5ec4f9
Created January 20, 2017 13:22
Using new class "GoKart" as GoKartTrack
/* Author: Anoushka Mishra
* December 9, 2016
*/
public class GoKartTrack {
// private instance variables
private int capacity; //number of lanes on this track
private GoKart[] contestants; //an array GoKart objects entered into the race
private int lastEnteredContestant = -1; //index of the last filled spot in the contestants array
@anoushkamishra
anoushkamishra / gist:40a0d1ca98f8f676b744ccc8a868878b
Created January 20, 2017 13:20
Using new class "GoKart" as TestGoKart
/* Author: Anoushka Mishra
* November 15, 2016
*/
import java.util.Scanner;
public class TestGoKart {
// This program tests the GoKart class.
@anoushkamishra
anoushkamishra / gist:fc105ced038bf4ca2d1376ecdae7e5cd
Last active January 20, 2017 13:19
Making new class GoKart
/* Author: Anoushka Mishra
* November 15, 2016
*/
public class GoKart {
//This program is a new GoKart class. It uses accessor and mutator methods.
/*Private instance variables*/
private String name;
private int powerSource;
@anoushkamishra
anoushkamishra / gist:632b9920cfb34340790f9d7745a8232b
Last active November 3, 2020 14:00
Hangman Game Using Basic Java Programming
/* Author: Anoushka Mishra
* October 12, 2016
*/
import java.util.Scanner;
public class Assignment5 {
// This program is a game where user needs to guess a phrase with maximum 5 tries