Question: 1. (25 points) Create a JavaScript object based upon the provided UML class diagram. Each attribute has a value as follows. Tweet tweetId = 123456789

1. (25 points) Create a JavaScript object based upon the provided UML class diagram. Each attribute has a value as follows. Tweet tweetId = "123456789" timestamp="Wed, 19 Jan 2011 20:57:35 +0000" -tweetid userId = "987654321" -timestamp userName = "Twitter Lover" -userld tweetText = "what a nice sunny day!" -userName -tweetText Write a display() method in JavaScript to output all pieces of data in +display() the object. Embed the javaScript in an HTML file. (20 points) 2. (25 pts): Write a javaScript function called "calcDiscount" to apply a discount to a price of a product. Create a textbox to enter a price another textbox to enter a discount. Create a button to invoke a javaScript function that calculates a discount and displays the result in the document. Create a validation function that checks for no input (blank) textboxes before calculating a discount. 3. (25 points): Create an HTML document with one input text box. Write a javaScript function to change the background color, the font, fontsize and add a border of the textbox. Create a button in the HTML body to invoke the function. 4. (25 pts): Write an HTML file to display a text box where you enter text and add it to a list (you can use a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
