Questions
<!DOCTYPE html> <html lang="en"> <head>    <title>Form Display Example</title>    <script type="text/javascript">    function display() {...

<!DOCTYPE html>
<html lang="en">
<head>
   <title>Form Display Example</title>
   <script type="text/javascript">
   function display() {
   dispWin = window.open('','NewWin','toolbar=no,status=no,width=300,height=200')
  
   message = "<ul><li>NAME:" + document.form1.name.value;
   message += "<li>ADDRESS:" + document.form1.address.value;
   message += "<li>PHONE:" + document.form1.phone.value;
   message += "</ul>";
   dispWin.document.write(message);
}
</script>
</head>
<body>
   <h1>Form Display Example</h1>
   <p>Enter the following information. When you press the Display button, the data you entered will be displayed in a pop-up.</p>
   <form name="form1" method="get" action="">
   <p>NAME: <input type="text" name="name" size="50" /></p>
   <p>ADDRESS: <input type="text" name="address" size="50" /></p>
   <p>PHONE: <input type="text" name="phone" size="50" /></p>
   <p><input type="button" value="Display" onclick="display();" /></p>
   </form>
</body>
</html>

Above is the code from the text and below is the edits that I am having trouble adding to the assisnment.

Using Notepad++, copy the code presented in Listing 26.2, "A Form That Displays Data in a Pop-Up Window," in the subsection "Displaying Data From a Form" in the section "Accessing Form Elements With JavaScript" in Ch. 26, "Working with Web-Based Forms of Sams Teach Yourself HTML, CSS and JavaScript All In One. Save the file using the name Week4ValidationExample.html. Test your code and debug as necessary.

Change the name of the display() function to myDisplay() where my is your first name. For example, if your first name were Sam, your display function would be SamDisplay(). Test your code and debug as necessary.

Change the width and height of the pop-up window in which you have set the feedback to appear as 250 and 400, respectively. Test your code and debug as necessary.

In: Computer Science

give an example of an application that should not be implemented using n-version Programming. Explain why?

give an example of an application that should not be implemented using n-version Programming. Explain why?

In: Computer Science

Draw the symbol, Boolean equation, and truth table for a four-input OR gate a three-input XNOR...

  1. Draw the symbol, Boolean equation, and truth table for

    1. a four-input OR gate

    2. a three-input XNOR gate

    3. a five-input NAND gate

In: Computer Science

based on CMM for a chatbot banking system, how can choose a CASE tools ? please...

based on CMM for a chatbot banking system, how can choose a CASE tools ? please explain and give an example

In: Computer Science

Explain Trap-and-Emulate and Binary Translation Virtualization Implementation with neat diagrams? Also describe types of Virtual Machines...

Explain Trap-and-Emulate and Binary Translation Virtualization Implementation with neat diagrams? Also describe types of Virtual Machines and their Implementations?

In: Computer Science

I have few questions to be ask for search in computer: 1) Draw a min heap...

I have few questions to be ask for search in computer:

1) Draw a min heap with at least 8 nodes.

2) What are two real life examples of a Priority Queue?

3) Draw a min heap with at least 8 nodes.

r

In: Computer Science

Add a 1- to 2-page section to your Playbook/Runbook. Create a prescriptive section of your playbook...

Add a 1- to 2-page section to your Playbook/Runbook. Create a prescriptive section of your playbook providing guidelines to secure each of these areas: Network connections Mobile devices Cloud services

In: Computer Science

OOP involves use of the following concepts: inheritance, polymorphism, and encapsulation. What are your definitions of...

  1. OOP involves use of the following concepts: inheritance, polymorphism, and encapsulation. What are your definitions of these terms? Why are they important? Does a program necessarily suffer if one or more of these items are absent?

In: Computer Science

***C++ Coding*** Write a program for sorting a list of integers in ascending order using the...

***C++ Coding***

Write a program for sorting a list of integers in ascending order using the bubble sort algorithm. Please include comments to understand code.

Requirements
Implement the following functions:

  1. int readData( int **arr)
    arr is a pointer to pointer for storing the integers. The function returns the number of integers.
    The function readData reads the list of integers from a file call data.txt into the array arr. The first integer number in the file is the number of intergers. After the first number, the file lists the integers line by line.
  2. void bsort(int *arr, int last)
    arr is a pointer to an array of integers to be sorted. last is the number of elements in the array. The function bsort sorts the list of integers in ascending order.
    Here is the Link to the Bubble Sort.
  3. writeToConsole(int * arr, int last)
    arr is a pointer to an array of integers. last is the number of elements in the array. The function writeToConsole displays the sorted list.
  4. Do not use the array notation in your solution.

Here is the content of the file data.txt.
9
8
4
7
2
9
5
6
1
3

In: Computer Science

Sentential Logic Translation: If the Monetarists (M) are right, then there is an increase in inflation...

Sentential Logic Translation:

  1. If the Monetarists (M) are right, then there is an increase in inflation (I) if and only if the money supply increases too fast (F). If the Keynesians (K) are right, then there is an increase in inflation if and only if there is a decrease in unemployment (D). If the Libertarians (L) are right, there is an increase in inflation if and only if the federal government spends more than it takes in (S). The money supply increases too fast only if taxes are too low (T), and the federal government spends more than it takes in only if taxes are too low. There is no decrease in unemployment and taxes are not too low, but there is an increase in inflation. Therefore, neither the Monetarists, nor the Keynesians, nor the Libertarians are right.

C ) More jobs (J) will be created and the economy (E) will improve only if government spending (G) is increased and taxes (T) are not raised; however, the deficit (D) will be reduced only if taxes are raised and government spending is not increased, and the economy will improve if and only if the deficit is reduced

In: Computer Science

. Write a C program that asks the user a multiple-choice question and shows four possible...

. Write a C program that asks the user a multiple-choice question and shows four possible answers, (a) through (d). Prompt the user to input a response as a character. If the user enters the correct response, print a message stating that the answer is correct. If the user enters an incorrect response, print a message stating that the answer is wrong. If the user enters anything other than the letters a, b, c, or d, print a message stating that the input is incorrect.

The below example shows three runs of the program, one for each type of response (correct, incorrect, invalid input). You are welcome to change the quiz question and answers, but there must be a single correct answer to your quiz question.

Tip: use "\t" in your printf statements to print a tab and get indented output like the quiz answers in the output below.

Welcome to the Quizzer! Here's your question...

What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c) Munster (d) Crookshanks
Your answer: ​c Correct!


Welcome to the Quizzer! Here's your question...

What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c) Munster (d) Crookshanks
Your answer: ​b Wrong!

Welcome to the Quizzer! Here's your question...

What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c) Munster (d) Crookshanks
Your answer: ​x Invalid input.

In: Computer Science

How would you show two linked lists are equal? (Java for Data Structures and Algorithms)

How would you show two linked lists are equal? (Java for Data Structures and Algorithms)

In: Computer Science

What is a three-tiered client-server architecture? (operating system)

What is a three-tiered client-server architecture? (operating system)

In: Computer Science

construct a 4 bit-adder with 4 full adders.

construct a 4 bit-adder with 4 full adders.

In: Computer Science

Write a program that prompts the user to enter a 3 x 3 matrix of double...

Write a program that prompts the user to enter a 3 x 3 matrix of double values and tests whether it is a positive Markov matrix. There will be two methods which will be called from the main method: public static double [] [] createArray() 1. Creates a 3 by 3 two dimensional array of doubles 2. Prompts the user for values as shown in the sample run 3. Stores the numbers in the array in the order entered 4. Returns the array to the main method public boolean isMarkovMatrix(double [][] matrix) 1. Returns false if any value in the array is negative 2. Prints the sum of each column in the array 3. Returns false if any the sum of any of the columns is not equal to 1.0 4. Otherwise, it returns true. Sample Program running: Enter a 3 x 3 matrix by row 0.15 0.875 0.375 0.55 0.005 0.225 0.30 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is a Markov matrix Enter a 3 x 3 matrix by row -0.2 0.875 0.375 0.75 0.005 0.225 0.45 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is not a Markov matrix The program must display the sum of EACH INDIVIDUAL column A response in Eclipse Java would be much appreciated. Thank you in advance

In: Computer Science