Answer:
C
Explanation:
Write bash script which takes array as an input of size 10 bind its even indexes to accept even values and odd indexes to accept odd numbers only. Print invalid input if given input is not valid.
Answer:
Bash script which takes array as an input of size 10 bind its even indexes to accept even values and odd indexes to accept odd numbers only is explained below in detail.
Explanation:
Even digits at an even table and odd digits at an odd table
Given an array of size n comprising an equal number of odd and even digits. The difficulty is to manage the numbers in such an approach that all the even digits get the even table and odd digits get the odd table. The necessitated auxiliary space is O(1).
Examples :
Input : arr[] = {8, 5, 1, 12, 6, 3}
Output : 3 6 1 12 5 8
Input : arr[] = {7, 9, 10, 19, 13, 18, 21, 20, 4, 14}
Output : 18 9 10 19 20 7 14 13 4 21
edhesive in JAVA Write a method that takes a String parameter. If the String has a double letter (i.e. contains the same letter twice in a row) then it should return true. Otherwise, it should return false.
This method must be named hasRepeat() and have a String parameter. This method must return a boolean.
I've included my code in the picture below. Best of luck.
The method is an illustration of loops and conditional statements.
Loops are used for repetitive operations, while the execution of a conditional statement is based on its truth value.
The hasRepeat() method in Java, where comments are used to explain each line is as follows:
//This defines the hasRepeat() method
public static boolean hasRepeat(String str){
//This initializes the previous character
char prevC = ' ';
//This iterates through the characters of the string str
for(int i = 0; i<str.length();i++){
//This gets the current character
char currC = str.charAt(i);
//If the current character and the previous character are the same
if(currC == prevC){
//Return true
return true;
}
//Assign the current character to the previous character
prevC = currC;
}
//Return false, it the string contains no repetitive character
return false;
}
At the end of the method, the program returns true or false.
Read more about similar programs at:
https://brainly.com/question/14998938
Write a function gcd(x, y) that returns the greatest common divisor of the parameters x and y. Use the Euclidean algorithm to do this. Return None if the gcd does not exist(i.e., if both parameters are 0)
Answer:
function gcd(x,y) {
if (!y && !x) return 'None';
if (!y) return x;
return gcd(y, x%y);
}
console.log(gcd(462, 910));
console.log(gcd(0, 0));
console.log(gcd(32, 40));
Explanation:
This example is in javascript.
what must be the same for each variable in an array in compiled languages?
The data type must be the same for each item in the array.
what is the value of the variable double dNum=14/5?
Answer:
2.0
Explanation:
In the case where the result is cast to a double, the answer evaluated to an in type (2) then was cast to a double which gives you 2.0.
What is a small symbol or graphic used to highlight a line of text?
Answer:
It would be a little highlighter at the top of the screen.
Explanation:
b) Machine cycle defines a loop process with four major components. Explain why machine cycle is important? If the components of machine cycle are inter-swapped, would that cause any problems?Can we add another module to rectify the problem caused by inter-swapping?
Answer:
Machine cycle defines a loop process with four major components is explained below in detailed explanation.
Explanation:
The machine cycle has four methods i.e. fetch method, decoding method, execute method, and store method. All these methods are essential for the preparation performance of the processor. By the machine cycle, the execution of the processor can be measured and the device can be decided.
Importance of Machine Cycle
The machine cycle is essential for the execution of machine direction by the computer processor as the device execution is based on the machine cycle. If the direction is not executed accurately the execution can be deteriorated by the processor.
Which of the following file formats cannot be imported using Get & Transform?
A.) Access Data table
B.)CVS
C.)HTML
D.)MP3
Answer:
The correct option is D) MP3
Explanation:
According to the given scenario, The data that can be imported using get and transform is as follows:
a. CVS
b. Hypertext markup language (HTML)
c, Access data table
The Get and transform means first get the data and then modify according to your needs.
So as per given options, the option D i.e MPC i.e. file format this cannot be imported using Get & transform
Therefore the correct option is D) MP3
Question #2
Multiple Choice
What is the index of 7 in this list?
[5, 6, 10, 7, 3, 2.5]
A ) 3
B ) 2
C ) 4
D ) 7
Answer:
C.
Explanation:
mukhang
letter
C.
pambihira
ka
naman
bat
hindi
ka
magtanong
sa
mga
nakakatanda
mong
kapatid
Answer:
The answer to your question is C. Have a wonderful safe day. <3 <3 <3
Explanation:
Lucy completed her PowerPoint presentation and showed it to her teacher to review. Lucy's teacher said it needed to be more engaging for the audience. The teacher suggested making the slides push in. What feature is Lucy's teacher referring to?
Answer:
The answer to this question is given below in the explanation section.
Explanation:
Lucy completed her PowerPoint presentation and showed it to her teacher to review. Lucy's teacher said it needed to be more engaging for the audience. The teacher suggested making the slides push in.
The teacher referring to the Transitions effect that is push while making the slides.
You can insert different Transition effect on your slides while going through the Transitions tab on the ribbon, and then select your desired effect on the selected/active slide. There are tens of transitions effect, you can search for your desired effect on your slide, such as Lucy's teacher suggested to her to add a push-in effect.
Answer: Transition, I just finished my test for this lesson! I got an 100% on it!
Explanation: When you go and read through the lesson, there's a page telling you about each tab. When you go to "Transitions", there is an image that shows the features for transitioning your slides. The options shown in the picture is "existing", "none", "morph", "cut", "fade", "wipe", and "push".
How does entering search terms in quotation marks affect search results?
a bus is full of passengers. if you count them by either twos, threes, or fives, there is one left. if you count them by seven there will be none left. find the least number of passengers in the bus?
Answer:
91
Explanation:
You know that the number must end in 6 or 1 to get a left over of 1 when divided by 5. Six won't work because 2 divides evenly into a number ending into 6.
So the number ends in 1.
21 doesn't work because 3 divides into 21 evenly.
31 doesn't work because 7 does not divide into it.
41 doesn't work. 41 is prime. 7 won't divide into it.
51 is divisible by 3
61 seven does not evenly divide into 61.
71 seven leaves a remainder of 1
81 7 leaves a remainder.
91 Answer
Alex has composed a layout with this Image for a magazine. Which rule of composition has Alex applied?
OA. alignment
OB. golden ratio
OC.unity
OD. contrast
Answer:
B. golden ratio
Explanation:
Golden ratio is a composition has Alex applied.
What is Golden ratio?The Greek letter "phi" is used to represent the golden ratio, a specific number that is roughly 1.618.
It frequently appears in geometry, fine art, architecture, and other fields. Euclid referred to the golden ratio as the extreme and mean ratio, and Luca Pacioli referred to it as the heavenly proportion, among other titles.
Since ancient times, mathematicians have researched the characteristics of the golden ratio. It appears in the building of the dodecahedron and icosahedron as the ratio of a regular pentagon's diagonal to its side.
Therefore, Golden ratio is a composition has Alex applied.
To learn more about Golden ratio, refer to the link:
https://brainly.com/question/29567506
#SPJ2
In the program below, which two variables have the same scope?
def subtract(numA, numb):
return numA - numB
def divide(numC, numD):
return numC/ numD
answer = divide(24,6)
print (answer)
numD and
num
numA
numB
Yeah
Answer:
Numc
Explanation:
Just did the quiz :]
Which of the following is not a benefit of shaping data with the Power Query Editor?
A.)Data can be merged from multiple sources.
B.)Shaped data can be added to a data model.
C.)Shaped data does not retain links to external file sources.
Answer:
A
Explanation:
I am not 100% sure but without the shaping data, data can still be merged from multiple sources.
The one that is not a benefit of shaping data with the Power Query Editor is that Shaped data does not retain links to external file sources.
Shaping data refers to transforming the data through the act of renaming columns or tables, changing text to numbers, removing rows etc.Shape data often connect to different data sources and then combine those data sources in creating a data model to use in reports.Conclusively, Data shaping focuses on building hierarchical relationships between two or more logical building blocks in a query.
Learn more from
https://brainly.com/question/19509866
What missing function will return the index of 7 in the list?
Answer:
The answer is: index function and it will be used in the following manner:
>>> myList.index(7)
Explanation:
List is one of the 4 built-in data types that are present in Python language. Lists are used to store same type of values. Indexes are used to access elements of lists in Python.
Various operations can be performed on the lists.
In the given question, we have to write the function that can be used to find the index of an element in the list.
Index function is sued for this purpose.
The syntax for index function is:
list_name.index(element)
So for the given list, to find the index of 7, the function will be written as:
>>> myList.index(7)
Hence,
The answer is: index function and it will be used in the following manner:
>>> myList.index(7)
Answer:
Index
Explanation:
Edge 2020
List 4 criteria of power your house with wind
List 3 contraints( limitations) of power your house with wind
Please help me
Answer:
1st Is that you don't need to pay for electricity.
2nd It's that yo don't poluate the nature.
3rd It depends of the country, in some of them you can get some support for this from the state , I mean you can get lower prices for water and staff like that.
Hope I helped you , have a nice da
Input a number and find the square root only if the number entered is greater than or equal to zero.
number = float(input("Enter a number: "))
if number >= 0:
print(number**0.5)
I hope this helps!
In cell D15, enter a formula using a counting function to count the number of cells in the Billable? column
The formula that could be entered as a counting function to count the number of cells would be COUNTA.
What formula can be used in cell D15?If you want to count the number of cells that are not empty in the Billable column, you can go to cell D15 and type in =COUNTA(.
After that, you highlight the entire Billable column from D2 to D14 and then close the formula and press enter. It will return the number of cells that are not empty.
Find out more on the spreadsheet functions at https://brainly.com/question/1395170.
How are computers connected to one another?
through networks
through printers
through laptops
Answer:
They are connected through networks
Explanation:
N/A
Answer:
the other guy is correct
Explanation:
Write a SELECT statement that returns four columns: VendorName, InvoiceNumber, InvoiceDate, and InvoiceTotal. Return one row per invoice that shows the vendor and invoice results that have an invoice date that is the same as any of the United Parcel Service invoices. Organize the results by invoice date from earliest to latest invoice.
Answer:
SELECT VendorName, InvoiceNumber, InvoiceDate, InvoiceTotal
FROM Vendor JOIN Invoice ON Vendors.VendorID = Invoices.VendorID
WHERE InvoiceDate = United_parcel_service
ORDER BY InvoiceDate DESC
Explanation:
A database is a storage unit where data is stored for future reference. SQL or structure query language is a programming language used to query databases for specific information.
The SELECT clause is used to read data from the database table. The JOIN and ON clauses are used to query multiple tables and databases. The WHERE clause is used to select and return rows based on a given condition, where the ORDER BY clause is used to sort and organize the returned result.
Write a function that returns a pointer to the maximum value of an array of float ingpoint data: double* maximum(double* a, int size) If size is 0, return NULL.
Answer:
double * maximum( double arr[], int size){
int max = 0;
if ( size == 0){
return 0;
} else {
for (int i = 1; i < size; i++){
if (arr[i] > arr[0]){
max = arr[i];
} else {
max = arr[0];
}
}
return max;
}
}
Explanation:
The C++ source code above returns the maximum value of an array as a pointer. The function accepts two parameters, the array in question and the size of the array. The for loop iterates over the items in the array and checks for the largest, which is returned as a pointer since the function "maximum" is defined as a pointer to the floating-point number memory location.
JAVA Write code which prints every number from 1 to 20 a number of times equal to the number itself (e.g. one 1, two 2's...). Every individual number printed should be separated by a space, and there should be a new line each time the number changes. You should use nested loops to produce your output (it will result in far less code).
Partial sample run:
1
2 2
3 3 3
........
I've included my code in the picture below. Best of luck.
The photo shows a group of girls reacting to comments they have read about a classmate on a social media site.
One girl stands by herself, looking sad. Four girls stand apart from her, looking at her and pointing. Two girls cover their mouths to hide a laugh. How might the girls react differently to best prevent cyberbullying?
Answer:
no
Explanation:
beacuse
A motor is controlled by a logic circuit. The circuit has inputs (0 or 1) from three sensors
R, T and W. The motor is switched off when the output from the logic circuit is 1.
Answer:
motor is controlled by a logic circuit. The circuit has inputs (0 or 1) from three sensors
R, T and W. The motor is switched off when the output from the logic circuit is 1. wym
Checkpoint 10.43 Write an interface named Nameable that specifies the following methods: _______{ public void setName(String n) public String getName()} Fill in the blank.
Answer:
Fill the blank with
public interface Nameable {
Explanation:
Required
Complete code segment with the interface definition
The given code segment is divided into three parts
1. The interface
2. The method that returns nothing
3. The method that returns string
The blank will be filled with the definition of the interface.
The definition is as follows:
public interface Nameable {
Analyzing the above definition
public -----> This represents the modifier
interface ------> This represents that the definition is an interface
Nameable ------> This represents the name of the interface
How did the use of ARPANET change computing?
Scientists were able to communicate over large distances.
Scientists could use computers that had different operating systems.
Computers no longer had to be wired to a main computer to communicate.
Scientists were able to connect to the World Wide Web through ARPANET.
The use of ARPANET changed computing because:
Scientists were able to communicate over large distances.Scientists could use computers that had different operating systems.Computers no longer had to be wired to the main computer to communicate.ARPANET was developed by the United States Advanced Research Projects Agency. The main reason for the creation of ARPANET was to make it easier for people to be able to access computers. Also, it was vital as it helped improve computer equipment and was a vital method for communication in the military.Furthermore, it helped in communicating over large distances and ensured that scientists could use computers that had different operating systems.In conclusion, it was also vital as computers no longer had to be wired before they can communicate.
Read related link on:
https://brainly.com/question/15980664
Answer:
A B and C
Explanation:
Scientists were able to communicate over large distances.
Scientists could use computers that had different operating systems.
Computers no longer had to be wired to a main computer to communicate.
help help help help
Answer:
D i think............
Write a statement that calls the recursive function BackwardsAlphabet() with parameter startingLetter.
Answer:
Explanation:
The code can be computed as follows:
#include <stdio.h>
void BackwardsAlphabet(char currLetter){
if (currLetter == 'a') {
printf("%c\n", currLetter);
}
else{
printf("%c ", currLetter);
BackwardsAlphabet(currLetter - 1);
}
return;
}
int main(void) {
char startingLetter = '-';
startingLetter = 'z';
BackwardsAlphabet(startingLetter);
return 0;
}
Recursions are simply functions that calls and executes itself.
The statement that calls the recursive function is: BackwardsAlphabet(startingLetter);
From the question, we have the following parameters
Function name: BackwardsAlphabetFunction parameter: startingLetterThe syntax of calling a function is:
function_name(function_parameter);
So, the statement that calls the function is:
BackwardsAlphabet(startingLetter);
The above statement is true for several programming languages such as C, C#, C++, Java, Python, etc.
Read more about recursive functions at:
https://brainly.com/question/13657607
Malware is any malicious software installed on a computer or network without the owner’s knowledge.
Question 4 options:
True
False
Answer: True
Explanation: Malware is literally short for malicious software. The name that is given to any type of software that could harm a computer system or collect a user's data.
Hope it helped please mark as brainliest!