Question: You are to create a method named showInfo() on the Computer objects that takes in five strings, representing the ID attributes of HTML elements that

You are to create a method named showInfo() on the Computer objects that takes in five strings, representing the ID attributes of HTML elements that will display the various Computer properties. For example, if you have a variable named myComputer containing a Computer object, you would call: myComputer.showInfo("nameID", "manufID", "descID", "imgID", "ramID"); where nameID, manufID, descID, imgID, and ramID are the id attributes of various elements in the web page. You should use a single showInfo() method for all Computer objects.

The amount of RAM displayed should be the result of the convertRAM() method for that Computer.

Because the Computer objects are stored in an array, you are to create a variable that contains the index of the currently displayed Computer. You are to add event handlers to the left arrow and right arrow images that will cause the previous and next Computers to be displayed.

You should ensure that the first computer is displayed when the page loads using appropriate JavaScript commands.

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