IRM4724 Assignment 4 (COMPLETE ANSWERS) 2024 (776400) - DUE 5 September 2024 ; 100% TRUSTED Complete, trusted solutions and explanations.
IRM4724 Assignment 4 (COMPLETE ANSWERS) 2024 (776400) - DUE 5 September 2024 ; 100% TRUSTED Complete, trusted solutions and explanations.
IRM4724 Assignment 4 (COMPLETE ANSWERS) 2024 (776400) - DUE 5 September 2024
All for this textbook (6)
Written for
University of South Africa
Development Software IV
All documents for this subject (4)
Seller
Follow
MasterVincent
Reviews received
Content preview
, 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 add the books by John Grisham to a library collection, you
can create a JavaScript function that initializes an array of book
objects, where each object represents a book with its title and
year of publication. Here's how you can implement this
function:
JavaScript Function to Add Books to the Library Collection
javascript
Copy code
function addBooksToLibrary() {
// Initialize an empty array to store the book objects
let libraryCollection = [];
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MasterVincent. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $2.50. You're not tied to anything after your purchase.