The School Design Group Tools for people who build schoolsand the teachers who bring them to life

← All toolkits

Part of Computer Programming I

Unit 3: Input, Output and Strings

Computer Programming II Java, unit 3 of 12

Every value in the first two units was declared in the source and every number printed as untidy concatenated text. Scanner fixes the first and printf fixes the second. Students import and create a Scanner, read words, numbers and whole lines, take a string apart with a closed list of nine methods, and lay out a receipt with money to the cent and aligned columns. The equals method finally answers the comparison problem Unit 2 raised, and the guide points back to that page.

The performance task is The Intake Form. A console program collects at least six values using at least three types, including one whole line of text, and prints a formatted receipt. Students submit a full run transcript, a Prompt Sheet a substitute could follow, and a Validation Note listing what the program checks and what it cannot yet do about a bad answer. The receipt carries the most weight, and it has to come from a real run rather than being typed into a document.

Validation is introduced here and honestly left unfinished. The unit teaches what hasNextInt and hasNextDouble can answer and has students write down what the program ought to do, because acting on the answer needs if, which is Unit 4. Lesson 7 shows the real crash a person causes by typing letters at a number prompt, names it, and says which unit prevents it and which unit catches it. A teacher gets a plan and a substitute plan for each of the ten lessons, keys, tiered handouts, and printf and String reference cards.

The unit runs 10 instructional days.

What's inside

  • A teach plan for each of the 10 lessons, plus a one page substitute plan per lesson
  • Scanner labs: the first program that asks, reading words, reading whole lines, and the nextLine trap
  • The closed list of nine String methods, taught and practiced, with the rest ruled out by name
  • printf labs, from putting a number where you want it to a receipt with aligned columns
  • The validation lesson, including the real InputMismatchException crash and what the program cannot yet do about it
  • Mid-unit checkpoint with answer key, and answer keys for the graded handouts
  • The Intake Form task, the Prompt Sheet, the Validation Note and the rubric
  • Vocabulary cards, a printf format card, a String method card, and sentence frames

Who it's for

  • Teachers who need student programs to become usable by somebody other than their author
  • Programs preparing students for the Certiport input, output and strings objectives
  • Classes that want formatted output taught as a readability standard, not a syntax drill

License, plainly

Adapt it, rename it, put it on your letterhead, use it as your own. The single license covers one classroom or one organization; the school license covers everyone in the building or department. Do not resell it or publish it as a template product. Full terms.

Also useful

Course

Computer Programming II: Java

Twelve units, 180 days, twelve performance tasks, a lesson plan and a substitute plan for every lesson, aimed at Certiport IT Specialist Java.

Course

Computer Programming I

Twelve units, 180 days, 665 documents. Binary to capstone, with a portfolio and interview practice at the end.