Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am having a little trouble comprehending what question number 4 below is asking. It says 4. Copy exercise3.html and name it exercise4.html. Revise FormatName

I am having a little trouble comprehending what question number 4 below is asking. It says 4. Copy exercise3.html and name it exercise4.html. Revise FormatName so that it uses three variables, one for each part of the users full name.

image text in transcribed

Here is the code I had for exercise 3

Exercise 1

Full Name Formatter

Enter your full name:

onclick="format()">


function format(){

document.getElementById('outputDiv').innerHTML = 'Name entered:' + ' ' + document.getElementById('First Name').value + ' ' + document.getElementById('Initial').value + ' ' + document.getElementById('Last Name').value+" ";

document.getElementById('outputDiv').innerHTML+='Name formatted:' + ' ' + document.getElementById('Last Name').value+"," + ' ' + document.getElementById('First Name').value + ' ' + document.getElementById('Initial').value

}

What and where do I need to revise so the code will fit with what the question is asking?

AutoSave Off assignment Search Dylan Miller DM 0 X File Home Insert Draw Design Layout References Mailings Review View Help Share Comments Calibri 11 A A Aar av == = = [ X Cut LECopy Format Painter 1 No Spac... Heading 7 Subtle Em... Emphasis Find c Replace Select Paste BIU ab X, X ADA = 1 Title Dictate Sensitivity Clipboard Font Editing Voice Sensitivity Paragraph Styles 1. LITLI XLIII.1. Hir.2...T.3.LITI.4LITHI.5. III.6.1.XII.7.1 H below the button to display the output. d. Add an 'onclick' event handler so that whenever the user clicks the 'Calculate' button, the event handler will invoke the user-defined function, Caletine. e. Calstime must extract the values from the text boxes, use them to compute the number of seconds CS 11200 Survey of Computer Science Spring 2019 the computer takes to execute the given number of instructions, and then display the output shown in Figure 4. Processing Speed (in GHz): 4.6 Instructions to process(in billions of instructions): 500 Calculate Page 3 of 4 24 of 520 words C) Focus 80% 3:55 PM Type here to search AS 72 42 3/1/2021

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions