Skip to content

Instantly share code, notes, and snippets.

View Rdilorenzo73's full-sized avatar

Raymond DiLorenzo Rdilorenzo73

View GitHub Profile
@Rdilorenzo73
Rdilorenzo73 / Description.md
Last active November 4, 2018 19:04
Intro to Programming Assignment - Student Instructions

Overview:

Create a Java program that simulates a number guessing game. The computer must randomly choose an integer in the range of 1-10 for the user to guess. The user will then repeatedly input guesses at that number until it is found. After each incorrect guess, the computer will offer output indicating whether a guess was too high or too low to ease the discovery process. The program ends with the computer outputting that the secret number was found, and that the game is over.

Create a class called RandomGuessGame

This class uses the Scanner class for input. Import the Scanner class, as we have practiced in class.

Class variables

@Rdilorenzo73
Rdilorenzo73 / Description.md
Last active March 29, 2022 12:43
Whack A Mole Console Game

A Java assignment taken from the course: Software Development Fundamentals

I did not create this assignment. The coded solution is mine. This was a Java practice project which helped me remember how to work with a 2D array.


Create a class called WhackAMole.

It contains three integer instance variables called score, molesLeft, and attemptsLeft. Make one more instance variable called moleGrid which is a 2-dimensional array of chars.

@Rdilorenzo73
Rdilorenzo73 / ADescription.md
Last active November 4, 2018 19:15
Java String handling

A Java exercise taken from Exercism.io

I did not create this assignment. The coded solution is mine. This was a Java practice project which helped me with String manipulation methods.


Bob is a lackadaisical teenager. In conversation, his responses are very limited.

Bob answers 'Sure.' if you ask him a question.

He answers 'Whoa, chill out!' if you yell at him.

@Rdilorenzo73
Rdilorenzo73 / DNA.java
Last active November 4, 2018 19:18
Java Data Structure - nucleotide count
import java.util.LinkedHashMap;
import java.util.Map;
/*
java solution to http://rosalind.info/problems/dna/
*/
public class DNA {
private String theDNA;
public DNA(String string) {
@Rdilorenzo73
Rdilorenzo73 / .block
Last active February 10, 2018 21:41
D3 Grouped Bar Chart
license: gpl-3.0
height: 500
scrolling: no
border: yes