5
Objective: Students will be able to write ASCII art programs Agenda: • Notes Programming Challenges

Objective: Students will be able to write ASCII art programs

  • Upload
    eliza

  • View
    51

  • Download
    0

Embed Size (px)

DESCRIPTION

Objective: Students will be able to write ASCII art programs. Agenda: Notes Programming Challenges. Strings and Quotes. Single (‘) and double quotes (“) around a line of letters and or numbers creates a string. Example: “Game Over” or ‘Game Over’ Both are the same. Prints the same - PowerPoint PPT Presentation

Citation preview

Page 1: Objective: Students  will be able to write ASCII art programs

Objective: Students will be able to write ASCII art programs

Agenda:• Notes

• Programming Challenges

Page 2: Objective: Students  will be able to write ASCII art programs
Page 3: Objective: Students  will be able to write ASCII art programs

Strings and Quotes

1. Single (‘) and double quotes (“) around a line of letters and or numbers creates a string. Example: “Game Over” or ‘Game Over’

Both are the same. Prints the same

2. You can put a quote inside a quote:“Program ‘Game Over’ 2.0”Prints: Program ‘Game Over’ 2.0Single inside double; Double inside singleBoth work. Can’t use same type inside line.

Page 4: Objective: Students  will be able to write ASCII art programs

\ Line continuation character

• Continues statement on the next line• Print \• Computer will see one long line of code• Example: Game Over Version 2.0 Program• Triple quotes used for multiple line quotes

• ASCII art: pictures made from characters on the keyboard

Page 5: Objective: Students  will be able to write ASCII art programs

Today’s Programming Assignments

• Create ASCII art program or programs