Question: Summary ( we are NOT using functions yet ) ACME inc. is looking for new product ideas. You are under a time crunch, so you

Summary (we are NOT using functions yet)
ACME inc. is looking for new product ideas. You are under a time crunch, so you decide to write a program to come up with randomly generated product ideas.
Expected Output
Provide first set of values
-------------------------
Enter an adjective: > hairy
Enter a noun: > top
Enter a noun: > wig
Provide second set of values
-------------------------
Enter an adjective: > sour
Enter a noun: > round
Enter a noun: > lemon
My five generated products!
-------------------------
shiny darkness plant
hot thought wig
hairy prayer repellant
yellow knowledge trap
fast hole wig
Directions
Create 3 arrays named adjective, nounIdea, and nounObject with 8 values each .
Definition of tangible - perceptible by touch, something you can touch with your hand.
nounIdea should contain nouns that are not tangible objects.
Examples: boredom, thought, life, travel
nounObject should contain nouns that are tangible objects.
Examples: car, brick, pumpkin, snow
For each of the three arrays ask the user to add two values and have the program add them to the array.
Use JavaScript to generate random numbers to output 5 randomly generated product names using the following format.
adjective nounIdea nounObject
Tips
You will need Math.random() to generate the random numbers.
Array indexes start at zero.
Try to achieve things in this order.
Create the three arrays.
Output a single product name.
Output a random product name.
Output 5 random product names.
Add the user input. (By doing this part last you will not have to type the input each time you run the program!)

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 Programming Questions!