I hereby claim:
- I am dancoughlin on github.
- I am dmc186 (https://keybase.io/dmc186) on keybase.
- I have a public key ASCy5mPeiInwr1fP8EzHumvQguHzAo5kUHbU9_jyFOJZ1Qo
To claim this, I am signing this object:
$npm start | |
> [email protected] start /Users/dmc186/mypubs | |
> node --harmony addItems.js | |
Uploading items: | |
Unhandled rejection Error: Forbidden | |
at Message.Object.defineProperties.error.get (/Users/dmc186/mypubs/node_modules/zotero/lib/message.js:196:19) | |
at Message.<anonymous> (/Users/dmc186/mypubs/node_modules/zotero/lib/client.js:150:21) |
require 'csv' | |
namespace :break_up_csv do | |
desc "take the OSP file and merge it with the active AI User accounts | |
to get a file (found.xls) that has OSP grant data with all user info | |
and another file (not_found.xls) that includes the OSP grant data that | |
doesn't have matching users" | |
task split_files: :environment do | |
puts "open data file." |
/* | |
a: | |
Create a two dimensional array that is | |
5 rows (outer loop) referenced with first set of brackets [x][] | |
by | |
10 columns (inner loop) referenced with second set of brackets [][x] | |
put a random number between 1-100 in each position. | |
b: | |
Print out all the numbers in a 5 row by 10 column format |
String[][] results = | |
{ | |
{"homeLabs", "1500 sq feet", "169.99", "4.6", "HME020030N"}, | |
{"Inofia", "1050 sq feet", "130.04", "4.4", "GA2"}, | |
{"Yaufey", "1500 sq feet", "159.99", "4.5", "163A"}, | |
{"homeLabs", "4500 sq feet", "204.99", "4.6", "HME020031N"} | |
}; | |
String[] labels = {"Manufacturer", "Coverage", "Price", "Avg Rating", "Model #"}; | |
for (int i=0; i < results.length; i++) { | |
System.out.printf("%15s%n", "Product " + (i+1)); |
// part a | |
String[][] songs = { | |
{"Come Together", "Something", "Maxwell's Silver Hammer", "Oh! Darling", "Octopus's Garden", "I Want You"}, | |
{"Here Comes the Sun", "Medley", "Her Majesty" } | |
}; | |
for (int i=0; i < songs.length; i++) { | |
System.out.println("Side: " + (i+1)); | |
for (int j=0; j < songs[i].length; j++) { | |
System.out.println(songs[i][j]); | |
} |
/* | |
8. Write a Java code snippet to ask a user how many classes they are taking this semester. | |
Create an array of courses to based on that input, and then ask the user | |
to enter each course and and put those in the courses array. When the user has | |
completed entering their courses, print out the list of courses under the | |
heading "----Sprint 2019 Course Schedule------". Final output should be something like: | |
----Sprint 2019 Course Schedule------ | |
IST140 | |
MATH110 | |
ENG015 |
I hereby claim:
To claim this, I am signing this object: