Exam on Wedenesday

Two parts: 

  (a) one program to write

https://www.cs.indiana.edu/classes/c212-dgerman/fall2016/mesg.html

One randomly selected program in the range: 4-14 (inclusive). 

  (b) ten random questions from the second part of this document

https://www.cs.indiana.edu/classes/c212-dgerman/fall2016/mesg.html

All these questions have answers at the end of the chapter. 

I want to say that part (b) can be used as a make-up for the first exam. 

Regardless the grade for this exam is average between the two sections. 

The lab acts as a self-assessment/corrections stage just like last time. 

You can make up assignments and tests in person in LH204 with me. 

If you make an assignment mail me the code in advance in Canvas. 

https://docs.oracle.com/javase/tutorial/reallybigindex.html

https://docs.oracle.com/javase/tutorial/uiswing/components/toplevel.html

// file: One.java

import javax.swing.JFrame;

public class One extends JFrame {
  public One() {
    this.add(new Projector());  
  }
  public static void main(String[] args) {
    One a = new One(); 
    a.setVisible(true); 
    a.setSize(400, 500); 
  }
}

// file: Projector.java

import javax.swing.JComponent;
import java.awt.Graphics;
import java.awt.Color;

class Projector extends JComponent {
  public void paintComponent(Graphics g) {
    g.setColor(Color.YELLOW); 
    g.fillOval(30, 30, 120, 120); 
    g.setColor(Color.BLUE); 
    g.drawOval(30, 30, 120, 120); 
    g.setColor(Color.RED); 
    g.drawString("How are you?", 50, 80); 
  }
}

--

Attendance: Chris Dillon, Skyler Meyer, Drake White, Clarence Blake Sormillon, Benjamin Braun, 
Jordan Koontz, Elizabeth Crichlow, Magdalena Lara, Tobias Smith, Yuanyuan Tang, Tianqi Cai, Amara
Kelikian, Nicolas Petrovich, Leanne Mroz, Rui Xi, Chad Kowaleski, Jiahao Ye, Alex Koopman, Chetan
Chauhan, Olivia Pfingston, John Kirk Harlow, Graham Halsey, Mitch Stalbaum, Max Thielmeyer, Kendall
Noel, Quinton Brown, Glenn Kurtz, Menghan Xue, Yixuan Wang, YiQing Shi, Josh Lipe-Melton, Chris
Canaday, Mitchell Thomas, Kyle McWilliams, Kyle Riley, Vaishali S, Becca Morris, Nova Richardson, 
Younghun Kim, Justin Farrer, Derek Erwin. 

Second lecture: Esteban Guevara, Ben Stahl, Elissa Booras, Jason Lam, Sean Panayi, Tyler Carlson, Michael 
Solberg, Jacob Adley, Cory Thecht, Hyung Man Bae, Sam Pilgrim, Adel Beitvashahi, Tristen Sizemore, Eduardo 
Vidaurra-Rodrigues, Kaitlen Gubert, Christopher Audretsch, Baojie Zhang, Alex Lutz, Shengnan Ma, Madison 
Black, Timothy Jones, Miguel Palabrica, Andrew Timothy, Ross Richardson, Ryan Hartford, Young Ho Yoo, Jacob
Teed, Ziwei Zhou, Griffin Park, Seth Law, Wenhao An, Yaodong Chen, Cheng Jiang, Jackson Stanton, Caleb Donoho, 
Tom Mackey, Marc Botts, Yutong Lu, Vinoth Aryan, Risheng Jia, Yubang Ou,m Michael Herron, Dian Zhi, Ruifeng
Zheng, Jing Chen, Cynthia Moreno, Mange Chen, Nanjie Chen, Hasan Y Ahmed, Lin Jiang, Nick Konich. 

--