Details of this Paper

Programming Assignment 1




Create a JavaScript program that declares and prints an array that includes at least 20 of your favorite songs. For each song, determine the best means for storing the year it was published. Using JavaScript, print each song's name along with the year it was published. The print logic must use a loop. (You may use archives for song information. The data really do not matter: The programming does.);Programming Assignment 2;The sum of the lengths of any two sides of a triangle must be greater than the length of the third side. For example, the numbers 3, 4, and 5 can form a triangle because 3+4 > 5, 4+5 > 3, and 5+3 > 4. In contrast, the numbers 1, 2, and 5 cannot form a triangle because 1+2 < 5. Thus, if you are given any three integers, you can determine whether they could possibly form a triangle or not by applying this general principle.;Write a JavaScript program that allows a user to input three integers using text boxes in a form. (Hint: You need to use the built-in parseInt function to convert the input strings to integers.) Test the three integers to determine if they can be formed into a triangle using the rule given above. Also test if the resulting triangle would be a right triangle using the Pythagorean theorem, namely that the square of the hypotenuse (the longest side) equals the sum of squares of the other two sides. Display an alert box to inform the user whether their integers can form a triangle or a right triangle (tell them which), or if the integers cannot form a triangle. Continue accepting sets of three integers and testing them until the user decides to quit.;Programming Assignment 3;Create an online purchase order form for the U-Built-It Hardware Company. The store offers only expensive high-quality hand tools that are made in Europe. These tools include planes, gouges, hammers, chisels, saws, and screwdrivers. Write a JavaScript program that collects the buyer's order and complete billing and shipping information. Use selection lists for the buyer to pick standard items. Include a checkbox that allows the user to say that the shipping address is the same as the billing address. Verify that all required fields are complete. Provide a submit button for the user to indicate they are done and a reset button to clear the form to allow them to try again. Use alerts to inform the user if information is missing and focus on the missing field for them to provide the needed data.;Programming Assignment 4;Create an html document that includes a JavaScript program that creates a new constructor function named Automobile in the document head. Include at least five properties in the object definition, such as make, model, color, engine, seats, and so forth. Then assign the values of your car to each of the Automobile properties. Print the properties to the screen.


Paper#71865 | Written in 18-Jul-2015

Price : $42