If productCost and productPrice are numeric variables, and productName is a string variable, which of the following statements are valid assignments? If a statement is not valid, explain why not.

a. productCost =100
b. productPrice= productCost
c. productPrice= productName
d. productiPrice =24.95
e. 15.67= productCost
f. productCost= $ 1,345.52
g. product Cost= productPrice -10
h. productName= "mouse pad"
i. productCost + 20= productPrice
j. productName= 3 -inch natis
k. productName =43
l. productName =" 44 n
m. " 99 "= productName

Answers

Answer 1
Question:

a. productCost = 100

b. productPrice = productCost

c. productPrice = productName

d. productPrice = “24.95”

e. 15.67 = productCost

f. productCost = $1, 345.52

g. product Cost = productPrice − 10

h. productName = “mouse pad”

i. productCost + 20 = productPrice

j. productName = 3-inch nails

k. productName = 43

l. productName = “44”

m.“99” = productName

Answer:

(a) valid

(b) valid

(c) invalid

(d) valid

(e) invalid

(f) invalid

(g) invalid

(h) valid

(i) invalid

(j) invalid

(k) invalid

(l) valid

(m) invalid

Explanation:

(a) valid. Since productCost is a numerical variable, a value of 100 can be assigned to it.

(b) valid. Both productCost and productPrice are numerical variables and as such value of one can be stored in the other.

(c) invalid. productName is a string variable and cannot be directly assigned to productPrice which is a numeric variable.

(d) valid. productPrice is a numeric variable and 24.95 can be assigned to it.

(e) invalid. 15.67 is not a variable name and as such cannot have values assigned to it.

(f) invalid. $ and , are not numeric digits and as such cannot be assigned to productCost which is numeric.

(g) invalid. There should be no space between product and Cost. It should be productCost and not product Cost.

(h) valid. "mouse pad" is a string literal and can be assigned to productName which is a string variable.

(i) invalid. productCost + 20 is not a variable .

(j) invalid. 3-inch nails should be in quotes for it to be assignable to productName.

(k) invalid. 43 is a numeric literal and cannot be directly assigned to productName which is a string variable. In other words, 43 should be in quotes for it to be assignable to productName.

(l) valid. 44 (in quotes) is a string literal and can be assigned to productName which is a string variable.

(m) invalid. "99" is not a variable name and cannot hold or be assigned any value.


Related Questions

In cell B13, create a formula using the VLOOKUP function that looks up the value from cell A11 in the range A5:B7, returns the value in column 2, and specifies an exact match.

Answers

Answer:

VLOOKUP(A11,A5:B7,2,0)  is the correct answer to this question.

Explanation:

The VLOOKUP method contains a vertical lookup by scouring for worth in a table's first section and trying to return the significance in the throughout the situation within the same row. The VLOOKUP excel is a built-in function classified as a Lookup / see as.

According to the question:-

The formulation needed to enter is = VLOOKUP(A11, A5: B7,2,0)

The first "A11" here is the cell from which value is retrieved

The second "A5: B7" input is the range for the table where you need to lookup. 2 Is the number of the column from which the value is taken and 0 indicates the exact math

The VLOOKUP function is used to look up a value in a particular column.

The VLOOKUP formula to enter in cell B13 is: VLOOKUP(A11,A5:B7,2,0)

The syntax of a VLOOKUP function is:

VLOOKUP(lookup_value, cell_range, column_index, [return_value])

Where:

lookup_value represents the value to look upcell_range represents the cells to checkcolumn_index represents the column index[return_value] is an optional entry, and it represents the value that will be returned by the look up function.

From the question, we have:

lookup_value = cell A11cell_range = cell A5 to B7column_index = 2[return_value] = 0

So, the VLOOKUP function would be: VLOOKUP(A11,A5:B7,2,0)

Read more about VLOOKUP function at:

https://brainly.com/question/19372969

Which guideline should an employee use when taking notes for a report

Answers

They should respect what is going on and wittiest down everything they can and get it to be the truth or closet to the truth. Also if they say sow,thing happened and they don't want you to right it would be for the best not to right it

1. He is sincere while making report bcz when he make report by heart it is definitely useful.

He is always remain alert bcz any mistake can influence his ratings or project importance



11. Which one of the following buttons is used for paragraph alignment?

Answers

Answer:

C

Explanation:

Option A is used for line spacing.

Option B is used for right indent.

Option C is used for right paragraph alignment.

Option D is used for bullet points.

The button used for paragraph alignment would be option C.

If your computer freezes on a regular basis and you checked your hard drive and you have insufficient space you've not installed any software that could cause disruption you have recently added more around so you realize that you have enough memory and that isn't causing a problem what could you do to check next? A) Ensure that the computer is disconnected from the internet by removing any Ethernet cables. B) Use scandisk to ensure that the hard drive is not developing errors or bad sectors. C) Replace the CPU and RAM right away. D) Install additional fans to cool the motherboard.

Answers

Answer:

d

Explanation:

If your computer freezes on a regular basis, and you have enough memory and that isn't causing a problem. You should install additional fans to cool the motherboard. The correct option is D.

What is computer freezing?

Computer freezing means the computer is not running smoothly. It is causing concerns in opening any application or running software. It is also called computer hanging. The freezing can occur due to the heating of the motherboard. The addition of the fans would be good.

Freezing on the computer happens when the memories of the computer are full, or any virus has been installed on the computer. Hanging or freezing of computers can be avoided by emptying some data or installing an antivirus.

Thus, the correct option is D. Install additional fans to cool the motherboard.

To learn more about computer freezing, refer to the link:

https://brainly.com/question/15085423

#SPJ2

print_pattern() prints 5 characters. Call print_pattern() twice to print 10 characters. Example output: ***** ***** in python

Answers

Answer:

def print_pattern():

print("*****",end=" ")

print_pattern()

print_pattern()

Rijndael, AES, CCMP are same as well as different. They are same in terms of how encryption is done and different in terms of whether each one is a protocol, algorithm or a standard.CCMP is both, a protocol and a standard, Rijndael is:_________ a) standard only b) an algorithm c) a communications protocol. d) patented by US Government

Answers

Answer:

Option (b) is the correct answer to this question.

Explanation:

AES is based on Rijndael Algorithm.

The Rijndael algorithm enables a choice of block sizes and key sizes. The choices are for each of 128, 192, or 256 bits. Once NIST implemented Rijndael for AES, it only specified one block size,128 bits, but maintained three major lengths of selection. IEEE 802.11I go a step and further limits when both the main size and length of the block for 128 bits. It simplifies deployment and relieves users during development from having to make yet again another decision.

Other options are incorrect because they are not related to the given scenario.

The list of lists below is meant to represent the money raised by a charity over multiple days. The inner lists represent each donation, and the outer list represents each day. Use a for loop to calculate the sum of all the numbers in this list of list of numbers, to print the total amount of money raised.
code given:hourly_donations_per_day = [[44, 33, 56, 27, 33, 25],[12, 15, 22, 19, 21],[36, 34, 32, 37, 28, 11, 35],[20, 19, 29],[22, 27, 21, 15, 26, 15]]

Answers

Answer:

Following are the code to this question:

hourly_donations_per_day = [ #declaring list of lists and assign values

[44, 33, 56, 27, 33, 25],

[12, 15, 22, 19, 21],

[36, 34, 32, 37, 28, 11, 35],

[20, 19, 29],

[22, 27, 21, 15, 26, 15]

]

total_amount_of_money_raised = 0#defining a variable and assign a values 0

for i in hourly_donations_per_day:#defining loop to count values donation  

       if isinstance(i,list): #using if block to add donation values

               for j in i:#defining loop for add list values

                   total_amount_of_money_raised += j #add all values in total_amount_of_money_raised variable

print(total_amount_of_money_raised) #print value

Output:

714

Explanation:

In the above code, a list of the list is declared in which, it assigns the multiple values, in the inner lists it represents donation value and in the outer list it represents the day. In the next step, a variable "total_amount_of_money_raised" is declared that assigns a value 0, in the next step, multiple for loop is declared which is used to add list donation value and at the last print, the method is used to print its value.    

The blank function returns to the first character or characters in a text string based on the number of characters specified??? A. PROPER B. MID C. LEN D. LEFT

Answers

Answer: D.) LEFT

Explanation: LEFT is an excel function allows users to extract a specified number of characters starting from the left. The syntax goes thus :

=LEFT(text, [num_chars])

text: the original string in which characters are to be extracted.

num_chars : takes an integer, stating the number of characters to extract.

The proper function is also an excel function which sets the first character in each word to uppercase. The mid function is also used in text extraction starting from any position in the original string based on what is specified.

The LEN function is used to get the number or length of characters in a string.

Write the definition of the function displaySubMenu that displays the following menu; this function doesn't collect the user's input; only display the following menu:
[S]top – Press 'S' to stop.

Answers

Answer:

Using Python:

def displaySubMenu():

   print("[S]top – Press ‘S’ to stop.")

Using C++ programming language:

void displaySubMenu(){

cout<<"[S]top – Press ‘S’ to stop.";}

Explanation:

The function displaySubMenu() has a print statement that prints the following message when this function is called:

[S]top – Press 'S' to stop.

You can invoke this function simply by calling this function as:

displaySubMenu()

The function doesn't take any input from the user and just displays this message on output screen whenever this function is called.

In C++ you can simply call the function using following statement:

void main(){

displaySubMenu(); }

Which among the following enhances WS-Security to facilitate a mechanism for issuing, renewing, and validating security tokens?

a. WS-Trust
b. WS-SecureConversion
c. WS-SecurityPolicy
d. All of the mentioned

Answers

Answer:

a. WS-Trust

Explanation:

WS-Trust can be defined as a WS-specification as well as OASIS standard that help to provides extensions to WS-Security, in order to facilitate a mechanism for issuing, renewing, as well as validating of security tokens which is why the aim and objectives of WS-Trust is to help and enable applications to construct trusted SOAP message exchanges.

Nevertheless WS-Trust enables the issuance as well as the dissemination of credentials within several and various trust domains.

A web service using the WS-Trust can be used for implementing the standards that encode the WS security to facilitate the mechanisms for issuing and reviewing the security tokens.

Hence e the option A is correct. The  WS security token service is a service based on the mechanisms of the key exchange.

Learn more about the following enhances WS-Security to facilitate.

brainly.com/question/13171394.

Make a simple numeric calculator. It should prompt the user for three numbers. Then add the numbers together and divide by 2. Display the result. Your program must support numbers with decimals and not just integers. If the result is more than 6, display Your result is more that 6! 4.

Answers

Answer:

No programming language stated; I'll answer this question using Python.

(Please note that -> at the last line means indentation)

The program is as follows:

num1 = float(input("Number 1: "))

num2 = float(input("Number 2: "))

num3 = float(input("Number 3: "))

result = (num1 + num2 + num3)/2

print("Result: ",result)

if result > 6:

->print("Your result is more than 6!")

Explanation:

The first three lines prompt the user for input of 3 numbers (the number could be decimal, whole numbers, positive or negative numbers)

num1 = float(input("Number 1: "))

num2 = float(input("Number 2: "))

num3 = float(input("Number 3: "))

The next line sums up user input and divides the sum by 2

result = (num1 + num2 + num3)/2

The next line prints the calculated result in the previous line

print("Result: ",result)

The next line determines if the calculated result is more than 6; if yes, the associated print statement is executed

if result > 6:

->print("Your result is more than 6!")

Once again, please note that -> at the last line means indentation

A network security analyst received an alert about a potential malware threat on a user’s computer. What can the analyst review to get detailed information about this compromise? Check all that apply

Answers

Complete Question:

A network security analyst received an alert about a potential malware threat on a user’s computer. What can the analyst review to get detailed information about this compromise? Check all that apply.

A. Logs.

B. Full Disk Encryption (FDE).

C. Binary whitelisting software.

D. Security Information and Event Management (SIEM) system.

Answer:

A. Logs.

D. Security Information and Event Management (SIEM) system.

Explanation:

If a network security analyst received an alert about a potential malware threat on a user’s computer. In order to get a detailed information about this compromise, the analyst should review both the logs and Security Information and Event Management (SIEM) system.

In Computer science, logs can be defined as records of events triggered by a user, operating system and other software applications running on a computer. Log files are used to gather information stored on a computer such as user activities, system performance and software program.

Security Information and Event Management (SIEM) system is the process of gathering and integration of all the logs generated by a computer from various software application, service, process, or security tool.

These logs collected through the SIEM are shown in a format that is readable by the security analyst and this help in real-time detection of threats.

Hence, logs and SIEM systems are important tools for network security analyst for detection of threats in real-time and event management functions.

Complete the method, print Multiples(), that takes in a positive integer n, and another positive integer, max. Print out all the multiples of n that are less than or equal to max. Print each multiple on a separate line. For example, if the method is called with n

Answers

Answer:

public static void printMultiples(int n, int max){

    for (int i=1; i<=max; i++){

        if(i%n == 0)

            System.out.println(i);

    }

}

Explanation:

Create a method called printMultiples that takes two parameters n and max

Inside the method, create a for loop that iterates from 1 to max. If i, a number between 1 and max, % n is equal to 0, that means the number is a multiple of n, print the number.

Two stations running TCP/IP are engaged in transferring a file. This file is 1000MB long, the payload size is 100 bytes, and the negotiated window size is 1000 bytes. The sender receives an ACK 1200 from the receiver.

Requried:
a. Which bytes will be sent next?
b. What is the last byte number that can be sent without an ACK being sent by the receiver?

Answers

Answer:

a. 2100

b. 2199

Explanation:

GIven that:

The file size = 1000 MB

The  payload size is  = 100 bytes

The negotiated window size is = 1000 bytes.

This implies that the sliding window can accommodate maximum number of 10 packets

The sender receives an ACK 1200 from the receiver.

Total byte of the file is :

1000 MB = 1024000000 bytes

a.

Sender receives an ACK 1200 from the receiver but still two packets are still unacknowledged

=1200 + 9 * 100

= 1200 +  900

= 2100

b. What is the last byte number that can be sent without an ACK being sent by the receiver?

b. Usually byte number starts from zero, in the first packet, the last byte will be 99 because it is in 1000th place.

Thus; the last byte number send is :

= 1200 + 10 *100 -1

= 1200 + 1000-1

= 1200 + 999

= 2199

Write an expression using membership operators that prints "Special number" if special_num is one of the special numbers stored in the list special_list

Answers

Answer:

In python, the statement can be written as:

if(special_num in special_list): print("Special Number")

Explanation:

We need to create a list with the name 'special_list' with some values and then check whether special_num is in the list or not using the membership operator.

Membership operator in python: in

Let us do it step by step in python:

special_list = ['1', '2', '3','4']      #A list with the values 1, 2, 3 and 4

special_num = input("Enter the number to be checked as special \t")

#Taking the input from the user in the variable special_num.

if(special_num in special_list): print("Special Number")

#Using the membership operator in to check whether it exists in the list or not.

Please refer to the image attached for the execution of above program.

So, the answer is:

In python, the statement can be written as:

if(special_num in special_list): print("Special Number")

all HTML tags are case sensitive, case insensitive and have to be written in capitals only​

Answers

Answer:

Html tags are not case sensitive

It's in JavaScript that the tags are case sensitive

The birthday attacks are called so because we can only have 365 birthdays (oh well, excluding 2/29). So, if there are 366 people in a place at least two of them have the same birthday - thus causing collision(s). Same things happens in hash algorithm. The people in birthday attack is the same thing as:___________. 1. hash in the hash algorithm. 2. input in the hash algorithm. 3. the algorithm in hash algorithm. 4. the key

Answers

Answer:

2. input in the hash algorithm

Explanation:

In a hash algorithm, a function called hash function (say H) is chosen to transform a variable sized input n, and return a fixed size string called the hash value (say h). i.e

H(n) => h

Comparing this to the birthday attacks;

i. the hash function is getting the people's birthdays - H,

ii. the input is each person in the group of people - n,

iii. the hash is the value of the birthday of each person - H(n).

James has a USB flash drive that he has used at work. The drive needs to be thrown away, but James wants to make sure that the data is no longer on the drive before he throws it away. What can James use to wipe the data clean?

a. Zero-fill utility
b. Format the drive
c. ATA Secure Erase
d. Smash the USB drive

Answers

Answer:

C. ATA Secure Erase

D. Smash the USB drive

Explanation:

Zero fill utility is a specialized way of formatting a storage device particularly secondary storage such as hard disk, flash drive e.t.c. In this process, the disk contents are overwritten with zeros. Once this has been done, undoing is essentially hard but possible. In most cases, this might just mean that the data content is corrupt and as such might still be recovered, maybe not in its pure entirety.

Formatting the drive on another hand does not essentially mean cleaning the drive and wiping off data. It just means that operating systems cannot see those data contents anymore. They are still present in the drive and can be recovered.

ATA Secure Erase is actually a way of completely and permanently erasing the content in a drive. Once the function has been done, undoing is not possible. Both the data content and even the data management table will be completely gone.

Smashing the USB drive is the surest way of cleaning data as that will permanently destroy the working components of the drive such as the memory chip. And once that happens then there's no drive let alone its contents.

Open the Undergrad Debt data in the Excel file. Nationally, on average, a college student last year graduated with $27,200 in debt with a historical standard deviation of $5,000. The file gives sample date from Arkansas.
Does Arkansas students have higher debt than the national average at alpha equal to 10?

Answers

Answer:

Arkansas students have higher debt than the national average, $27,200.

Explanation:

The provided data is:

S = {24040, 19153, 26762, 31923, 31533, 34207, 14623, 24370, 31016}

In this case we need to test whether Arkansas students have higher debt than the national average at alpha equal to 0.10.

The hypothesis can be defined as follows:

H₀: Arkansas students does not have higher debt than the national average, i.e. μ ≤ $27,200.

Hₐ: Arkansas students have higher debt than the national average, i.e. μ > $27,200.

Compute the sample mean:

[tex]\bar x=\frac{1}{n}\sum X=\frac{1}{10}\times 213537=21353.70[/tex]

As the population standard deviation is provided, we will use a z-test for single mean.

Compute the test statistic value as follows:

[tex]z=\frac{\bar x-\mu}{\sigma/\sqrt{n}}=\frac{21353.70-27200}{5000/\sqrt{10}}=-3.70[/tex]

The test statistic value is -3.70.

Decision rule:

If the p-value of the test is less than the significance level then the null hypothesis will be rejected.

Compute the p-value for the test as follows:

 [tex]p-value=P(Z>-3.70)=P(Z<-3.70)=0.00011[/tex]

*Use a z-table for the probability.

The p-value of the test is 0.00011.

p-value = 0.00011 < α = 0.10

The null hypothesis will be rejected.

Thus, it can be concluded that Arkansas students have higher debt than the national average, $27,200.

All the protocol layers of the internet (Application, Transport. Network) were originally without any security. TLS is one of the security architectures added later. In the Internet protocol stack. TLS is located:________. 1. right above the application layer 2. right below the application layer 3. right below the transport layer 4. right above the IP layer

Answers

Answer:

2. right below the application layer

Explanation:

TLS (Transport Layer Security) is an improved and more secured version of the SSL (Secure Socket Layer) used as cryptographic protocol for providing authentication and encryption over a network. It is initialized at the transport layer of the IP stack and finalized at the application layer. In other words, it is located between the transport and application layer of the Internet protocol stack. And this is necessary so that data received in the application layer from the transport layer are protected from start to end between these two layers.

Therefore, it is safe to say that the TLS is located right below the application layer.  

If a full disk encryption (FDE) password is forgotten, what can be incorporated to securely store the encryption key to unlock the disk?

Answers

Answer:

Key escrow.

Explanation:

If a full disk encryption (FDE) password is forgotten, a key escrow can be incorporated to securely store the encryption key to unlock the disk.

A key escrow can be defined as a data security method of storing very essential cryptographic keys.

Simply stated, key escrow involves a user entrusting his or her cryptographic key to a third party for storage.

As a standard, each cryptographic key stored or kept in an escrow system are directly linked to the respective users and are encrypted in order to prevent breach, theft or unauthorized access.

Hence, the cryptographic keys kept in an escrow system are protected and would not be released to anyone other than the original user (owner).

Therefore, when a full disk encryption (FDE) password is forgotten, a key escrow if incorporated can be used to retrieve the password. Subsequently, the password would then be used to unlock or decrypt the disk.

What are entity-relationship diagrams and how are they used? What symbol is used for a relationship? What is an associative entity? Provide an example.

Answers

Answer:

The definition including its given problem is outlined in the following segment on the clarification.

Explanation:

Entity-relationship (ER) diagram describes how mechanical stored procedures are constructed and demonstrate the overarching representation of the situation. It also describes the connections between some of the entities of the framework and even the comparison with standard measurements.For something like an individual relationship structure, the normal representation of connections seems to be a diamond. Associative institutions have several to many partnerships to communicate with. It's indeed the verb throughout a diamond-shaped form that holds two organizations around each other. This verb is in fact an entity on its own, therefore it must be termed an associative entity.An illustration of such might be if a participant were to register for a class. Multiple individuals will be registered for several courses, and there have been many to several relationships; thus, the associative object will indeed register.

A Solutions Architect needs to build a resilient data warehouse using Amazon Redshift. The Architect needs to rebuild the Redshift cluster in another region. Which approach can the Architect take to address this requirement

Answers

Answer:

Explanation:

An Amazon Redshift data warehouse refers to a collection of computing resources that are known as nodes. These nodes are organized into a group called a cluster. In order to correctly replicate/rebuild this cluster in another region, the Architect needs to modify the Redshift cluster to take snapshots of the Amazon EBS volumes each day, sharing those snapshots with the other region. These snapshots will provide accurate and up-to-date information allowing for a correct rebuild of the Redshift cluster.

If you have taken any drugs, it's not safe to drive.
A. True
B. False

Answers

Answer:

True

Explanation:

It is risky to drive while you are on drugs!

Internally, a bin heap is typically implemented as a BST that has the additional ordering property that the minimum value is at the root (or the maximum value is at the root, if we chose to make the bin heap to be a max heap).
a) True
b) False

Answers

Answer:

True is the correct answer to the given question .

Explanation:

Heap is the complete binary tree that meets the property of organizing the heap There are two types heap max heap and min heap .The value in the heap of every node is greater than or equal to its parent 's value or less then equal to the  parent with there dimension of the minimum value or the maximum value just at the root.

So the binary heap is configured as a Binary Search Tree with the external organizing attribute that perhaps the mean price is in the root with maximum value .

Therefore the given statement is true .

You are scanning a network to ensure it is as secure as possible. You send a TCP probe packet to a host with a FIN flag and receive a RST/ACK response. What does this mean?

Answers

Answer:

Hello your question lacks the required options here are the options

A)This response means the port he is scanning is open.

B)The RST/ACK response means the port Fred is scanning is disabled.

C)This means the port he is scanning is half open.

D) This means that the port he is scanning on the host is closed

answer : This means that the port he is scanning on the host is closed ( D )

Explanation:

When you scan a network to ensure it is secure enough by sending a TCP probe to a host with a FIN flag and you receive a RST/ACK response it means that The port that is been scanned on the host is closed

A TCP scanning/probe involves sending a number of packets to each port that is scanned. when you Compare TCP scanning methods to other methods of scans, a TCP Connect scan is typically slow and methodical.

php Exercise 3: Function Write a function named word_count that accepts a string as its parameter and returns the number of words in the string. A word is a sequence of one or more non-space characters (any character other than ' '). For example, the call of word_count("hello, how are you?") should return 4. Constraints: • Do not use any data structures such as arrays to help you solve this problem. • Do not use the String function explode on this problem. • But you can declare as many simple variables like Integer, String, etc. as you like. Keep it simple.

Answers

Answer:

<?php  

function word_count($string){   // function that takes a string a parameter and returns the number of words in that string

   $space = 0;   // this variable is used in order to detect space, new line and tab spaces in a string

   $words = 1; // this variable is used to identify word presence in string

   $include = $space;  //used to maintain the state of $words and $space

   $counter = 0;  // this counts the number of words in the string

   $i = 0;  //this moves through each character of the string

   while ($i < strlen($string)){  // iterates through every character of string until the last character of string is reached

       if ($string[$i] == " "||$string[$i] == "\n" || $string[$i] == "\t")  //if the space or new line or tab space is identified in the string

           $include = $space;  //set the state of include as space if the next character is a space newline or a tab space

       else if ($include == $space) {  //if next character is a word and current state i.e. $include holds $space

           $include = $words;   //  then set the state i.e. $include as $words

           ++$counter; } //increments i to move to next character at each iteration

       ++$i;  } //returns the number of words in a string

   return $counter; }

$str = "Hello, how are you ";  //sample string

echo "Words: " . word_count($str);  // calls word_count function to return number of words in str.

?>  

Explanation:

The program has a function word_count that accepts a string as its parameter and returns the number of words in the string. In the function there are three variables $space and $words and $include used as state variables. For instance $space identifies space, new line and tab spaces in the $string so it specifies that a space has occurred. $words identifies words in the $string so it specifies that a word has occurred. $include holds this state information. $i moves through every character of the $string and when a space occurs in the $string then the state $include is set to $space. When a word occurs then state $include is set to $words. $counter variable, which is used to count the number of words is incremented to 1 when previous state is $space and next character is a word character. Every time a word is seen in the string, this variable is incremented to 1 to keep track of number of words in the string. When $i reaches the end of the string then this loop stops and counter returns the number of words in the $string.


How many searches should you complete when looking up information using online references?

Answers

As many as it takes of course ;)

Answer:

c

Explanation:

var name = prompt("Enter the name to print on your tee-shirt");
while (name.length > 12) {
name = prompt("Too long. Enter a name with fewer than 12 characters.");
}
alert("The name to be printed is " + name.toUpperCase());

What will happen if the user enters Willy Shakespeare at the first prompt?

a. The user will be prompted to enter a different name
b. The alert will display The name to be printed is " + name.toUpperCase()
c. The alert will display The name to be printed is WILLY SHAKESPEARE
d. The alert will display The name to be printed is WILLY SHAKES

Answers

Willy Shakespeare has 17 characters. It's higher than 12,so the output will be Too long. Enter a name with fewer than 12 characters.

Letter a.

Those with good motor skills are often described as having ...
A. good coordination.
B. poor coordination.
C. athletic coordination,

Answers

The answer is B. Poor coordination

In the above case, those with good motor skills are often described as having good coordination.

What is good coordination?

A coordination skill is known to bee the ability of a person to look at many moving pieces and derive a plan for all the pieces to be put  together.

Therefore, In the above case, those with good motor skills are often described as having good coordination.

Learn more about good coordination from

https://brainly.com/question/1476231

#SPJ9

Other Questions
Angles a and b are supplementary . Angle a has a measure of 80 . What is the measure of angle b? The measure of angle b is? Which best describes a way people can use personal loans? to buy a house to buy a bicycle to pay for college to pay for groceries The slope of the line passing through the points (-1, 5) and (1, 6) is no slope 1/2 5/4 Match each description to the type of English colony it represents corporate colony proprietary colony royal colony King Charles ll of England have New York to he duke of York as a reward for his loyalty New Hampshire colony was owned by the English monarch who appointed a governor to run it Jamestown colony was founded and controlled by investors of an English joint stock company piece-wise functions according to the property a/b= a/b, which choice is equivalent to the quotient below? 125/5 In your own words, discuss the payback period, NPV (net present value), and IRR (internal rate of return) methods for capital budgeting analysis. What result does each method provide the user? What are the limitations of each of these methods? Which method would you find most useful in making the best investment decisions for your business and why? What is the distance between c and d A company pays an employee $3,000 for a five-day work week, mondayfriday. the adjusting entry on december 31, which is a wednesday, is a debit to wages expense, $1,800, and a credit to wages payable, $1,800. true the diagram below shows a sarcomere if a disorder makes it impossible for atp to bind to the myosin head what would happen to the sarcomere? What was the impact of Spain's silver trade with Asia?A. It decreased the price of silver.B. It created the first global economy.C. It opened the first European trade route with Asia.D. It led to a decline in trade in the Americas. Please only answer if you are 100% sure about the answer. Three flat layers of transparent material are stacked upon one another. The top layer has index of refraction n1, the middle has n2 and the bottom one has n3. If n1 > n2 > n3, and if a ray of light strikes the top layer at an angle of incidence, in which layer is the angle of refraction the greatest? Why? a. the bottom layer b. the top layer c. Once the ray enters the touching layers, the angle of refraction remains constant. d. the middle layer two cylinders are similar. the surface area of one is 64cm2 and the surface area of the other one is 81cm2. find the scale factor between them. You are reading the draft of a scientific paper that your co-worker has written. In the paper, he draws a sample from a population and computes the following two confidence intervals for : A 95% confidence interval of (90.21,100.37) A 99% confidence interval of (93.61.98.53) How do you know your co-worker made a mistake? He computed more than one confidence interval using the same sample data. Your co-worker did not round to 3 decimal places in his confidence interval upper and lower bounds The 99% confidence interval should be wider than the 95% confidence interval He is not a statistic, so it doesn't make any sense to compute confidence intervals for it. There is nothing wrong with his statements. A box experiencing a gravitational force of 600 N. is being pulled to the right with a force of 250 N. 825 N. frictional force acting on the box as it moves to the right what is the net force in the Y direction - (3/4) times (- 3/8) times ___= -3/4 A square with area 4 is inscribed in a square with area 5, with one vertex of the smaller square on each side of the larger square. A vertex of the smaller square divides a side of the larger square into two segments, one of length a and the other of length b. What is the value of ab? Rascal Corp. borrows $500,000 by signing on a 1-year, 12% promissory note from General Finance Company and assigns $600,000 of its accounts receivable as collateral for the loan. General Finance charges a financing fee of 1% of the receivables assigned. The journal entry for Rascal to record the borrowing will include a Determining the Mass of a Mystery Mystery object Object distance (m) Brick mass (kg) Brick distance (m) Brick torque (Nm) Object mass (kg) Fobject (N) Fbricks (N) Fpivot point (N) A. 1.00 20 B. 1.00 20 C. 1.00 20 D. 1.00 20