Author Archives: graceliana@gmail.com

First: Welcome

Welcome to Intro to Java and Object-Oriented Design!!!

In this class you will learn the java programming syntax
HelloWorld

Design algorithms to calculate or compute mathematical numbers like the Fibonacci sequence
flowchart1

Write programs to draw shapes
Screen Shot 2016-09-02 at 5.36.39 PM

Implement programs to animate an image
duke

and much more!!

First: Your programs format

Screen Shot 2014-09-07 at 9.29.42 PM

Your programs format:
1. Make sure you have a header: Author’s name, date and description (assignment)
2. Type the code from the class website.
3. Name your file as YI_HelloWorld (YI means your initials)
4. As comments enter your input.
5. Run it.
6. As comments enter your output.
7. Copy and paste your program here.
8. Attached the “.java” file.

Errors

  • Compile-time errors
  • Run-time errors
  • Logical errors

Q + A

Homework:
Web Exercise 1-4

First: drawing in a piece of paper – Privacy violations

Classwork:
Visit edmodo.com
Create and account or join with the code for your period.
Find the code on the home page.
Please use your full name as your screen name.

Designing an algorithm

Find a partner. You will need paper and pencil/pen.
Activity 1:

Your teacher will hand you a drawing in a piece of paper.

  • Don’t let your partner see the drawing.
  • Your partner will draw the same shape on his/her paper by following your “set of instructions”.
  • Write down the instructions as you give them.
  • You can not use direct words that describes the image.
  • Once finished, both look at the drawings and compare them.
  • If the drawings don’t match, go back to your instructions and change them until you are satisfied.
  • You and your partner reverse roles.
  • Do the instructions need to be revised?

Homework:

Read the following articles linked bellow and answer questions on edmodo.com
Privacy violations – the dark side of social media
Screen Shot 2014-09-04 at 6.12.33 PM

Digital Explosion: Why Is It Happening, and What Is at Stake?
Screen Shot 2014-09-04 at 6.27.26 PM

First: Java Program Syntax

First Programs – Creating your first program …

1st. Create a folder “Java2019_PX” in your Documents folder.
2nd. Create a folder “Unit1” in your “Java2019_PX” folder.
3rd. Create a google doc “JavaIntroNotes_YI” in your drive and share it with gracielaelia@pps.princetonk12.org.
4th. Back up your work to the drive of your choice or use edmodo.com Backpack feature.

First Programs – Ex 1- 5 Basic Java Programs

1. Write a program TenHelloWorlds.java that prints “Hello, World” ten times.

2. Describe what happens if, in HelloWorld.java, you omit
public
static
void
args

3. Describe what happens if, in HelloWorld.java, you omit

a. the ;
b. the first ”
c. the second ”
d. the first {
e. the second {
f. the first }
g. the second }

4. Describe what happens if you try to execute Hi.java with:
Hi.java:

public static void main(String [] args)
{
System.out.println(“Hello ” + args0);
}

In terminal or BlueJ
Run these lines in terminal/command line.

java Hi
java Hi @!&^%
java Hi 1234
java Hi.class Bob
java Hi.java Bob
java Hi Alice Bob

5. Modify UseArgument.java to make a program UseThree.java that takes three names and prints out a proper sentence with the names in the reverse of the order given, so that for example, “java UseThree Alice Bob Carol” gives “Hi Carol, Bob, and Alice.”.

Please take notes and share your document with me.
Use mrseliaphs@gmail.com to share your notes.
If you need/want to email me for any reason, use gracielaelia@princetonk12.org

edmodo.com – First Programs – Ex 1- 5 Basic Java Programs

First: Connecting Related Objects Proof of Concept

This is a 2- or 3-student group assignment. Include everyone’s names. Each of you have to submit the work.
Connecting words that are not easily related is a monumental task. Research on this topic has been going on for decades and there are many approaches or “philosophies”.
Your assignment is as follows:

  1. Find online sources of information about projects and/or research done in institutions . Do not limit yourself to only one. Find at least two of them and compare their approach.

  2. Describe both graph generators you found online. Pick one and describe the approach about manipulating “words” as data to be connected in some way so you can use it to draw a “connected words graph” yourself by hand.

  3. “Create” your own approach and write a short paragraph describing your strategy to accomplish the task. Generate a graph with your own model.
    To be more specific on part 2, you want to search for understanding on how the words on the animation below are selected. You have to be able to understand it well enough to use that algorithm to generate your own graph when given a random word. You will be allowed to use a “dictionary”, “thesaurus” and any other “word-analysis” available but you cannot use a “graph” generator. You should test your “algorithm” with a word of your choice. Use scrap paper from the paper bin by the student station (the cart between the 2 windows in the back).

The assignments is completed when you turn in 2 connected objects graphs and 3 descriptions.

NOTE: the animation is not of interest in this research. https://visuwords.com/soccer

Notes from your teacher: This assignments is about research, replication and creation.

a) In research you learn how the graph generators work. You understand it well enough so you can talk about it clearly.

b) Since you know the process you can replicate the outcome by generating your graph by hand.

c) Once you learn what you research and replicate it the outcome by hand, you should have a deep understanding of how graph generators work. At this point you be able to create your own. It might be simpler, more complex or totally different. However, your graph must be true to the algorithm/description you define.

CS Tools: Practice-it!

     click here     

Practice-It is a web application to help you practice solving Java programming problems online.

To use Practice-It, first create an account, then choose a problem from our list. Type a solution and submit it to our server. The system will test it and tell you whether your solution is correct.

Marty Stepp, of Stanford University Computer Science, is the primary developer of Practice-It, although Practice-It is an independent tool not directly affiliated with Stanford University nor any other university. Marty runs a similar site, CodeStepByStep.com, that offers a different selection of coding problems for Java, C++ and Python.

Current contributors to Practice-It also include:

  • Melissa Galloway, University of Washington
  • Ryan Rowe, University of Washington
  • Whitaker Brand, University of Washington

Some notable past contributors to the development and administration of Practice-It are:

  • Katlyn Edwards
  • Zack Cava
  • Jessica Miller

Some former students and TAs who have authored or ported a significant number of problems into Practice-It include:

  • Roy McElmurry
  • Robert Baxter
  • Leslie Ferguson

Also thanks to:

  • Zorah Fung for drawing the Practice-It logo image and mascot
  • Glen Herrmannsfeldt from Caltech for contacting us with many bug fixes and suggestions for improvement to the quality of the system
  • Countless other teaching assistants and colleagues who added problems

Practice-It is inspired by similar tools such as CodingBatJavaBall, and CodeWrite.

Our Privacy Policy

First: Connecting Related Objects

1. Form a group of students and create your own graph with related objects. Include your initials on the line connecting the objects.

2. For each item make a list of all the objects that are directly connected to it.

3. Submit to edmodo.com the following items:
a. The name of your team mates.
b. A picture of your graph.
c. The list you created in part 2.