a. All methods in an interface must be _________________ _________________________.
b. All variables in an interface must be __________________ ____________________ _______________.
c. Interfaces cannot be _______________________________________ .
d. Interfaces cannot contain _________________________________ methods.
e. Interfaces are considered to be ___________________ _______________________ classes.
Answer:
Explanation:
a. All methods in an interface must be abstract methods.
b. All variables in an interface must be public, static, and final.
c. Interfaces cannot be instantiated. (meaning that they do not have a constructor and cannot be created as a regular object.)
d. Interfaces cannot contain fields, properties, or defined methods. (Everything needs to be abstract)
e. Interfaces are considered to be reference implementation classes
Since no answer options were provided, these keywords all fit the into the sentence and make the sentence true.
Python’s pow function returns the result of raising a number to a given power. Define a function expo that performs this task, and state its computational complexity using big-O notation. The first argument of this function is the number, and the second argument is the exponent (nonnegative numbers only). You may use either a loop or a recursive function in your implementation.
Answer:
The function is as follows:
def expo(num,n):
prod= 1
for i in range(n):
prod*=num
return prod
The big-O notation is: O(n)
Explanation:
This defines the function
def expo(num,n):
This initialzes the product to 1
prod= 1
This iteration is perfomed n times
for i in range(n):
The number is multiplied by itself n times
prod*=num
This returns the calculated power
return prod
To calculate the complexity.
The loop is repeated n times.
Each operation has a complexity O(1).
So, in for n number of operations; the complexity is: O(n * 1)
This gives: O(n)
Match the different aspects of digital media with the basic job(s) it addresses.
1.
costs associated with running an operation
business
2. managers, technical experts, facilities
software
3. research, cultural knowledge, ability to forecast trends
financial
4. designers, web developers, graphic artists
creative
5.
technical expertise, manufacturing, research and
development
hardware
Answer:
The different aspects of digital media with the basic job(s) it addresses include:
1.
costs associated with running an operation
business
2. managers, technical experts, facilities
financial
3. research, cultural knowledge, ability to forecast trends
software
4. designers, web developers, graphic artists
creative
5.
technical expertise, manufacturing, research and
development
hardware
Explanation:
put true or false the java script statement sho8be finished with (;).( )
Answer:
True
Explanation:
Javascript statements almost always end with a semicolon (;), (not always the case or required, but is still recommended highly)
how do i get a instant win in 1v1 lol online
Answer:
you can practice a lot all the day to become a pro, and see videos of how to win ( in the game of the 1v1) and do it and well that
Explanation:
hope it helps
What is office automation?
Sum of Primes JAVA project
read 2 strings from the command line; each string will contain an integer. let's call those integers, num1 and num2. write a loop that goes from num1 and num2 looking for prime numbers. if a number if prime then store it in an array of integers, pass this array to a method that returns the sum of all the numbers in the array; you will also need to tell this method how many numbers are in the array. output only the sum of primes. you may assume a maximum of not more than 1000 numbers in the array.
*CODE*
import java.util.*;
class SumPrimes {
// go thru the array primes which has size elements
// total the integer values in primes
// return this total
// the first argument is the array of prime numbers
// the second argument is the number of primes in this array
public static int sumArray(first argument, second argument) {
}
// this method takes an integer, n, and determines if it is prime
// returns true if it is and false if it isn't
// a number is prime if it is only evenly divisible by 1 and itself
// 1 is NOT considered prime
static boolean isPrime(int n) {
// Corner case
if (n <= 1)
return false;
// Check from 2 to n-1
for (int i = 2; i < n; i++)
if (n % i == 0)
return false;
return true;
}
public static void main(String[] args) {
// define the constant MAX which represents the largest size of the primes array
int num1, num2, numPrime = 0;
// declare an array of the proper data type and size
// convert 1st command line argument from a string to an integer
num1 = Integer.parseInt(args[0]);
// get num2 from the command line
// loop through all integers from num1 to num2
// store those that are prime in the primes array
// keep track of the number of primes - numPrime
// output the sum of all the primes
System.out.println(sumArray(primes, numPrime));
}
}
Answer:
Explanation:
The following code is written in Java and creates the necessary code so that two int inputs are read and looped through all the numbers between them to find all the primes. These primes are counted and summed. Finally, printing out the sum and the number of primes found to the console.
import java.util.ArrayList;
import java.util.Scanner;
class SumPrimes{
public static void main(final String[] args) {
Scanner in = new Scanner(System.in);
ArrayList<Integer> primes = new ArrayList<>();
int num1, num2, numPrime = 0;
System.out.println("Enter number 1:");
num1 = in.nextInt();
System.out.println("Enter number 2:");
num2 = in.nextInt();
for (int x = num1; x <= num2; x++) {
if (isPrime(x) == true) {
primes.add(x);
numPrime += 1;
}
}
System.out.println("There are " + numPrime + " primes in the array.");
System.out.println("Their sum is " + sumArray(primes));
}
public static int sumArray(ArrayList<Integer> arr) {
int sum = 0;
for (int x: arr) {
sum += x;
}
return sum;
}
static boolean isPrime(int n) {
if (n <= 1)
return false;
for (int i = 2; i < n; i++)
if (n % i == 0)
return false;
return true;
}
}
what is this car first to awnser is the brianliest
Answer: Lamborghini
Explanation: Is it yours
Some scientists say that robots my become self - aware in the near future Do you think this is possible?
Answer:
i believe that robots could become self aware because its called artificial intelligence, and that means that they can pretty much think for themselves
Explanation:
its just my opinion but i hope i helped!
Quick!! Im taking a timed test so pls hurry!! Ill even mark as brainliets!!
A company has two finalists in mind to run its computer network: Bill, a college graduate in computer science with little experience, and Sam, a computer science student with a decade of on-the-job training. Why might the company hire Sam? He has a positive attitude. He has a lot of experience. He is willing to be trained. He might work for less money.
-He has a positive attitude.
-He has a lot of experience.
-He is willing to be trained.
-He might work for less money.
Answer:
-He has a lot of experience.
Explanation:
Bill has little experience and Sam has a decade of on the job training. Therefore Sam is more experienced
Answer:
b
Explanation:
Which of these is not a valid form
layout in Microsoft Access?
how do i print the simbol " | " in python
Answer:
print(" | ")
Explanation:
Make sure to include your quotes and brackets.
Other than that, you have to make sure that you are using the word print.
A disciplined, creative, and effective approach to problem solving is needed for project success. The nine-step approach to problem solving begins with develop a problem statement and the ninth step is determine if the problem has been solved. Which of the steps listed in not a step on the nine-step approach?
A. Gather data and verify the most likely causes.
B. Determine the most popular solution.
C. Revise the project plan.
D. Evaluate the alternative solutions.
Answer: Determine the most popular solution.
Explanation:
Some of the approaches to problem solving that are listed here include:
• Gather data and verify the most likely causes.
• Revise the project plan.
• Evaluate the alternative solutions
To solve a problem, one needs to gather the data and verify the likely causes of the problem. This can be done by asking questions, running test, interviewing people, running tests, reading reports, or analyzing data.
The project plan can also be revised. Likewise, when one comes with different solutions, one should weigh the cost and benefits of each in order to choose the best solution.
Determine the most popular solution isn't a correct option.
How has the history of computers had an impact on the technology we use daily?
In your own words please:)
Answer:
In hospitals, most of the equipments use or are run by computers. Look at space exploration; it was all made possible with the advent of computer technology. In the job sector, many of the jobs require knowledge in computers because they mostly involve the use of computers.
The early computers were not that small as those used today and they were commonly used to help in working out complex calculations in mathematics that proved tedious to be done manually. This is why the first machine was called by some as a calculator and others as a computer because it was used for making calculations.
Hope it helps
Define- Emerging technology
Answer: Emerging technologies are technologies whose development, practical applications, or both are still largely unrealized, such that they are figuratively emerging into prominence from a background of nonexistence or obscurity.
Explanation: brainliest?
match the parts of a project plan listed in Column A to the specific examples given in Column B.Write the letter of your answer to the space provided before each number
Answer:
The name of the project is C: Reversible Playmat The objectives are given in B The Sketch is given as D The Materials needed is listed in A The procedure is FEvaluation is E
Explanation:
You would find that the other matches are relatively easy save for B and F. The difference between the procedure is that the procedure is more detailed about what needs to be done.
Notice that F states exactly, the dimensions that need to be cut while B albeit wordier, gives a description of the end result only.
Cheers.
Finding values in an array
Assign numMatches with the number of elements in userValues that equal matchValue. userValues has NUM_VALS elements. Ex: If userValues is {2, 1, 2, 2} and matchValue is 2 , then numMatches should be 3.
Your code will be tested with the following values:
matchValue: 2, userValues: {2, 1, 2, 2} (as in the example program above)
matchValue: 0, userValues: {0, 0, 0, 0}
matchValue: 10, userValues: {20, 50, 70, 100}
1 import java.util.Scanner:
2
3 public class FindMatchValue {
4 public static void main(String args) {
5 Scanner ser-new Scanner(System.in); lioli
6
7 final int NUM_VALS = 4
8 into userValues - new int [NUM VALS);
9 int i;
10 int matchWalue;
11 int nurMatches - -99; // Assign nurlatches with before your for loop
12
13 matchValue - scnr.nextInt():
14 for (i = 0; i < uservalues.length; ++) {
15 userValues() - senr .nextInt();
16 }
Answer:
The following code completes the program
for (i = 0; i < userValues.length; i++) {
if(userValues[i] == matchValue){
nuMatches++;
} }
System.out.println(nuMatches);
Explanation:
The question is poorly formatted. So, I correct the poorly formatted program segment and I complete the missing part of the program.
See attachment for complete program.
The explanation is as follows:
This iterates through the array
for (i = 0; i < u s e r V a l u e s. length; i++) {
This checks if the current array element is the same as the match value
if(userValues[i] == matchValue){
If yes, the number of matches is increased by 1
nuMatches++;
} }
This prints the number of matches
System.out.println(nuMatches);
What does the following Boolean operators do?
AND function
OR function
NOT function
Create a Card class that represents a playing card. It should have an int instance variable named rank and a char variable named suit. Give it a constructor with two parameters for initializing the two instance variables and give it a getSuit() method and a getRank() method that return the values of the two instance variables. Then create a CardTester class with a main method that creates five Cards that make up a full house (that is, three of the cards have the same rank and the other two cards have the same rank) and prints out the ranks and suits of the five Cards using the getSuit() and getRank) methods
Answer:
Explanation:
The following code is written in Java. It creates the Card class and then uses it to create a full house and print out the rank and suit of every card in that hand.
class Card {
int rank;
char suit;
public Card(int rank, char suit) {
this.rank = rank;
this.suit = suit;
}
public int getRank() {
return rank;
}
public char getSuit() {
return suit;
}
}
class CardTester {
public static void main(String[] args) {
Card card1 = new Card(3, '♥');
Card card2 = new Card(3, '♠');
Card card3 = new Card(3, '♦');
Card card4 = new Card(2, '♦');
Card card5 = new Card(2, '♣');
System.out.println("Card 1: " + card1.getRank() + " of " + card1.getSuit());
System.out.println("Card 2: " + card2.getRank() + " of " + card2.getSuit());
System.out.println("Card 3: " + card3.getRank() + " of " + card3.getSuit());
System.out.println("Card 4: " + card4.getRank() + " of " + card4.getSuit());
System.out.println("Card 5: " + card5.getRank() + " of " + card5.getSuit());
}
}
Using examples, evaluate the open source model of software development. In your discussion highlight some of its advantages and disadvantages. Furthermore, explain some of the alternatives that also exist.
Assume that your organization wants to hire new instructors for your project management course. Develop a list of quality standards that you could use in making this hiring decision. Suppose that some current instructors do not meet these standards. Provide suggestions for how you would handle this situation.
Your paper should be 2-3 pages long
Explanation:
The hiring process of the new instructors includes several quality standards: 1. The qualification: All the persons should have a good academic qualification, certification course related to project management. The list of quality standards used in the selection process of the instructors includes the person's academic qualifications which include the degrees he has been awarded and the major subjects in them and also from which university.
briefly explain intellegence?
Answer:
Intelligence is the ability to think, to learn from experience, to solve problems, and to adapt to new situations. ... Psychologists believe that there is a construct, known as general intelligence , that accounts for the overall differences in intelligence among people.
Answer:
The ability to be knowledgeable and successful in skills as well as school subjects.
Explanation:
What steps can be used to open the Custom AutoFilter dialog box? Select any cell in the data range.
Click the _____ tab.
In the ______ group, click Filter.
Next to a column heading, click the AutoFilter drop-down arrow.
Click ______ and click Custom Filter. The Custom AutoFilter dialog box appears for creating custom filers.
Answer:
Data
Sort and Filter
Text Filters
Explanation:
Proof that this answer is correct in the file attached.
A step which can be used to open the Custom AutoFilter dialog box is to click on the data tab.
What is data?Data simply refers to a representation of factual instructions (information) in a formalized manner, especially as a series of binary digits (bits) that are used on computer systems.
The step which can be used to open the Custom AutoFilter dialog box on Microsoft Excel include the following:
Click on the data tab.In the Sort & Filter group, click Filter.Next to a column heading, click the AutoFilter drop-down arrow.Click Text Filters and click Custom Filter.Then, the Custom AutoFilter dialog box would appear for creating custom filers.Read more on Excel spreadsheets here: https://brainly.com/question/4965119
#SPJ2
A(n) engineer develops Al-based machines and
programs.
a. cognitive
b. virtual
c. intelligence
d. systems
Answer:
Explanation:
Option C is the correct answer
Describe two different examples of potential conflicts, and explain why these conflicts can have a negative impact on
the project If they are not resolved.
Answer:
A conflict is a situation in which two or more parties with opposing interests collide in their positions when trying to obtain a benefit or satisfy their needs. Thus, for example, if two people want to obtain the same thing, there will be a conflict of interest between those people, since only one of them will be able to satisfy their need.
Thus, two examples of conflict are, on the one hand, the clash of interests over a particular thing (two people want the same thing or position); and on the other, the conflict between two people with different and antagonistic personalities (an extroverted and noisy person against another introverted and reserved).
In all cases, a conflict between two people who are working on the same project could lead to a series of negativities that could affect its outcome.
The different between Del key and BKSE key
Answer and Explanation:
I believe you are referring to Backspace and Del keys, which are the keys of a computer keyboard. In this case, the difference between them is quite simple and easy to understand. These two keys are used to delete characters, however, the Backspace key is capable of deleting characters that are to the left of the cursor (the dash that appears blinking when you are typing). Del Key, in turn, is able to delete the characters to the right of the cursor.
Use the drop-down menus to describe how to create a form with the Form button. 1. In the pane, select the table from which to create the form. 2. Click the tab. 3. In the group, click Form. 4. Microsoft Access will then create a form using .
Answer:
1. navigation 2.create 3.forms 4.all the columns in the table
Explanation:
1. In the pane, select the table from which to create the form - navigation 2.Click the tab -create
3.In the group, click Form - forms
4.Microsoft Access will then create a form using - all the columns in the table.
What is Form button?It defines as a button for submitting the form data to a form-handler. input data.
Thus, the drop down menus are selected s to describe how to create a form with the Form button.
Learn more about Form button.
https://brainly.com/question/14630092
#SPJ2
What year did the first hovercraft sail on water
Suppose you have a class called Child with an instance data value called weight and height. Then it has a method called doubleWeight that stores a local double variable called superWeight that multiplies the two instance variables and stores the value in superWeight, and this method returns a double value. Write a getter method and a setter method for weight, and then make them for height.
Answer:
Explanation:
The following code is written in Java. I recreated the entire Child class as described with the instance variables and the doubleWeight method. Then created the getter and setter methods for both the weight and height variables.
class Child {
double weight, height;
public double doubleWeight() {
double superWeight = weight * height;
return superWeight;
}
public double getWeight() {
return weight;
}
public void setWeight(double weight) {
this.weight = weight;
}
public double getHeight() {
return height;
}
public void setHeight(double height) {
this.height = height;
}
}
Which of the following statements is NOT
true with respect to algorithms and
computer programming?
A. Algorithms speed up the programming process
B. Algorithms can help us to accomplish meaningful tasks
C. Algorithms are an unnecessary burden in programming
Answer:
C
Explanation:
Algorithms are very useful and necessary.
The statement that is not true with respect to algorithms and computer programming is algorithms are an unnecessary burden in programming. The correct option is c.
What is computer programming?The process of developing the separate parts of software necessary for the system to operate as a whole is known as systems programming. Operating systems (OS), firmware, and development environments are only a few of the many layers that are involved in systems programming.
Modern computers, or those with a single process structure and instructions for how to carry out a function on the computer and maintain track of the processed data in computation, employ stored program computers.
Therefore, the correct option is c. algorithms are an unnecessary burden in programming.
To learn more about computer programming, refer to the below link:
https://brainly.com/question/3397678
#SPJ2