Skip to content

Instantly share code, notes, and snippets.

View froilan-miranda's full-sized avatar

Froilan Miranda froilan-miranda

  • Philadelphia - USA
View GitHub Profile

This document is a brief example of the commonalities and differences of execution controll in several languages

If/Else

Java

if (isTrue){ 
  // run some statements     
}else{
  // run some other statements
}

Too Large Too Small

Objectives

  1. To demonstrate your understanding of objects
  2. To demonstrate your understanding of operators
  3. To demonstrate your understanding of user input
  4. To demonstrate your understanding of functions

Sum or Product

Objectives

  1. To demonstrate your understanding of objects
  2. To demonstrate your understanding of operators
  3. To demonstrate your understanding of user input
  4. To demonstrate your understanding of functions

Alice and Bob Greeting

Objectives

  1. To demonstrate your understanding of objects
  2. To demonstrate your understanding of operators
  3. To demonstrate your understanding of user input
  4. To demonstrate your understanding of strings

#Sum of the Numbers

##Objectives

  1. To demonstrate your understanding of objects
  2. To demonstrate your understanding of operators
  3. To demonstrate your understanding of user input/output

##Overview

1) Create GitHub account
2) Set up your SSH Keys - https://help.github.com/articles/generating-an-ssh-key/
3) Clone 'Git and GitHub' presentation files to your local computer - https://github.com/froilan-miranda/git-presentation (using ssh)
4) Git-Lab-01
a. Clone Git-Lab-01 to your local computer - https://github.com/froilan-miranda/Git-Lab-01
b. Create a new branch
c. In your new branch, edit the README.md file to have your name on it

1)Create 1 query that INSERTS 3 address VALUES and only INSERTS non-duplicate records in the home table. At least 1 address should be a duplicate of an address that already resides in the table.

2)Create 1 query that INSERTS 3 people into your people table. The query should make sure these entries exist and if they do only update the non-primary key information. 2 of the VALUES should be entries already existing in you table

Devise Report

  • show all the people in your address table
  • only if you know their mobile number
  • show name, address and birthday
  • order by month, so January birthday are first

Devise Report

  • Output all information for all people including their home information

#MySQL Lab#

  1. Create a addresses database

  2. Create two tables within that database: people, home.

  3. Add 10 entries into the people table and their respective address' and home numbers to the home table. make sure two or more people share the same address

People table will include:

  • First Name - varchar(50) Not Null default ‘’
Java Lab
Type Information
Step 1 - Create a base class
example: class A
Step 2 - Create 3 classes that extend the base class
example: class B extends A
Step 3 - Write a program that creates 10 random instances of the extended classes and loads them in an List that only accepts instances of the parent class.