Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Arrays A A) Create an array with the names of your top 5 bands B) Loop through the array you created and display each of

Arrays A

A) Create an array with the names of your top 5 bands

B) Loop through the array you created and display each of your choices in an un-ordered list like below

My #1 band is Prince and the Revolution

My #2 band is Michael Franti and Spearhead

My #3 band is Ben Harper and the Innocent Criminals

My #4 band is The Visionaries

My #5 band is Atmosphere

C) In addition to displaying your top 5 bands, Create another loop that will add to the current list or display below the original list. This list will display the name of your favorite band according to the suffix that is based on the position in the array.

For example, if it is the first position of the array, it is the 1st band, second position, is it the 2nd band, etc

My #1 band is Prince and the Revolution

My #2 band is Michael Franti and Spearhead

My #3 band is Ben Harper and the Innocent Criminals

My #4 band is The Visionaires

My #5 band is Atmosphere

My 1st favorite band is Prince and the Revolution

My 2nd favorite band is Michael Franti and Spearhead

My 3rd favorite band is Ben Harper and the Innocent Criminals

My 4th favorite band is The Visionaries

My 5th favorite band is Atmosphere

Arrays B

A) Create an array of objects( at least 5), each object will describe a book that has the following properties:

title (string)

author (string)

alreadyRead (boolean- mean you already read the book)

B) Iterate through the array of Books and display the title and author depending on weather you have read the book or not.

If you read the book, display:

I have already read "The Grapes of Wrath" by John Steinbeck

If you have not read the book, display

You still have to read "The Grapes of Wrath" by John Steinbeck

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

Example. Evaluate 5n+7 lim 7-00 3n-5

Answered: 1 week ago

Question

=+j Explain the relationship between unions and MNEs.

Answered: 1 week ago