Answer:
a car salesman who demonstrates the features of a new model of car
Explanation:
Telecommuting can be defined as the process or making use of a telephone, email, or the internet to achieve your daily work. An attorney that spends most of her time researching on the computer is making use of an internet to do her work and hence telecommuting is employed. A copywriter for an advertising firm also makes use of email in the process of write copying and hence telecommuting is employed. A telemarketer uses the telephone and a product support who handles queries sent by customers also uses the internet and emails and telephones and hence they all use telecommuting. Demonstrating the feature of a new car does not use require the use of a telephone, email, or the internet.
a. stateTaxRate - A good variable name because it represents what it holds, the state sales tax rate, without being too wordy. Also correctly capitalized in camelcase.
b. txRt - A bad variable name because while short and simple, it is too hard to understand what the variable represents.
c. t - A very bad variable name if you plan on using the variable often. Far too short and you will forget what it represents and is needed for.
d. stateSalesTaxRateValue - A bad variable name because it is just too wordy. Cutting it down to A's variable name is much more reasonable
e. state tax rate - A bad variable name and probably invalid because it has spaces in the name.
f. taxRate - A good variable name if there are no other tax calculations other than state tax rate. Otherwise you would confuse state vs local tax rate or something, making it a bad variable name.
g. 1TaxRate - A bad variable name because the number 1 has no reason being in the variable name. It doesn't add anything to the name.
h. moneyCharged - A bad variable name because it is not specific enough in explaining why the money is being charged and what for.
Answer:
Explanation:
The following code is written in Java. It is hard to fully create the code without the rest of the needed code including the T class and the Measurable interface. Regardless the following code can be implemented if you have that code available.
public static T minmax(ArrayList<T> mylist) {
T min = new T();
T max = new T();
for (int x = 0; x < mylist.size(); x++) {
if (mylist.get(x) > max) {
max = mylist.get(x);
} else if (mylist.get(x) < min) {
min = mylist.get(x);
}
}
return (min, max);
}
Answer:
// The code segment is written in C++ programming language
// The code segment goes as follows
for (k = 0; k < nMembers; k++)
{
//check if memberID can be found in currentMembers
if (currentMembers[k] == memberID){
// If yes,
// assigns true to isAMember
isAMember = true;
k = nMembers;
}
else{
isAMember = false;
// If no
// assigns false to isAMember
}
}
// End of segment:
The following assumption were made in the code segment above.
There exists
1. An already declared and initialised int array currentMembers.
2. An already initialised int variable memberID
Line 3 initiates a loop to scan through the array
Line 6 checks for the condition below
If current element of array equals memberID then
It assigns true to isAMember and nMembers to k
Else
It assigns false to isAMember
Answer:
Following are the program in the Python Programming Language.
#set list type variable and initialize the elements
myPizza = ['Margarita', 'Capsicum and onion', 'Chicken']
#set variable and initialize the elements
frndPizzas = myPizza[:]
#append value in list variable
myPizza.append('Corn')
#append value in list variable
frndPizzas.append('paperica')
#print message
print("My pizzas are:")
#set the for loop and print elements of 1st list
for pizza in myPizza:
print(pizza)
#print message
print("\nFriend's pizzas are:")
#set the for loop and print elements of 2st list
for frndsPizza in frndPizzas:
print(frndsPizza)
<u>Output</u>:
My pizzas are:
Margarita
Capsicum and onion
Chicken Corn
Friend's pizzas are:
Margarita Capsicum and onion Chicken paperica
Explanation:
<u>Following are the description of the program</u>:
- Set a list data type variable that is 'myPizza' and initializes elements in it.
- Set another list data type variable that is 'frndPizzas' and initializes elements in it.
- Append one-one element in both of the list data type variables.
- Set the for loops to print the elements of both list data type variables.