# Look at the following assignment statements:word1 = "skate"word2 = "board"What is the correct way to concatenate the strings?newWord = word1 / word2newWord = word1 + word2newWord = word1 * word2newWord = word1 = word2

The correct way to concatenate the strings is:

newWord = word1 + word2

newWord = word1 + word2

Explanation:

## Related Questions

Which of the following people was a member of FFA?O Kenny Chesney
O Tim McGraw
O Alan Jackson
O Billy Currington

Explanation:

The National FFA Organization is a youth organization that originally aimed to encourage the youth to venture into agriculture by offering agriculture education to youth in high schools and middle schools. In recent years they started offering education in other areas such as business and technology.

The FFA is quite famous and has had and still has a lot of members. It is of no surprise therefore that some of their alumni are now stars. Famous Country musician Tim McGraw is one such alumni and he was a member of the FFA in his hometown of Start, Louisiana.

Other stars who were part of the FFA include; Taylor Swift and Sterling Martin.

The energy company in Program 1 now uses different rates for residential and business customers. Residential customers pay \$0.12 per kWh for the first 500 kWh. After the first 500 kWh, the rate is \$0.15 per kWh. Business customers pay \$0.16 per kWh for the first 800 kWh. After the first 800 kWh, the rate is \$0.20 per kWh. Write a program to calculate energy charge. You must write and use the following two functions. (a)A main function: Ask the user to enter number of kWh used and customer type (enter R for residential or B for business). Call the bill_calculator function and pass number of kWh used and customer type to it as arguments. You must use positional arguments to pass kWh used and customer type. (b)A bill_calculator function: This function has two parameters to receive number of kWh used and customer type. Calculate and display the energy charge.

The c# program for the scenario is given below.

using System;

public class Program2 {

double total = 0;

static void Main() {

Program2 ob = new Program2();

Console.WriteLine("Enter total energy used in kilo watts ");

int p;

Console.WriteLine("Enter type of customer ");

char t;

ob.bill_calculator(p, t);

Console.WriteLine("Total charge for " + p + " kilo watts electricity for " + t + " customers is " + ob.total);

}

public void bill_calculator(int e, char c)

{

int first=500, second = 800;

double chg_one = 0.12, chg_two=0.15, chg_three = 0.16, chg_four = 0.20;

if(c == 'R')

{

if(e <= 500)

{

total = (e * chg_one);

}

else if(e > 500)

{

total = ( first * chg_one);

total = total + ((e-first) * chg_two);

}

}

if(c == 'B')

{

if(e <= 800)

{

total = (e * chg_three);

}

else if(e > 800)

{

total = ( first * chg_three);

total = total + ((e-second) * chg_four);

}

}

}

}

OUTPUT

Enter total energy used in kilo watts

1111

Enter type of customer

B

Total charge for 1111 kilo watts electricity for B customers is 142.2

Explanation:

The program takes user input for the type of customer and the amount of electric current used by that customer.

The two input values decide the rate at which total charge is calculated.

For residential customers, charges are divided into slabs of 500 or less and more than 500.

Alternatively, for business customers, charges are divided into slabs of 800 or less and more than 800.

User input is taken in main function.

Charges are calculated in the bill_calculator method which takes both user input as parameters.

If else block is used to calculate the charges.

No input validation is implemented as it is not mentioned in the question.

All code is written inside the class. An object is created of the class.

The methods outside main() are called using the object of the class.

Given a String variable named sentence that has been initialized, write an expression whose value is the number of characters in the String referred to by sentence.

A String variable named sentence that has been initialized, write an expression whose value is the number of characters in the String referred to by sentence. Python: sentence = “this is the sentence.” size = lens (sentence), C++: string sentence = “this is the sentence.” int size = sentence.

### What is python ?

Python is an programming language with the integration of dynamic semantics for web and app development, extremely attractive in the field of Rapid Application Development.

Python is simple in comparison to other language program,  so it’s easy to learn and understand well; it needs a unique syntax which is mainly focus on readability.

Developers can read and translate Python code in a easy way, than other languages and reduces the cost of program maintenance and development.

For more details regarding python, here

brainly.com/question/18502436

#SPJ2

Python:

sentence = “this is the sentence.”
size = len(sentence)

C++:

string sentence = “this is the sentence.”
int size = sentence.size()

* Remember strings are just arrays of characters.

"Write an SQL query that displays the Ssn and Last name of all employees who is a supervisor of a Department Manager"

SELECT Ssn,

Last_name

FROM employees

WHERE position = supervisor;

Explanation:

SELECT is an SQL query statement that is used to initiate the display of wanted variables.

The names of the variables often succeed the SELECT statement and they are separated by commas.

FROM is an SQL query statement that indicates the table fro which the selected variables be displayed.

WHERE is used to filter your search and return only rows that meet the criteria.

; signifies the end of a query and calls for an execution.

Which is an example of adaptive social behavior?

Birds help take care of each other's young to increase their chances of survival, and the behavior is passed on to offspring.

Hope this helps!! :)

D.

Explanation:

edge 2021

Suppose an array with six rows and eight columns is stored in row major order starting at address 20 (base 10). If each entry in the array requires only one memory cell, what is the address of the entry in the third row and fourth column?

39

Explanation:

Since each of the address occupies only 1 memory cell and the 2-D array is row-major 2-D array.So the elements will be filled row wise.First the first row will be fully filled after that second row and so on.Since we want the address of the element at third row and fourth column.

we can generalize this :

address of the element at ith row and jth column=s + ( c * ( i - 1 ) + ( j - 1 ) ).