Question: just looking for some help with set up, not sure how to start the program Bitmoji Wardrobe . Your bitmoji has a different shirt for

just looking for some help with set up, not sure how to start the program

Bitmoji Wardrobe. Your bitmoji has a different shirt for each day of the week. Some shirts have your initials on them, some do not. Let's display its wardrobe.

Make an object type for your bitmoji. The properties should include its shirt color, whether or not to include the intials, and a string for the day of the week (e.g. "Monday").

Make an array of 7 bitmojis each with a different shirt color and each with its day label.

Modify your drawBitmoji function to accept two more parameters: x, y, height, color, initials where color is the shirt color, and initials is a true if the shirt has initials and false if it does not.

Write a program to display your wardrobe in rows and columns of the seven 80 pixel tall bitmjois. Have the number of bitmojis in a row be a global variable bitmojisPerRow between 2 and 6 (it may be changed) at the top of the program. Note that since the number of bitmojis in the array (7) is a prime number, the last row will have less bitmojis than the other rows. Each bitmoji must have its proper shirt color, initials or no initials, and its label for day of the week.

You must use nested FOR loops with the inner loop calling your drawBitmoji function to draw the bitmoji. Hint: the x and y arguments to the function will be based on the loop counters; the color, whether it has initials on the shirt, and day will be taken from the array of bitmoji objects.

Here is a possible code outline:

 var bitmojisPerRow = 4; //you should be able to change this and have your program still work // Declare an array of app objects var bitmojis = [ {shirColor: color(255,0,0,), initials: true, day:"Monday"}, //add 6 other bitmoji objects for other days ]; /* A for loop using counter i to write out the rows A nested for loop using counter j to write out bitmojis in a row use a conditional to make sure that you have bitmojis remaining to draw (i.e. handle the last row having less bitmojis) draw a bitmoji using a call to your drawBitmoji function with: its x argument depending on j its y argument depending on i its color coming from the array indexed by an expression that depeneds on i and j the initials on the shirt being there depending on the booleans in the array indexed by an expression that depeneds on i and j write the day of the week under the bitmoji drawn from the function. Get the string from the bitmoji object by indexing the array with the same expression using i and j. */ 

Note that there are points in all programs for your use of style:

Comments

Indenting and white space

CamelCase names for variables (including functions) and parameters.

Descriptive name for variables (including functions) and parameters.

Use of functions to break code up

Minimal use of global variables (instead using function parameters and local variables)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!