This file contains 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
//Instructor.java - Jimmy Kurian | |
public class Instructor extends Person | |
{ | |
private double salary; | |
public Instructor(String n, int byear, double s) | |
{ | |
super(n, byear); | |
salary = s; |
This file contains 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
//SavingsAccount.java - Jimmy Kurian | |
public class SavingsAccount | |
{ | |
private double balance; | |
private double interest; | |
public SavingsAccount() | |
{ | |
balance = 0; |
This file contains 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
//BarChart.java - Jimmy Kurian | |
import java.util.ArrayList; | |
import java.awt.Graphics2D; | |
import java.awt.geom.Line2D; | |
import java.awt.geom.Point2D; | |
import java.awt.Rectangle; | |
public class BarChart | |
{ |
This file contains 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
# BankAccount.py - Jimmy Kurian | |
class BankAccount(object): | |
def __init__(self, initial_balance=0): | |
self.balance = initial_balance | |
def deposit(self, amount): | |
self.balance += amount | |
def withdraw(self, amount): | |
self.balance -= amount | |
def overdrawn(self): |
This file contains 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
;HelloWorld.scm - Jimmy Kurian | |
(begin | |
(display "Hello, World!") | |
(newline)) |
This file contains 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
//CheckerBoard.java - Jimmy Kurian | |
import javax.swing.*; | |
import java.awt.Graphics; | |
import java.awt.Color; | |
public class CheckerBoard extends JFrame | |
{ | |
public void paint(Graphics g) |
This file contains 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
//Square.java - Jimmy Kurian | |
import java.util.Scanner; | |
public class Square | |
{ | |
//Constructs a n x n square filled with zeros. | |
public Square(int n) | |
{ |
This file contains 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
//Employee.java - Jimmy Kurian | |
public class Employee implements Comparable<Employee> | |
{ | |
private String ssn; | |
private String lastName; | |
private String firstName; | |
public int compareTo(Employee emp) |
This file contains 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
//Sum10.java - Jimmy Kurian | |
class Sum10{ | |
public static void main(String[] args) { | |
int s = 1+2+3+4+5+6+7+8+9+10; | |
System.out.println(s); | |
} | |
} |
This file contains 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
//Geometry.java - Jimmy Kurian | |
public class Geometry | |
{ | |
public static double sphereVolume(double r) | |
{ | |
return (4.0 / 3.0) * Math.PI * r * r * r; | |
} |
NewerOlder