Questions
This is a javascript assignment/study guide for an exam. There are 25 steps that are outlined...

This is a javascript assignment/study guide for an exam. There are 25 steps that are outlined by // comments...

<html>
<head>
<style type="text/css">
body {font-family:Comic Sans MS;}
</style>
<script language="javascript">
<!--
function fred()
{
//
// There are 25 questions related to the HTML objects shown on the page
// They are all in the form named "twocities".
//
// Each part of the assignment below instructs you to manipulate or examine
// the value of the HTML elements and place an answer in one
// of twenty-five span blocks that appear on this page.
//
// e.g., for span block named "ans1" you will say:
//
// ans1.innerHTML = "some string";
//
//
// the questions 1 through 15 below use the string value from the textarea named "begins"
// stored in a variable named "beg" like this:

beg=document.twocities.begins.value;
len_beg=beg.length;
//
// *** First remove all the periods, commas and hyphens from the "beg" string before you answer questions 1 through 15
//

//
// ***(1) how many words are the string named "beg"? (words not characters)
// *** show the answer in the span block with id = "ans1"
//

//
// ***(2) store words in the string "beg" in an array.
// *** show the first and last elements of the array in the span block with id="ans2"
//

//
// ***(3) show each word in the array produced in (2) above on one line separated by commas
// *** in the span block with id="ans3"
//

//
// ***(4) create a new string using the value of "beg" where all the characters are capitalized
// *** show the new string in the span block with id="ans4"
//

//
// ***(5) count the number of times the letters "a", "e", "i", "o", "u" appear in the string "beg"
// *** show these 5 counts on one line separated by commas in the span block with id="ans5"
//

//
// ***(6) show the location of each occurence of the character "e" in the string "beg"
// *** on one line separated by commas in the span block with id="ans6"
//

//
// ***(7) show the location where each word begins in the string named "beg"
// *** show the answers on one line separated by commas in the span block with id="ans7"
//


//
// ***(8) place the words in the string "beg" in a table with a one pixel border,
// *** with a gray backgound. Use only ten cells per row. Empty cells should contain
// *** the word "null". Show the table in the span block with id="ans8"
//

//
// ***(9) replace each occurence of the blank character in "beg" with the character "*"
// *** show the result in the span block with id="ans9"
//

//
// ***(10) sort the words in array created in (2) into alphabetical order
// *** show the results in the span block with id="ans10" on a single line
//

//
// ***(11) show the ASCII character number of each character in the string "beg"
// *** separate each value with a comma and place the result on a single line in the span block
// *** with id="ans11"
//

//
// ***(12) count the number of words in the string "beg" that have 2,3,4,5 or 6 characters
// *** show these five counts on a single line separated by commas in the span block with id="ans12"
//

//
// ***(13) create a new string that contains the words in the string "beg" in reverse order
// *** show this new string on a single line in the span block with id="ans13"
//

//
// ***(14) create a new string that contains the characters in the string "beg" in all capital letters
// *** show this new string on a single line in the span block with id="ans14"
//

//
// ***(15) store the number of times the letter "a" appears in the string "beg" in 1st location;
// *** store the number of times the letter "b" appears in the string "beg" in 2nd location;
// *** store the number of times the letter "c" appears in the string "beg" in 3rd location;
// *** store the number of times the letter "d" appears in the string "beg" in 4th location;
// *** etc.
// *** show the 26 counts on one line separated by commas in the span block with id="ans15"
//

//
// ***(16) Examine the radio buttons and produce a list of the three "values" of the radios buttons separated by commas on a single line
// in the span block with id="ans16"

//
// ***(17) Show the value of the radio button which is checked and its elements number separated by a comma on a line by itself
// *** in the span block with id="ans17"
//

//
// *** (18) Show the elements number and value of the six checkboxes in a six-row, two-column table with a 2 pixel border
// *** in the span block with id="ans18"
//

//
// ***(19) Examine the checkboxes and produce a list of the "values" of the checkboxes that are checked. Separated the values by commas on a single line
//

//
// ***(20) Show the values of all the options in the select (drop down menu) named "book3chapters" in an fifteen-column one row table with a 2 pixel border border
// *** in the span block with id="ans20"
//

//
// ***(21) Show the value of the select (drop down menu) named "book3chapters" which is selected and its selectedIndex value separated by a comma on a line by itself
// *** in the span block with id="ans21"
//

//
// *** Retrieve the value of the textarea named "beg" again and store it in a variable named "beg2", DO NOT REMOVE ANY CHARACTERS
// *** You will use this string for questions 22 and 23

//
// *** (22) Show the text phrases that are separated by commas in the string "beg2" . Each phrase should be on a line by itself.
// *** Place the result in the span block with id="ans22"
//

//
// *** (23) Capitalize the first letter of each phrase from #22 bove (phrases are separated by commas) in the original string "beg2".
// *** Place each phrase should be on a line by itself.
// *** Place the result in the span block with id="ans23"
//
//
// *** (24) Make the third radio button ("The Track of The Storm") checked.
// *** Make ALL six of the checkboxes be checked.
// *** Make the select named "book3chapters" (the drop down menu) show "Fifty-Two" as the selection
// *** Place the string "DONE!" in the span block with id="ans24"

//
// *** (25) Place the famous last line of the book (without quotes) in the span block with id="ans25"
//


}
-->
</script>
</head>
<body>
<CENTER>
<TABLE border="2" width="100%">
<TR><TD width="120" valign="middle" align="center" bgColor="#bbbbbb"><center><IMG align="top" alt="capt webb" border=2 src="captsm.gif"><BR><span STYLE="font-size:8px">Capt. Horatio T.P. Webb</span></center></TD>
<TD valign="middle" bgColor="#bbbbbb" colSpan="2" align="center"><center><B>ASSIGNMENT #1 Javascript<br>MIS 3371 Transaction Processing I<BR>Parks -- Spring 2016</B><BR><span STYLE="font-size:10px">Version 1 -- Last Updated 9:00 AM 1/12/2016</span></center></TD></TR></table></center>
The text used in this assignment is from Charles Dicken's novel "A Tale of Two Cities" written in 1859<br>Read it at the free online book site:<br>Project Gutenberg: <a href="http://www.gutenberg.org/cache/epub/98/pg98.txt">http://www.gutenberg.org/cache/epub/98/pg98.txt</a>
<form name="twocities">
<p>All the HTML elements below are in a form named "twocities". View "Source" to see the 25 questions.
<p>
<table border="1" cellspacing="0" width="100%">
<tr><td valign="top">1. The textarea below is named <b>begins</b><br>It contains the opening text of the book (form elements number 0)
<br><textarea style="margin:6px;" name="begins" rows="10" cols="80">It was the best of times, it was the worst of times,
it was the age of wisdom, it was the age of foolishness,
it was the epoch of belief, it was the epoch of incredulity,
it was the season of Light, it was the season of Darkness,
it was the spring of hope, it was the winter of despair,
we had everything before us, we had nothing before us,
we were all going direct to Heaven, we were all going direct the other way --
in short, the period was so far like the present period,
that some of its noisiest authorities insisted on its being received,
for good or for evil, in the superlative degree of comparison only.</textarea></td>
<td valign="top">2. The novel "A Tale of Two Cities" is divided into 3 books named below.<br>
There are 3 radio buttons below are named: <b>books</b><br>(form elements 1 &rarr; 3).
<br>Their values are: "1", "2" and "3"
<p><input type="radio" name="books" value="1" checked> Recalled To Life&nbsp;
<br><input type="radio" name="books" value="2"> The Golden Thread&nbsp;
<br><input type="radio" name="books" value="3"> The Track of The Storm&nbsp;
</td>
</tr>
<tr><td valign="top">3. The titles of the six chapters of the first book are shown below.
<br>The 6 checkboxes below are named: <b>c1</b> &rarr; <b>c6</b> (form elements 4 &rarr; 9). <br>
Their values are the same as the text that appear to the right of each checkbox.
<br>&nbsp;<input type="checkbox" name="c1" value="The Period">The Period
<br>&nbsp;<input type="checkbox" name="c2" value="The Mail" checked>The Mail
<br>&nbsp;<input type="checkbox" name="c3" value="The Night Shadows">The Night Shadows
<br>&nbsp;<input type="checkbox" name="c4" value="The Prepartion" checked>The Preparation
<br>&nbsp;<input type="checkbox" name="c5" value="The Wine Shop">The Wine-shop
<br>&nbsp;<input type="checkbox" name="c6" value="The Shoemaker" checked>The Shoemaker</b>
</td><td valign="top">4. The select (drop down menu) below is named <b>book3chapters</b>
<br>(form elements number 10).
<br>The fifteen options are the titles of the fifteen chapters in Book 3.
<br>The values of the 15 options are the same as the option text shown on the select below:
<p>
<select name="book3chapters">
<option value="In Secret">In Secret
<option value="The Grindstone">The Grindstone
<option value="The Shadow">The Shadow
<option value="Calm in Storm">Calm in Storm
<option value="The Wood-sawyer">The Wood-sawyer
<option value="Triumph">Triumph
<option value="A Knock at the Door">A Knock at the Door
<option value="A Hand at Cards">A Hand at Cards
<option value="The Game Made">The Game Made
<option value="The Substance of the Shadow">The Substance of the Shadow
<option value="Dusk">Dusk
<option value="Darkness">Darkness
<option value="Fifty-two">Fifty-two
<option value="The Knitting Done">The Knitting Done
<option value="The Footsteps Die Out For Ever">The Footsteps Die Out For Ever
</select></b></td></tr></table>
</form>
<p>
<ol>
<li><span id="ans1">Contents of the span block with id="LuL"</span>
<li><span id="ans2">Contents of the span block with id="ans2"</span>
<li><span id="ans3">Contents of the span block with id="ans3"</span>
<li><span id="ans4">Contents of the span block with id="ans4"</span>
<li><span id="ans5">Contents of the span block with id="ans5"</span>
<li><span id="ans6">Contents of the span block with id="ans6"</span>
<li><span id="ans7">Contents of the span block with id="ans7"</span>
<li><span id="ans8">Contents of the span block with id="ans8"</span>
<li><span id="ans9">Contents of the span block with id="ans9"</span>
<li><span id="ans10">Contents of the span block with id="ans10"</span>
<li><span id="ans11">Contents of the span block with id="ans11"</span>
<li><span id="ans12">Contents of the span block with id="ans12"</span>
<li><span id="ans13">Contents of the span block with id="ans13"</span>
<li><span id="ans14">Contents of the span block with id="ans14"</span>
<li><span id="ans15">Contents of the span block with id="ans15"</span>
<li><span id="ans16">Contents of the span block with id="ans16"</span>
<li><span id="ans17">Contents of the span block with id="ans17"</span>
<li><span id="ans18">Contents of the span block with id="ans18"</span>
<li><span id="ans19">Contents of the span block with id="ans19"</span>
<li><span id="ans20">Contents of the span block with id="ans20"</span>
<li><span id="ans21">Contents of the span block with id="ans21"</span>
<li><span id="ans22">Contents of the span block with id="ans22"</span>
<li><span id="ans23">Contents of the span block with id="ans23"</span>
<li><span id="ans24">Contents of the span block with id="ans24"</span>
<li><span id="ans25">Contents of the span block with id="ans25"</span>
</ol>
<br><input type="button" value="this button executes the function fred()" onClick="fred()">
</body>
</HTML>

In: Computer Science

Explain how process replacement works. What functions does it use?

Explain how process replacement works. What functions does it use?

In: Computer Science

Increasingly patients expect full access to their EMRs and EHRs. What limitations, if any, would be...

Increasingly patients expect full access to their EMRs and EHRs. What limitations, if any, would be in the best interest of patients? For example, should healthcare providers have access to new test results for 3 full business days before these are posted for patient viewing?

I am needing to find sources to answer this question. They need to be peer-reviewed nursing journals from the year 2013+. I am having trouble finding the correct resources in order to find the peer-reviewed nursing journals. I utilized my textbook and the databases at my college and am still at a loss. If you find any good sources that answer this question will you please copy and paste the links for me please? Or if you have any advice for me? Thank you!

In: Computer Science

Create the function fact that had a positive integer argument and returns its factorial . Recall...

Create the function fact that had a positive integer argument and returns its factorial . Recall that factorial (n) = 1*2*3***n. For example factorial (4)=1*2*3*4=24, (python)

In: Computer Science

You are an intern in the Cybersecurity Operations Office for the new National Youth Social Media...

You are an intern in the Cybersecurity Operations Office for the new National Youth Social Media Administration. You just graduated from the Webster University Cybersecurity Program and you want to impress your supervisors in order to have a greater opportunity for a promotion. Discuss your proposal for a Cybersecurity strategy for this new national office.

In: Computer Science

C++...This program is broken down into phases for your convenience only. Please turn in only the...

C++...This program is broken down into phases for your convenience only. Please turn in only the final phase. Before turning in your program, please make sure that it does something reasonable if the user enters a negative number the first time.

Phase I: Write a program for a theater that will keep track of how many people in each of 5 age categories attended a particular movie. Use the 5 age categories listed below in the sample screen output. The user will enter a number of ages, entering a negative number when there are no more ages to enter. Your program will then report on how many people in each age group attended. Sample screen output:

    Enter age of attendee (-1 to quit): 34    
    Enter age of attendee (-1 to quit): 16
    Enter age of attendee (-1 to quit): 68
    Enter age of attendee (-1 to quit): 53
    Enter age of attendee (-1 to quit): 39
    Enter age of attendee (-1 to quit): 23
    Enter age of attendee (-1 to quit): 21
    Enter age of attendee (-1 to quit): -1

    age 0  to 18: 1
    age 19 to 30: 2
    age 31 to 40: 2
    age 41 to 60: 1
    over 60: 1


Phase II: Modify your program so that, in addition to the report that the program currently produces, it also gives the average age of the people in attendance, the age of the oldest person in attendance, and the age of the youngest person in attendance. Sample screen output:

 
    Enter age of attendee (-1 to quit): 34    
    Enter age of attendee (-1 to quit): 16
    Enter age of attendee (-1 to quit): 68
    Enter age of attendee (-1 to quit): 53
    Enter age of attendee (-1 to quit): 39
    Enter age of attendee (-1 to quit): 23
    Enter age of attendee (-1 to quit): 21
    Enter age of attendee (-1 to quit): -1

    age 0  to 18: 1
    age 19 to 30: 2
    age 31 to 40: 2
    age 41 to 60: 1
    over 60: 1

    The average age was 36.
    The youngest person in attendance was 16.
    The oldest person in attendance was 68.

Phase III: Modify your program so that it also asks each attendee for a theater concession stand purchase. The attendee must make a selection based on the following choices …

1 - Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc...)

2 - Popcorn

3 - Nachos       

4 - Soft drink & Popcorn

5 - Soft drink & Nachos

6 - Organic and Gluten-free snacks       

7 – None

The program output should now also provide a theater concession stand sales summary with a count of each category purchased.

Note: Include a validation routine to ensure that a correct choice is input for each attendee.

Check the sample screen output below for the final formatted display of theater statistics.

 
  ==========================
  THEATER STATS PROGRAM
  ==========================

Movie theater snacks available for purchase
==========================================
1 - Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc...)
2 - Popcorn
3 - Nachos
4 - Soft drink & Popcorn
5 - Soft drink & Nachos
6 - Organic and Gluten-free snacks
7 - None
==========================================

Enter age of attendee (-1 to quit): 34
Movie theater snack purchased. (Select items 1 - 7):4
--------------------------
Enter age of attendee (-1 to quit): 16
Movie theater snack purchased. (Select items 1 - 7):5
--------------------------
Enter age of attendee (-1 to quit): 68
Movie theater snack purchased. (Select items 1 - 7):12
Invalid selection, please choose from 1 - 7
Movie theater snack purchased. (Select items 1 - 7):6
--------------------------
Enter age of attendee (-1 to quit): 53
Movie theater snack purchased. (Select items 1 - 7):6
--------------------------
Enter age of attendee (-1 to quit): 39
Movie theater snack purchased. (Select items 1 - 7):1
--------------------------
Enter age of attendee (-1 to quit): 23
Movie theater snack purchased. (Select items 1 - 7):2
--------------------------
Enter age of attendee (-1 to quit): 21
Movie theater snack purchased. (Select items 1 - 7):3
--------------------------
Enter age of attendee (-1 to quit): 21
Movie theater snack purchased. (Select items 1 - 7):4
--------------------------
Enter age of attendee (-1 to quit): -1

==================================
  THEATER STATS PROGRAM RESULTS
==================================

age 0  to 18:    1
age 19 to 30:    3
age 31 to 40:    2
age 41 to 60:    1
over 60:         1

The average age was 34
The youngest person in attendance was 16
The oldest person in attendance was 68

Theater Concession Stand sales
==================================
Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc.): 1
Popcorn: 1
Nachos: 1
Soft drink & Popcorn: 2
Soft drink & Nachos: 1
Organic and Gluten-free snacks: 2

Process returned 0 (0x0)   execution time : 169.589 s
Press any key to continue. 

In: Computer Science

Using R Language The code provided below uses a for loop to simulate conducting 10,000 polls...

Using R Language

The code provided below uses a for loop to simulate conducting 10,000 polls of 8 people in which each person has 58% probability of being a supporter of the Democratic candidate and a 42% probability of being a supporter of the Republican. The way the loop works is it runs through the code inside the loop 10,000 times, but changing the value of i with each iteration (i is 1 in the first iteration, 10,000 in the last).

# Define a vector of integers that has 10,000 elements. poll_sims = vector(length = 10000, mode = "integer") # for loop to simulate 10,000 polls for (i in 1:10000) { # Do a poll of 8 people in which each person has a 58% chance of supporting the # Democratic candidate and 42% chance of supporting the Republican. poll = sample(c("Democrat", "Republican"), size = 8, replace = T, prob = c(.58, .42)) # Count the number of people who support the Democrat and store the result in the # poll_sims vector as the ith result. poll_sims[i] = sum(poll == "Democrat") } 2 # Visualise the poll_sims vector using basic R plot(factor(poll_sims)) # Visualise the poll_sims vector using tidyverse library(tidyverse) qplot(factor(poll_sims)) + geom_bar()

1. Run this code on your own and find the fraction of the simulations in which less than half the people (3 or fewer) support the Democratic candidate. Compare this result to your answer in Question 5 of the previous section.

2. Change the code to simulate 10,000 polls of 100 people (rather than 10,000 polls of 8). Find the fraction of simulations in which less than half the people support the Democratic candidate. In other words, use the simulations to approximate the likelihood that a poll of 100 people will incorrectly guess the winner of the election.

3. Graph the simulations so you can visualize the distribution.

4. Change the code again to simulate 10,000 polls of 1,000 people. Find the fraction of simulations in which between 55% and 61% of the people support the Democratic candidate. In other words, use the simulations to approximate the likelihood that a poll of 1,000 people will be off from the true probability by 3% or less.

In: Computer Science

create a file in java where you can store the first name, last name and the...

create a file in java where you can store the first name, last name and the grade of the student. this will repeats until the answer of the question "are you done?" is.equals (y). then write another program that you can read from this file the student's information .

I have dome most of it but my program stores only 1 student's information. WRITE IN FILE

public static void main(String[] args) {

System.out.println("Enter the file name");

Scanner keyboard=new Scanner(System.in);

String fileName= keyboard.next();

boolean done=false;

String response;

PrintWriter output=null;

try {

output=new PrintWriter(fileName);

}

catch(FileNotFoundException e) {

System.out.println ("error in " + fileName);

System.exit(0);

}

while(!done) {

//for (int i=1;i<=2;i++) {

System.out.println("first name:");

String fname= keyboard.next();

System.out.println("Last name:");

String lname=keyboard.next();

System.out.println("Grade:");

double grade=keyboard.nextDouble();

output.println(fname +" "+ lname+" " +grade);

output.close();

System.out.println("Are you done?");

}

String response1 =keyboard.next();

if (response1.equals("y"))

done=true;

}

}

READ THE FILE.

public class ReaderFile {

public static void main(String[] args) throws Exception {

System.out.println("Enter the file name");

Scanner keyboard=new Scanner(System.in);

String fileName=keyboard.next();

File file= new File(fileName);

Scanner input=null;

try {

input= new Scanner(new File(fileName));

}

catch(Exception e) {

System.out.println("Error reading the file" + fileName);

System.exit(0);

}

while(input.hasNext()) {

String fname=input.next();

String lname=input.next();

double grade=input.nextDouble();

System.out.println(fname+" "+lname+" "+grade);

}

}

}

In: Computer Science

3. IEEE Floating Point Representation What decimal number does the 32-bit IEEE floating point number 0xC27F0000...

3. IEEE Floating Point Representation

What decimal number does the 32-bit IEEE floating point number 0xC27F0000 represent? Fill in the requested information in the blanks below. What is the sign of the number (say positive or negative): What is the exponent in decimal format: What is the significand in binary: What is the value of the stored decimal number in decimal (final answer): Credit will be given for your final answer in the blanks and the work shown below.

In: Computer Science

C-Language Modify the existing vector's contents, by erasing 200, then inserting 100 and 102 in the...

C-Language

Modify the existing vector's contents, by erasing 200, then inserting 100 and 102 in the shown locations. Use Vector ADT's erase() and insert() only. Sample output of below program:

100 101 102 103 

----------------------------------------------------------------------------------

#include <stdio.h>
#include <stdlib.h>

// struct and typedef declaration for Vector ADT
typedef struct vector_struct {
   int* elements;
   unsigned int size;
} vector;

// Initialize vector with specified size
void vector_create(vector* v, unsigned int vectorSize) {
   int i;

   if (v == NULL) return;

   v->elements = (int*)malloc(vectorSize * sizeof(int));
   v->size = vectorSize;
   for (i = 0; i < v->size; ++i) {
      v->elements[i] = 0;
   }
}

// Resize the size of the vector
void vector_resize(vector* v, unsigned int vectorSize) {
   int oldSize;
   int i;
   if (v == NULL) return;

   oldSize = v->size;
   v->elements = (int*)realloc(v->elements, vectorSize * sizeof(int));
   v->size = vectorSize;
   for (i = oldSize; i < v->size; ++i) {
      v->elements[i] = 0;
   }
}

// Return pointer to element at specified index
int* vector_at(vector* v, unsigned int index) {
   if (v == NULL || index >= v->size) return NULL;

   return &(v->elements[index]);
}

// Insert new value at specified index
void vector_insert(vector* v, unsigned int index, int value) {
   int i;

   if (v == NULL || index > v->size) return;

   vector_resize(v, v->size + 1);
   for (i = v->size - 1; i > index; --i) {
      v->elements[i] = v->elements[i-1];
   }
   v->elements[index] = value;
}

// Insert new value at end of vector
void vector_push_back(vector* v, int value) {
   vector_insert(v, v->size, value);
}

// Erase (remove) value at specified index
void vector_erase(vector* v, unsigned int index) {
   int i;

   if (v == NULL || index >= v->size) return;

   for (i = index; i < v->size - 1; ++i) {
      v->elements[i] = v->elements[i+1];
   }
   vector_resize(v, v->size - 1);
}

// Return number of elements within vector
int vector_size(vector* v) {
   if (v == NULL) return -1;

   return v->size;
}

void PrintVectors(vector* numberList) {
   int i;

   for (i = 0; i < vector_size(numberList); ++i) {
      printf("%d ", *vector_at(numberList, i));
   }
   printf("\n");
}

int main(void) {
   vector numberList;
   vector_create(&numberList, 0);

   // Populate vector with 101 200 103
   vector_push_back(&numberList, 101);
   vector_push_back(&numberList, 200);
   vector_push_back(&numberList, 103);

   // Erase 200 then insert 100 and 102

   /* Your solution goes here */

   PrintVectors(&numberList);

   return 0;
}

In: Computer Science

Using Python, write a program that finds a root of function f(x) = x^2-4x+3 on interval...

Using Python, write a program that finds a root of function f(x) = x^2-4x+3 on interval [2,5] using bisection search method. Recall that r is a root of a function if f(r) = 0. Output the number of iterations it took your algorithm to find a root.

In: Computer Science

Topic 1 TRUE OR FALSE Q's 1.            Computer software is the collection of programs that provide...

Topic 1

TRUE OR FALSE Q's

1.            Computer software is the collection of programs that provide the instructions that a computer carries out.

2.            An abstraction is a mental model that removes or hides complex details.

3.            The abacus was the world's first electronic digital computer.

4.            Ada Augusta, Countess of Lovelace, is credited with being the first programmer.

5.            A vacuum tube was a device used in the third generation of computers.

6.            The fourth generation of computer hardware was characterized by large-scale integration.

7.            The personal computer was introduced in the fourth generation of computer hardware.

8.            The Internet is descended from a U.S. government-sponsored network called the ARPANET.

9.            Assembly-language is first generation software.

10.          Earliest machine programs were hard wired.

11.          Algorithmic thinking is a necessary skill in Computer Science.

12.          Computational Science is one of the Systems areas.

13.          Spreadsheets and word processors are known as software applications.

14.          Applications programmers use the tools built by systems programmers.

15.          An algorithm is a set of steps that defines how a task is performed.

In: Computer Science

(Language: PYTHON) Format existing address records and eliminate records with missing critical fields.Critical fields include FirstName,...

(Language: PYTHON) Format existing address records and eliminate records with missing critical fields.Critical fields include FirstName, Lastname, Zipcode+4, and Phone number for customers. Use an array to hold data with these 4 fields containing at least 25records. The Zipcode field should contain either traditional 5-digit Zipcode(e.g. 21801)or Zip+4 format(e.g 21801-1101). The phone numbers should contain 10-digit (e.g. 5555555555)or formatted 10-digit(e.g. 555-555-5555). Some records might be corrupt so the data needs to be munged. At this point, we assume only U.S data will be present therefor country code is not needed.

Label each column, properly format the Zip code to be either 11111 or 11111-1111 formats, properly formatthe phone numbers to always be 111-111-1111 format, and replace incorrect values with a blank string.

Notice invalid data was removed and formatting was applied as required. Commas can be left if desired. Default alignment with the column labels is acceptable.

  1. Hardware the 25 records.
  2. Use comments to document your code

In: Computer Science

For binary data, the L1 distance corresponds to the Hamming distance; that is, the number of...

For binary data, the L1 distance corresponds to the Hamming distance; that is, the number of bits that are different between two binary vectors. For the following two binary vectors, compute:

X = 10011011

Y = 01011000

1 - Hamming distance

2 - Jaccard Similarity Coefficient (JSC) and Simple Matching Coefficient (SMC)

3 - Cosine Similarity

4 - L2 (Euclidean) and Lāˆž (Supermum) distances

5 - Correlation between X and Y

In: Computer Science

**C++ Programming Language** a program that computes the average of a collection of numbers and then...

**C++ Programming Language**

a program that computes the average of a collection of numbers and then outputs the total number of values that are greater than the average. The objective of this assignment is to select a language that you have never used before and modify the program from the text so that it outputs the number of A's, B's, C's, D's and F's. An A grade is any score that is at least 20% greater than the average. The B grade is any score that is not an A, but is at least 10% greater than the average. An F grade is any score that is at least 20% less than the average. The D grade is any score that is not an F, but is at least 10% less than the average. Any scores that are within 10% of the average (either less than or greater than) are C's.

In: Computer Science