Answer:
c. offers a great deal of network control and lower cost.
Explanation:
A network topology can be defined as a graphical representation of the various networking devices used to create and manage a network.
Compared with a star topology, a hierarchical topology offers a great deal of network control and lower cost.
Assume the names variable references a list of strings. Write code that determines whether 'Ruby' is in the names list. If it is, display the message 'Hello Ruby'. Otherwise, display the message 'No Ruby'. starting out with python
names = []
if "Ruby" in names:
print("Hello Ruby")
else:
print("No Ruby")
Just populate the names variable with whatever strings you want.
The code to display 'Hello Ruby' is shown below:
if 'Ruby' in names:
print(' Hello Ruby')
else:
print(' No Ruby')
What is If- else Statement?The true and false parts of a given condition are both executed using the if-else statement. If the condition is true, the code in the if block is executed; if it is false, the code in the else block is executed.
In Python, the if statement is a conditional statement that determines whether or not a block of code will be performed. Meaning that the code block inside the if statement will be executed if the programme determines that the condition defined in the if statement is true.
Given:
We write an if- else statement code using the 'Ruby' in names will True if 'Ruby' is in names as our condition
if 'Ruby' in names:
print(' Hello Ruby')
else:
print(' No Ruby')
Learn more about if- else statement here:
https://brainly.com/question/14003644
#SPJ5
Maria wants to create a simple logo for her new flower shop. She would like to use the computer to create this logo. Maria should use a machine diagramming software CAD
Answer:
graphics software
Explanation:
Maria should use a graphics software
Two time series techniques that are appropriate when the data display a strong upward or downward trend are ___________ and ___________. Group of answer choices
Answer:
adjusted exponential smoothing; linear regression.
Explanation:
A time series can be defined as a technique used in statistical analysis and it involves indexing sets of data elements in a timely or successive order i.e sequentially.
Two time series techniques that are appropriate when the data display a strong upward or downward trend are adjusted exponential smoothing and linear regression.
An adjusted exponential smoothing is a statistical technique used for forecasting through the calculation of the weighted average of an actual value.
An alternative design for a canary mechanism place the NULL value just below the return address. What is the rationale for this design decision
Answer:
This is to prevent attacks using the strcpy() and other methods that would return while copying a null character.
Explanation:
Canary is a mechanism used to monitor and prevent buffer overflow. The alternative canary design that places a null value just before the return address is called the terminator canary.
Though the mechanism prevents string attacks, the drawback of the technique is that the value of the canary is known which makes it easy for attackers to overwrite the canary.
What are some other features of sending attachments in Outlook 2016? Check all that apply.
A file is something from outside of Outlook, such as Word or PowerPoint.
An Outlook item, such as a calendar, can be attached to an email.
An attachment reminder will pop up every time you send the message.
O A cloud-based file is shared by including a link to it in the message body.
Answer:
A B D
Explanation:
Answer:
the answers are B , B , and A
Explanation:
Write a program that will read a line of text as input and then display the line with the first word moved to the end of the line
Answer:
The program in Python is as follows:
text_input = input("Enter text: ")
first_word = text_input.split(" ")
new_text = text_input.replace(first_word[0], "")
new_text = new_text + " "+ first_word[0]
print("New Text: " + new_text)
Explanation:
This line gets a line of text from the user
text_input = input("Enter text: ")
This line splits the text into list
first_word = text_input.split(" ")
This line deletes the first word of the string
new_text = text_input.replace(first_word[0], "")
This line appends the first word to the end of the string
new_text = new_text + " "+ first_word[0]
This line prints the new text
print("New Text: " + new_text)
how would i change this:
" try:
userChoice = input("Would you like to Add or Multipy?(A/M): ")
except:
print("Please enter 'A' or 'M'") "
so it only allows me to put "A" or "M" so that it runs the except part
You wouldnt use a try and except statement. Use a loop.
Write code to play a Tic-tac-toe tournament. Tic-tac toe is a game for two players who take turns marking the spaces with Xs and Os in a 3x3 grid. The purpose of the game is to place three of your marks in a horizontal, vertical or diagonal.
Answer:
Explanation:
The following code is written in Python and is a full Two player tic tac toe game on a 3x3 grid that is represented by numbers per square.
# Making all of the main methods of the game
board = [0,1,2,
3,4,5,
6,7,8]
win_con = [[0,1,2],[3,4,5],[6,7,8],
[0,3,6],[1,4,7],[2,5,8],
[0,4,8],[2,4,6]] # possible 3-in-a-rows
def show():
print(board[0],'|',board[1],'|',board[2])
print('----------')
print(board[3],'|',board[4],'|',board[5])
print('----------')
print(board[6],'|',board[7],'|',board[8])
def x_move(i):
if board[i] == 'X' or board[i] == 'O':
return print('Already taken!')
else:
del board[i]
board.insert(i,'X')
def o_move(i):
if board[i] == 'X' or board[i] == 'O':
return print('Already taken!')
else:
del board[i]
board.insert(i,'O')
# Creating the main loop of the game
while True:
turn_num = 1
board = [0,1,2,3,4,5,6,7,8]
print('Welcome to Tic-Tac-Toe!')
print('AI not implemented yet.')
while True:
for list in win_con: #check for victor
xnum = 0
onum = 0
for num in list:
if board[num] == 'X':
xnum += 1
elif board[num] == 'O':
onum += 1
else:
pass
if xnum == 3 or onum == 3:
break
if xnum == 3 or onum == 3: # break loops
break
if turn_num > 9: # Check if there are any more moves available
break
show()
if turn_num % 2 == 1:
print('X\'s turn.')
else:
print('O\'s turn.')
move = int(input('Choose a space. '))
if turn_num % 2 == 1:
x_move(move)
else:
o_move(move)
turn_num += 1
if xnum == 3: #If game ends
print('X Won!')
elif onum == 3:
print('O Won!')
else:
print('Draw!')
play_again = input('Play again? Y or N ')
if play_again == 'Y' or play_again == 'y':
continue
else:
break
Brian gathers data from his classmates about the computers they own such as the type of operating system, the amount of memory, and the year the computer was purchased. Who/what are the individuals in this data set
Incomplete question. The Options read;
A. The year purchased
B. Brian's classmates
C. The amount of memory
D. The type of operating system
Answer:
B. Brian's classmates
Explanation:
Remember, the question is concerned about "the individuals" in the data set, so the year they purchased their computer, neither is the amount of memory of the computer and the type of operating system can be classified as individuals in the data set.
Hence, we can correctly say, only Brian's classmates are the individuals in this data set.
In case of a suspected data breach, what course of action should a chief information security officer (CISO) take
Answer
1. Assemble his team
2. Find reason for breach
3. Evaluate what was lost
4. Ensure password change
Explanation:
In case of a suspected breach, the Chief information security officer should first of all assemble his incidence response team. This team should have representatives from all areas of the organization.
Then the reason for the breach and how access was gained has to be found out. An evaluation of what has been lost in the breach would be carried out and it's likely impact on the company.
In case credentials were stolen the CISO has to ensure that the employees change passwords. Also he has to notify all the necessary parties about the breach.
The CISO has to ensure that all employees are trained properly on security and they comply to security policies.
One problem with dynamic arrays is that once the array is created using the new operator the size cannot be changed. For example, you might want to add or delete entries from the array similar to the behavior of a vector. This project asks you to create a class called DynamicStringArray that includes member functions that allow it to emulate the behavior of a vector of strings.
The class should have:
A private member variable called dynamicArray that references a dynamic array of type string.
A private member variable called size that holds the number of entries in the array.
A default constructor that sets the dynamic array to NULL and sets size to 0.
A function that returns size.
A function named addEntry that takes a string as input. The function should create a new dynamic array one element larger than dynamicArray, copy all elements from dynamicArray into the new array, add the new string onto the end of the new array, increment size, delete the old dynamicArray, and then set dynamicArray to the new array.
A function named deleteEntry that takes a string as input. The function should search dynamicArray for the string. If not found, return false. If found, create a new dynamic array one element smaller than dynamicArray. Copy all elements except the input string into the new array, delete dynamicArray, decrement size, and return true.
A function named getEntry that takes an integer as input and returns the string at that index in dynamicArray. Return "" string if the index is out of dynamicArray’s bounds.
Overload the operator[] so that you can get and change an element by an index integer. If the index is out-of-bounds, return a "" string.
A copy constructor that makes a copy of the input object’s dynamic array.
Overload the assignment operator so that the dynamic array is properly copied to the target object.
A destructor that frees up the memory allocated to the dynamic array.
Create a suitable test program to test your class.
You should name the project ASG10. When you zip up the project folder, ASG10, include all the files (.sln, .cpp, etc) and subdirectories (Debug, etc.).
**************************************************
Copy your DynamicStringArray from Assignment 10. Fix the program so all 13 tests work properly. Modify the definition of the overloaded operator [] and getEntry so they throw an OutOfRange exception if an index that is out of range is used. OutOfRange is an exception class that you define. The exception class should have a private int member and a private string member, and a public constructor that has int and string arguments. The offending index value along with a message should be stored in the exception object. You choose the message to describe the situation. Modify your test program and add tests that catch the new exception class.
You should name the project ASG14. When you zip up the project folder, ASG14, include all the files (.sln, .cpp, etc) and subdirectories (Debug, etc.).
Answer:
Un problema con las matrices dinámicas es que una vez que se crea la matriz utilizando el nuevo operador, no se puede cambiar el tamaño. Por ejemplo, es posible que desee agregar o eliminar entradas de la matriz de manera similar al comportamiento de un vector. Este proyecto le pide que cree una clase llamada DynamicStringArray que incluye funciones miembro que le permiten emular el comportamiento de un vector de cadenas.
La clase debe tener:
Una variable miembro privada llamada dynamicArray que hace referencia a una matriz dinámica de tipo cadena.
Una variable de miembro privada llamada tamaño que contiene el número de entradas en la matriz.
Un constructor predeterminado que establece la matriz dinámica en NULL y establece el tamaño en 0.
Una función que devuelve el tamaño.
Una función llamada addEntry que toma una cadena como entrada. La función debe crear una nueva matriz dinámica un elemento más grande que dynamicArray, copiar todos los elementos de dynamicArray en la nueva matriz, agregar la nueva cadena al final de la nueva matriz, incrementar el tamaño, eliminar el antiguo dynamicArray y luego establecer dynamicArray en el nueva matriz.
Una función llamada deleteEntry que toma una cadena como entrada. La función debe buscar la cadena en dynamicArray. Si no lo encuentra, devuelva falso. Si lo encuentra, cree una nueva matriz dinámica con un elemento más pequeño que dynamicArray. Copie todos los elementos excepto la cadena de entrada en la nueva matriz, elimine DynamicArray, reduzca el tamaño y devuelva verdadero.
Una función llamada getEntry que toma un número entero como entrada y devuelve la cadena en ese índice en dynamicArray. Devuelve la cadena "" si el índice está fuera de los límites de dynamicArray.
Sobrecargue el operador [] para que pueda obtener y cambiar un elemento por un índice entero. Si el índice está fuera de los límites, devuelve una cadena "".
Un constructor de copia que hace una copia de la matriz dinámica del objeto de entrada.
Sobrecargue el operador de asignación para que la matriz dinámica se copie correctamente en el objeto de destino.
Un destructor que libera la memoria asignada a la matriz dinámica.
Cree un programa de prueba adecuado para evaluar su clase.
Debería nombrar el proyecto ASG10. Al comprimir la carpeta del proyecto, ASG10, incluya todos los archivos (.sln, .cpp, etc.) y subdirectorios (Debug, etc.).
************************************************
Copie su DynamicStringArray de la Tarea 10. Corrija el programa para que las 13 pruebas funcionen correctamente. Modifique la definición del operador sobrecargado [] y getEntry para que generen una excepción OutOfRange si se usa un índice que está fuera de rango. OutOfRange es una clase de excepción que define. La clase de excepción debe tener un miembro int privado y un miembro string privado, y un constructor público que tenga argumentos int y string. El valor del índice infractor junto con un mensaje deben almacenarse en el objeto de excepción. Tú eliges el mensaje para describir la situación. Modifique su programa de prueba y agregue pruebas que detecten la nueva clase de excepción.
Deberías nombrar
Explanation:
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later
date and also make it available to her colleagues.
What is her best option?
Answer:
Making a custom template.
Answer:
Creating a custom template
Explanation:
Hope that helped.
Write a python program that: - Defines a tuple of 5 integer numbers - prints the tuple - Appends a new value to the end of the tuple - prints the tuple again Please note that appending a new value to a tuple will change the tuple. However, as you learned in Unit 5, tuples are immutable i.e. do not change. Therefore, to solve this problem, you need to find a way to change a tuple.
Answer:
The program is as follows:
my_tuple = (1,2,3,4,5)
print(my_tuple)
mylist = list(my_tuple)
mylist.append(6)
my_tuple = tuple(mylist)
print(my_tuple)
Explanation:
This defines a tuple of 5 integers
my_tuple = (1,2,3,4,5)
This prints the tuple
print(my_tuple)
To add new element to the tuple; First, we convert it to list. This is done below
mylist = list(my_tuple)
Then, an item is appended to the list
mylist.append(6)
The list is then converted to tuple
my_tuple = tuple(mylist)
This prints the tuple
print(my_tuple)
Explain the three major Subassembly
of a computer Keyboard
The three major Subassembly of a computer Keyboard are as follows; alphabetical keys, function keys, and the numeric keypad.
What are the three major Subassembly of a computer Keyboard?The keyboard is divided into four components as; alphabetical keys, function keys, cursor keys, and the numeric keypad.
An Keyboard is an input Device used to enter characters and functions into the computer system by pressing buttons.
An Keyboard is a panel of keys that operate a computer or typewriter.
Additional special-purpose keys perform specialized functions.
The mouse is a pointing device used to input data.
The Input devices enable to input data and commands into the computer.
The three major Subassembly of a computer Keyboard are as follows; alphabetical keys, function keys, and the numeric keypad.
Learn more about the keybord here;
https://brainly.com/question/24921064
#SPJ2
What is Machine Learning (ML)?
Answer:
its where you learn about machines
Write a method that takes a Regular Polygon as a parameter, sets its number of sides to a random integer between 10 and 20 inclusive, and sets its side length to a random decimal number greater than or equal to 5 and less than 12. Use Math.random() to generate random numbers. This method must be called randomize() and it must take a Regular Polygon perimeter.
Answer:
Answered below
Explanation:
//Program is written in Java programming language
Class RegularPolygon{
int sides = 0;
int length = 0;
}
public void randomize(RegularPolygon polygon){
int randomSides = (int) 10 + (Math.random() * 20);
double randomLength = 5 + (Math.random() * 11);
polygon.sides = randomSides;
polygon.length = randomLength;
}
True or False: One benefit of virtualization is that it allows for better use of already existing hardware that may not be seeing full utilization.
Answer:
True.
Explanation:
Virtualization can be defined as a technique used for the creation of a virtual platform such as a storage device, operating system, server, desktop, infrastructure or computing resources so as to enable the sharing of resources among multiple end users. Virtualization is usually implemented on a computer which is referred to as the "host" machine.
Generally, to use the virtualization technology on a computer, it must be enabled in the BIOS/UEFI).
Additionally, VMware tools can be installed on host computers to check which processes are having high CPU usage by using vimtop, as well as checking if vCenter Server is swapping.
Hence, one benefit of virtualization is that it allows for better use of already existing hardware that may not be seeing full utilization. Hardware components such as storage devices, central processing unit (CPU), random access memory (RAM), host computers are extensively put into use.
Fill in this function that takes three parameters, two Strings and an int. 4- // Write some test function calls here! The Strings are the message that should be printed. You should alternate printMessage("Hi", "Karel", 5); between the Strings after each line. The int represents the total number of lines that should be printed. public void printMessage(String lineOne, String lineTwo, in For example, if you were to call 19.
printMessage("Hi", "Karel", 5);
// Start here! 12 the function should produce the following output:
Hi
Karel
Hi
Kare
Answer:
The function in Java is as follows:
public static void printMessage(String lineOne, String lineTwo, int lines){
for(int i = 1;i<=lines;i++){
if(i%2 == 1){
System.out.println(lineOne);
}
else{
System.out.println(lineTwo);
}
}
}
Explanation:
This defines the function
public static void printMessage(String lineOne, String lineTwo, int lines){
This iterates through the number of lines
for(int i = 1;i<=lines;i++){
String lineOne is printed on odd lines i.e. 1,3,5....
if(i%2 == 1){
System.out.println(lineOne);
}
String lineTwo is printed on even lines i.e. 2,4,6....
else{
System.out.println(lineTwo);
}
}
}
To call the function from main, use:
printMessage("Hi", "Karel", 5);
What is the advantage of using shortcuts
Answer: There can be advantages and disadvantages.
for example, if you were in the woods with a pathway, and a clear way that might be faster and a shorter way of getting out. You may take the shortcut leading to where you didn't want to go leading to you getting lost or, it could be the same time but with more challenges.
An example of shortcuts to it's advantage is when you're reading a text and you don't understand the word. It's much easier when you hear it being read out to you when the reader uses tone to kind of give you a hint if the connotation is negative or positive, A good example of this is the word unique let's use this sentence "She was very unique, and that's what made her cool!" We can use the words "cool" to see that unique is a positive connotation! For the word cool can usually mean that something is real nice or it's something/someone you'd typically like to be around. So therefore these are just a few examples of the advantages and disadvantages of shortcuts.
how do I make my own algorithms
Answer:
Step 1: Determine the goal of the algorithm. ...
Step 2: Access historic and current data. ...
Step 3: Choose the right model(s) ...
Step 4: Fine tuning. ...
Step 5: Visualise your results. ...
Step 6: Running your algorithm continuously.
What is software piracy? Check all of the boxes that apply.
copying computer software or programs illegally
using someone’s ideas without giving them credit
making lots of copies and sharing with friends
breaking the security on software so it can be used illegally
knowing the laws regarding copyright and intellectual property
Answer:
Explanation:
Software Piracy includes all of the following:
copying computer software or programs illegallymaking lots of copies and sharing with friendsbreaking the security on software so it can be used illegallyAll of these acts provide ways of individuals gaining access to the software illegally and without paying for it. Doing so ultimately prevents the software developers from making any money on the idea and all of the hard work that they have put into making that software.
Answer:
A C D
Explanation:
Define the following propositions: c: I will return to college. j: I will get a job. Translate the following English sentences into logical expressions using the definitions above: (a) Not getting a job is a sufficient condition for me to return to college. (b) If I return to college, then I won't get a job.
Answer:
Answered below
Explanation:
//Program is written in Kotlin programming language
//Initialize Boolean variables
var getJob:Boolean = true
var returnToCollege: Boolean = false
//First sentence. If no job then return to //college.
if( !getJob ) {
returnToCollege = true
}
//Second sentence. If you have returned to college then you cannot get a job.
if (returnToCollege == true){
getJob = false
}
To lose weight, you must _______.
a.
increase exercise and increase caloric intake
b.
increase exercise and decrease caloric intake
c.
decrease exercise and increase caloric intake
d.
decrease exercise and decrease caloric intake
Answer:
B
Explanation:
because you need to exercise and eat or drink less calories
Answer: b. increase exercise and decrease caloric intake
Explanation:
What occurs during the mail merge process? Place the steps in the correct order.
Specify which records to
Insert merge fields.
Preview, print, or email the Connect to a data source.
Create the main
include
document
document
ANSWER:
1. creat the main document
2. connect to a data source
3. specify which records to include
4. insert merge fields
5. preview, print, or email the document
Answer:
1. Create the main document
2. Connect to a data source
3. Specify which records to include
4. Insert merge fields.
5. Preview, print, or email the document.
Explanation:
Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.
A Mail Merge is a Microsoft Word feature that avails end users the ability to import data from other Microsoft applications such as Microsoft Access and Excel. Thus, an end user can use Mail Merge to create multiple documents (personalized letters and e-mails) at once and send to all individuals in a database query or table.
The sequential steps of what occurs during the mail merge process are;
1. Create the main document
2. Connect to a data source
3. Specify which records to include
4. Insert merge fields.
5. Preview, print, or email the document.
Answer:
1.Create the main document
2.Connect to a data source
3.Specify which records to include.
4.Insert merge cells
5.Preview, print, or email the document.
Explanation:
Just did it on e2020
1. Discuss the pros and cons of human-computer interaction technology?
2. Discuss the ACID database properties in details
!
gcoo!!Exykgvyukhhytocfplanationufvhyg: