Data 2: Text
Excercise 1 - 3 // 1. Create five char variables and assign a character to each. Write each to the console / 2. Create two String variables and assign a word to each. Write each to the console / 3. Store a sentence in a String and write it to the console

Data 3: Conversion, Objects
Excercise 1 // 1. Write a program to convert the value of an integer to other data types. Display the conversions in the console

Excercise 2 & 3 // 2. Load an image and display its height and width to the console using the PImage fields. / 3. Explore the String methods and use one or more of them to reconfigure two sentences into one variable

Data 4: Arrays
Excercise 1 // Create an array to store the y-coordinates of a sequence of shapes. Draw each shape inside draw() and use the values of the array to set the y-coordinates of each.

Excercise 2 // Write a function to multiply the values from two array together and return the reslut as a new array. Print the results to the console.

Excercise 3 // Use a 2D array to store the coordinates for a shape of your own invention. Use a for structure to draw the shape to the display window.

Recent Comments