Skip to content

Instantly share code, notes, and snippets.

View lbattaglioli2000's full-sized avatar
🏠
Working from home

Luigi Battaglioli lbattaglioli2000

🏠
Working from home
View GitHub Profile
@lbattaglioli2000
lbattaglioli2000 / Palindrome.java
Created September 18, 2020 02:32
for kory baby <3
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.StringTokenizer;
public class Palindrome {
public static void main(String[] args) throws IOException {

Registration Re-Design Proposal

When an event is created, there needs to be the ability to add various Addon objects to that Event object. There will need to be various types of Addon's that we can create, which will be create-able from the admin panel.

The Addon Interface

The Addon interface will act as a "contract" so to speak. It will define the basic methods that are needed for an object to be considered an Addon while leaving the actual implementation/functionality ambiguous, and tentative for each implementation of the Addon interface.

The Addon interface will have several methods, and I thought these were the most appropriate:

@lbattaglioli2000
lbattaglioli2000 / Fmax.java
Last active December 10, 2019 22:08
CISS110 Fmax Array Assignment
import java.util.Scanner;
class Fmax {
public static void main(String[] args)
{
int[] fmax = fillFmax(new int[13]);
// int[] testingFmaxArray = {85, 78, 97, 88, 77, 62, 101, 98, 89, 105, 87, 74, 67};
int max = maxFmax(fmax);
import java.util.Scanner;
/**
* Luigi Battaglioli
* Year Assignment
*/
public class Year {
public static void main(String[] args)
{
// Create a new Scanner object to get user input.
import javax.swing.JOptionPane;
import java.util.Random;
/**
* @author lbattaglioli
* @version 1.0.0
*
* This program asks if you need a ladder, and then
* tells you about some random ladder leaning against
* some random house.
import java.util.Scanner;
public class Baseball {
public static void main(String[] args){
// Create an instance of the Scanner class to get user input.
Scanner s = new Scanner(System.in);
// Initalize variables for our information
int singles, doubles, triples, homeRuns, atBats;
@lbattaglioli2000
lbattaglioli2000 / MyGist.java
Created October 1, 2019 17:27
A test Gist to show you how a Gist works!
public class MyGist {
public static void main(String[] args){
System.out.println("Java can be fun, you just need a good teacher lol! I'm here to help!");
}
}
import java.util.Scanner;
/**
* Chargecard Java Applet
*
* @version 1.0
* @author Luigi Battaglioli
*
*/
class Customers {
@lbattaglioli2000
lbattaglioli2000 / Room.java
Created September 14, 2019 16:07
Room.java assignment
public class Room {
/**
* Luigi Battaglioli
* Exercise Room3d
*
* A program that initializes the length, width, and height of a room.
* Then, taking the floor of the room, it will then calculate the room's
* area and perimeter. Then, taking the room as a rectangular solid or
* rectangular prism, it will calculate the room’s surface area and volume.
@lbattaglioli2000
lbattaglioli2000 / trash.java
Created April 10, 2018 19:16
doesn't work :/
public class MyProgram
{
public static void main(String[] args)
{
scubey();
}
public static void scubey()
{
for(int i = 0; i <= 99; i++)