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
| public class CircleTest | |
| { | |
| private static void circleTest(int r) | |
| { | |
| for(int i = 0; i <= 1; i++) | |
| { | |
| Circle myCircle = new Circle(2); | |
| System.out.printf("Radius: %.1f%n",(double)Math.round((10 * myCircle.getRadius()) / 10)); | |
| System.out.printf("Diameter: %.1f%n",(double)(10 * myCircle.diameter()) / 10); |
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
| /* | |
| Adam Phillipps | |
| A05 | |
| */ | |
| public class Circle | |
| { | |
| // fields: | |
| private double radius; | |
| // ctors: |
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
| Parameter: -2 | |
| radius = 0.0 | |
| diameter = 0.0 | |
| area = 0.0 | |
| circumference = 0.0 | |
| radius = 0.0 | |
| diameter = 0.0 | |
| area = 0.0 | |
| circumference = 0.0 | |
| Parameter: 2 |
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
| Showing app/views/accounts/settings.html.erb where line #396 raised: | |
| undefined method `turnitin_host' for #<Account:0x007fec42306070> | |
| Extracted source (around line #396): | |
| 393: </tr> | |
| 394: <tr> | |
| 395: <td><%= f.blabel :turnitin_host, :en => "Turnitin Host" %></td> | |
| 396: <td><%= f.text_field :turnitin_host, :class => "turnitin_account_settings", :placeholder => "api.turnitin.com" %></td> | |
| 397: </tr> |
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 PatternsTest | |
| { | |
| private static int userChoice; | |
| private static int size; | |
| public static void main(String[] args) | |
| { | |
| Scanner input = new Scanner(System.in); |
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
| #require "time" | |
| puts "url: " | |
| url = gets.strip | |
| puts "token: " | |
| token = gets.strip | |
| puts "course: " |
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
| require "time" | |
| require "bearcat" | |
| require "highline/import" | |
| #get user input | |
| canvas_domain = ask('what\'s your domain: ') { |q| q.default = 'http://localhost:3000' } | |
| token = ask('what\'s your token: ') { |q| q.validate = ask.length > 10 } | |
| course_id = ask('what\'s the course id: ', Integer) | |
| assignment_name = ask('what assignment name do you want? this can either be different by counting up for each assignment created (Assignment 1, Assignment 2 etc) or you can choose one name for all assignments: ') |
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
| require 'time' | |
| puts "url: " | |
| url = gets.strip | |
| puts "token: " | |
| token = gets.strip | |
| puts "course: " | |
| course = gets.to_i |
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.Arrays; | |
| import java.io.*; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| public class Experiment { | |
| public static void main(String args[]) { | |
| String song = "miasma"; | |
| try { | |
| String stringSearch = "song"; |
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.Arrays; | |
| import java.util.ArrayList; | |
| import java.util.Random; | |
| import java.util.Scanner; | |
| public class BowlingTest | |
| { | |
| private static int gBall; |