100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
IRM4724 Assignment 4 (COMPLETE ANSWERS) 2024 (776400) - DUE 5 September 2024 ; 100% TRUSTED Complete, trusted solutions and explanations. R45,47   Add to cart

Exam (elaborations)

IRM4724 Assignment 4 (COMPLETE ANSWERS) 2024 (776400) - DUE 5 September 2024 ; 100% TRUSTED Complete, trusted solutions and explanations.

 13 views  0 purchase

IRM4724 Assignment 4 (COMPLETE ANSWERS) 2024 (776400) - DUE 5 September 2024 ; 100% TRUSTED Complete, trusted solutions and explanations.

Preview 3 out of 18  pages

  • August 25, 2024
  • 18
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
book image

Book Title:

Author(s):

  • Edition:
  • ISBN:
  • Edition:
All documents for this subject (4)
avatar-seller
Jennifer2024
IRM4724 Assignment
4 (COMPLETE
ANSWERS) 2024
(776400) - DUE 5
September 2024 ;
100% TRUSTED
Complete, trusted
solutions and
explanations.




ADMIN
[COMPANY NAME]

,IRM4724 Assignment 4 (COMPLETE ANSWERS) 2024
(776400) - DUE 5 September 2024 ; 100% TRUSTED
Complete, trusted solutions and explanations.
Question 1 (30 Marks) Write a JavaScript function to add the
following books in the library collection for author John
Grisham. The number in the parentheses is the year of
publication. A Time to Kill (1989) The Firm (1991) The Pelican
Brief (1992) The Client (1993) The Chamber (1994) The
Rainmaker (1995) The Runaway Jury (1996) The Partner (1997)
The Street Lawyer (1998) The Testament (1999) The Brethren
(2000) A Painted House (2001) Skipping Christmas (2001) The
Summons (2002) The King of Torts (2003) Bleachers† (2003)
The Last Juror (2004) The Broker (2005) Playing for Pizza
(2007) The Appeal 2008) The Associate (2009) The Confession
(2010) The Litigators (2011) Calico Joe (2012) The Racketeer
(2012) Sycamore Row (2013) Gray Mountain (2014)


To create a JavaScript function that adds John Grisham's books
to a library collection, we'll define a function called
addJohnGrishamBooks. This function will initialize a library
collection (an array) and populate it with book objects, each
containing the book's title and publication year.
Here is the JavaScript function:
javascript
Copy code
function addJohnGrishamBooks() {
// Initialize an empty array to represent the library collection

, const libraryCollection = [];

// List of John Grisham's books with their publication years
const books = [
{ title: "A Time to Kill", year: 1989 },
{ title: "The Firm", year: 1991 },
{ title: "The Pelican Brief", year: 1992 },
{ title: "The Client", year: 1993 },
{ title: "The Chamber", year: 1994 },
{ title: "The Rainmaker", year: 1995 },
{ title: "The Runaway Jury", year: 1996 },
{ title: "The Partner", year: 1997 },
{ title: "The Street Lawyer", year: 1998 },
{ title: "The Testament", year: 1999 },
{ title: "The Brethren", year: 2000 },
{ title: "A Painted House", year: 2001 },
{ title: "Skipping Christmas", year: 2001 },
{ title: "The Summons", year: 2002 },
{ title: "The King of Torts", year: 2003 },
{ title: "Bleachers", year: 2003 },
{ title: "The Last Juror", year: 2004 },
{ title: "The Broker", year: 2005 },
{ title: "Playing for Pizza", year: 2007 },
{ title: "The Appeal", year: 2008 },
{ title: "The Associate", year: 2009 },
{ title: "The Confession", year: 2010 },
{ title: "The Litigators", year: 2011 },
{ title: "Calico Joe", year: 2012 },
{ title: "The Racketeer", year: 2012 },
{ title: "Sycamore Row", year: 2013 },
{ title: "Gray Mountain", year: 2014 }

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Jennifer2024. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R45,47. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83750 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R45,47
  • (0)
  Buy now