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 csv | |
from Tkinter import * | |
f = open('students.csv', 'a') | |
fields = 'Last Name', 'First Name', 'Middle Name', 'Date of Birth(DD/MM/YYYY)', 'Phone Number', 'Graduation Date(MM/YYYY)' , 'TUid' , 'Email Adress' , 'Major' , 'Undergraduate(Yes/No)' | |
f.write (str(fields) + '\n') #I have problem here | |
f.close() |
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
/* Monopoly.java | |
* | |
* CSCI 111 Fall 2013 | |
* last edited November 2, 2013 by C. Herbert | |
* | |
* This package contains code that can be used as the basis of a monopoly game | |
* It has a class of BoardSquares for the board squares in a Monopoly game, | |
* and a main program that puts the squares into an array. | |
* | |
* The main method has code to test the program by printing the data from the array |
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.HashMap; | |
import java.util.InputMismatchException; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Scanner; | |
public class GraphAdjacencyList | |
{ | |
/* Makes use of Map collection to store the adjacency list for each vertex.*/ |
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.HashMap; | |
import java.util.InputMismatchException; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Scanner; | |
public class GraphAdjacencyList | |
{ | |
/* Makes use of Map collection to store the adjacency list for each vertex.*/ |
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
/** | |
* Created by hanseltan on 1/19/14. | |
*/ | |
public class TestCase { | |
int rowBegin; | |
int colBegin; | |
int rowEnd; | |
int colEnd; | |
boolean correctResult; |
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 ReadData | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
String message; // holding the line coming from the source | |
// creating the file class and giving its excat location |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package computer; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; |
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.ArrayList; | |
public class Search { | |
public static void searchComputer(ArrayList<MobileComputer> arrayList){ | |
MobileComputer a; | |
boolean found = false; | |
for (int i=0; i<arrayList.size(); i++ ){ | |
if (arrayList.get(i).getSerialNumber()>arrayList.get(i+1).getSerialNumber()){ |