100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

IRM4724 Assignment 4 2024 (776400) - DUE 5 September 2024

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
27-08-2024
Written in
2024/2025

IRM4724 Assignment 4 2024 (776400) - DUE 5 September 2024

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
August 27, 2024
Number of pages
8
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

IRM4724 Assignment 4
2024 (776400) - DUE 5
September 2024
QUESTIONS WITH COMPLETE ANSWERS




[DATE]
[COMPANY NAME]
[Company address]

, IRM4724 Assignment 4 2024 (776400) - DUE 5 September 2024



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)

Here’s a JavaScript function that adds the specified books to a library collection for the
author John Grisham. The function uses an array of objects where each object
represents a book with its title and year of publication.

javascript
function addBooksToLibrary() {
const library = [];


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 },

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
brighttutor10 Central Michigan University
Follow You need to be logged in order to follow users or courses
Sold
85
Member since
2 year
Number of followers
47
Documents
987
Last sold
2 months ago

4.1

8 reviews

5
4
4
1
3
3
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions