Pinned Repositories
accountbook-ja
コマンドラインツールからWebアプリ作成までを体験できるハンズオンです
card-game-war
cs-video-courses
List of Computer Science courses with video lectures.
DataStructureAndAlgorithms
Write code that run faster, use less memory and prepare for your Job Interview
dl4us
free-programming-books
:books: Freely available programming books
howtheytest
A collection of public resources about how software companies test their software
introducing-python
An introduction to Python
ods
Open Data Structures の日本語ソースコード
r1y0u's Repositories
r1y0u/cs-video-courses
List of Computer Science courses with video lectures.
r1y0u/accountbook-ja
コマンドラインツールからWebアプリ作成までを体験できるハンズオンです
r1y0u/card-game-war
r1y0u/DataStructureAndAlgorithms
Write code that run faster, use less memory and prepare for your Job Interview
r1y0u/dl4us
r1y0u/free-programming-books
:books: Freely available programming books
r1y0u/howtheytest
A collection of public resources about how software companies test their software
r1y0u/introducing-python
An introduction to Python
r1y0u/ods
Open Data Structures の日本語ソースコード
r1y0u/Python
All Algorithms implemented in Python
r1y0u/react-native
r1y0u/self-taught-datastructure
stack and queue in python
r1y0u/simple-webscraper
Simple webscraper
r1y0u/staff-list
Writing a class called Staff. It contains methods that manipulate an ArrayList of Strings representing the names of staff members. The constructor takes an ArrayList of String names as a parameter. In addition to the constructor, you need to implement the following methods
r1y0u/stock_prediction
r1y0u/Student-Grade
A Student has a name and an ArrayList of grades (Doubles) as instance variables. Write a class named Classroom which manages Student objects.
r1y0u/Temperature-map
Creating a crude temperature map. A TemperatureMap class indicates areas of different temperature by the use of different colors. Our map will represent a square area. The temperatures are contained in a 2d int array. Each element in the array represents the temperature in a square area 20 miles on a side. We assume the temperature is the same through-out the area. The constructor takes a 2d array of ints as a parameter Provide these methods: public void drawMap() creates a map consisting of colored squares. Each square represents the temperature indicated by an element in the array. There is a one-to-one correspondence between the array elements and the squares on the map. The upper left hand corner of the map is at (0, 0). The squares are 10 px X 10 px. Draw the rows and then the columns The color of the square is determined as follows: Color.BLUE if the temperature is less than or equal 32° Color.GREEN if the temperature is greater than to 32° and less than or equal to 50° Color.ORANGE if the temperature is greater 50° but less than or equal to 85° Color.RED if the temperature is greater than 85° Write a private helper method to get the color. public int maxDifference() gets the difference between the highest and lowest points in the map as a positive number.
r1y0u/Tile-Floor
In this problem you will model a tile floor. The tile floor consists of some number of rows of (filled) colored squares. Each row contains some number of squares. Each square has a side of 10 pixels and is separated from its neighbors by 3 pixels. Each square is a random color: either red, green, blue, black, and cyan. Complete the class TileFloor. Use the constants defined for you in the starter code. You must use nested loops. Draw the rows and then the columns to match Codecheck output. For the colors, use the Color constants in the Color class. (Color.RED etc) The TileFloor will have two constructors public TileFloor( int x, int y) where x and y are the coordinates of the upper left-hand corner of the floor. Create a Random object using the constructor that takes a seed. (Done for you) Use 8 as the default number of rows and 6 as the default the number of columns. (Use the constants defined for you in the starter) Do not draw in the constructor. public TileFloor( int x, int y, int rows, int columns) where x and y are the coordinates of the upper left-hand corner of the floor. rows is the number of rows and columns is the number of squares in each row. Create a Random object using the constructor that takes a seed. (Done for you) . Do not draw in the constructor. The TileFloor will have these methods public void draw(Graphics2D g2) draws the floor with the rows filled squares at the x, y coordinates. Use a nested loop private Color randomColor() randomly returns a Color object either red, green, blue, black, or cyan. Use the Random object you created in the constructor to determine which to return. You need to use if / else if / else statement structure. public void setX(int x) sets a new x coordinate. (Implemented for you) public void setY(int y) sets a new y coordinate. (Implemented for you) There is trick you can use to determine which color to return. Notice each color has been assigned an integer 0 to 4 in the constants. You can generate a random number between 0 (inclusive) and 5 (exclusive). If the random number is RED (0), return Color.RED. If the random number is GREEN (1), return Color.GREEN. Use the defined constants, not the numbers 0, 1 etc.
r1y0u/TypeScript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
r1y0u/Word-Processor
Write a class to manage an array of Strings. Call the class WordProcessor. WordProcessor constructor takes no parameters but initializes the array so it can hold 8 elements. Define a constant for 8, perhaps INITIAL_CAPACITY. Provide methods: public void add(String toAdd) adds the given string at the end of the partially filled array. public void add(String toAdd, int index) adds the String at the specified index. Grow the array by doubling its size if necessary and then add the element public void removeAdjacentDuplicates() If elements at adjacent indexes are equal, remove one private void growIfNeeded() checks to see if the array is full. If it is, it doubles the size of the array and copies the elements to a the new array in the same order. public String toString() returns a string representation of the array. The string starts with "[" and ends with "]" The elements of the array are separated by commas. There should be no comma at the beginning or end of the list.