[SOLVED] Assignment 10 HTML script

20.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)
Write an HTML script that creates a custom object to store information about a vehicle. The vehicle must have at least four properties, one being direction which will have a value between 0 and 360 degrees. Add two methods called left and right which when invoked will subtract and add 10 degrees respectively to the direction property. Also add a method displayAll that will display all the properties of the custom object in an alert box. Instantiate two variables of the custom object and provide buttons for the three methods defined for each instantiation.

Zip the files created into a zip file called Assignment10.zip and submit the zip file.

Your assignment grade will be based on correctness of JavaScript code, readability of the Javascript code, code comments and final HTML page layout.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.