Data 2
e1. Create fi ve char variables and assign a character to each. Write each to the console.
e2. Create two String variables and assign a word to each. Write each to the console.
e3. Store a sentence in a String and write it to the console.
Data 3
e1. Write a program to convert the value of an integer to other data types. Display the conversions in the console.
e2. Load an image and display its height and width to the console using the PImage fields.
e3. Explore the String methods and use one or more of them to reconfi gure two sentences into one variable.
Data 4
e1. Create an array to store the y-coordinates of a sequence of shapes. Draw each shape inside draw() and use the values from the array to set the y-coordinate of each.
e2. Write a function to multiply the values from two arrays together and return the result as a new array. Print the results to the console.
e3. 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.
Comments