Answer:
Answered below
Explanation:
//Program is written using Java programming language.
Class Person {
private string firstName;
private string lastName;
void set firstName(string a){
firstName = a;
}
string getFirstName(){
return firstName;
}
void setLastname( string b){
lastName = b;
}
string getLastName( ){
return lastName;
}
void displayDetails( ) {
System.out.print(firstName);
System.out.print (lastName);
}
}
//Test program
Class Main{
public static void main(String args [] ){
Person person = new Person( )
person.setFirstName("Karen")
System.out.print(person.getFirstName)
person.displayDetails()
}
}
Write a list comprehension statement to generate a list of all pairs of odd posi
Answer:
Print([(a,b) for a in range(10) for b in range(10) if (a < b and a%2 == 1 and b%2 == 1)])
Explanation:
Here, we declared a range of value for a and b using a for loop and the range function. The values are the first 10 numeric digits. The we used the if statement to establish our constraints;
In other to ensure that ;
Lower digit is written first ; (a < b) ;
Only odd numbers are considered,
a%2 == 1 ; b%2 == 1 (remainder when a and b are divided by 2 is 1.
Both a and b are declared as a tuple in other to obtain a pair of odd values.
Which are the steps in the process of creating a database
Answer:
Determine the purpose of your database. ...
Find and organize the information required. ...
Divide the information into tables. ...
Turn information items into columns. ...
Specify primary keys. ...
Set up the table relationships. ...
Refine your design. ...
Apply the normalization rules.
Answer:
identifying fieldnames in tables
defining data types for field names
Explanation:
sorry I'm late. future Plato users this is for you
Karin realized that a song takes up a lot more space on her computer than the lyrics of the song typed out in ms word document . Why does this happen
. Else-if is good selection statement that help us to solve problems in C++,mostly times same problem of same nature can also be solved via switch statement. Which one you prefer to use and why?
Answer:
Else-If statements
Explanation:
Personally, I prefer using Else-If statements for conditional statements since you can start with and If statement and add to it if necessary. Aside from this, Else-If statements also allow you to add more than one condition to be met by using tags such as and or and not. Switch statements are better in scenarios where you have a set of possible inputs or results and need a specific event to happen for each input/result, but this is not as common of a scenario so Else-If is usually my go-to conditional statement.
How many total beats are these tied notes worth, assuming a quarter note equals 1 beat?
A. One
B. Five
C. Three
Answer:
one i think
Explanation:
what type of device is a projector ?
a. input
b. memory
c. output
d. storage
Answer:
output
Explanation:
if I'm wrong sorryyy
Answer:
Output
Explanation:
:D
Test if a password entered is correct. The secret phrase is Ada Lovelace.
Sample Run 1
Enter the Password: Ada Lovelace
Sample Output 1
Correct!
Sample Run 2
Enter the Password: Blaise Pascal
Sample Output 2
Not Correct
for Python
password = "Ada Lovelace"
if input("Enter the Password: ") == password:
print("Correct!")
else:
print("Not Correct")
I wrote my code in python 3.8. I hope this helps.
Brian has created the following selection sort class in Java. In which line is the index of the smallest value returned? In which line is the input array given as an argument?
public class SelectionSort{
private static int positionMin (int] vals, int startPosition) {
int minPosition startPosition;
for (int i startPosition; i
if (vals[i] vals[min Position]) {
minPosition = i;
return min
Position; private static void swap(int] vals, int firstPosition, int secondPosition) {
int temp; temp vals[firstPosition];
vals[firstPosition] vals[second Position];
vals[secondPosition] temp return public static void selSort(int| vals) {
int minPos for (int startPos 0; startPos< vals.length; startPos++){
minPos positionMin(vals,startPos); swap(vals,startPos, min Pos) ;
for (int i 0; i< vals.length; i++) { if(i
}else Jelse { System.out.println(vals[i]); } }; }
return; } }
Answer:
Explanation:
Since there are no line numbers in this question I will start counting from public class SelectionSort{ as line 1 and so on, as well as provide the code on that line.
The index of the smallest value is returned on line 8 where it says return min which shouldn't have any spaces and should be return minPosition;
The input array is given as an argument at the beginning of the function on line 2 where it says private static int positionMin (int] vals, int startPosition) {, as the variable vals.
This input array is also used as an argument on line 10 where it says Position; private static void swap(int] vals, int firstPosition, int secondPosition) and line 15 where it says vals[secondPosition] temp return public static void selSort(int| vals) {
How many minutes are there from 8:00 am to 1:00 pm?
Answer:300 minutes
Explanation:
from 8 to 1 is 5 hours so you do 5*60= 300
True or false: In relational databases, each individual space within a row or column contains exactly one value.
Answer:
True.
Explanation:
A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.
A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.
In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores. This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.
Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.
A relational database can be defined as a type of database that is structured in a manner that there exists a relationship between its elements.
Hence, in relational databases, each individual space within a row or column contains exactly one value.
A counter is ?
A. used only outside of the loop
B. none of the above
C. a variable used in a loop to count the number of times an action is performed
D. A person with a pen and paper
we need to send 254 kbps over a noiseless channel with a bandwidth of 15 khz. how many signal levels do we need
Answer:
The level of the signal is 353.85
Explanation:
Data rate determines the speed of the data transmission.
The data rate depends on the following factors
The available bandwidthnumbers of signal levelsthe quality of the channel ( Means the level of noise )The data is transmitted either from a noiseless channel or a noisy channel.
The given quality of the channel in the question is noiseless.
Use the following formula to calculate the signal levels
Bit rate = 2 x bandwidth x [tex]Log_{2}[/tex] ( signal level )
where
Transmitted Data = 254 kbps = 254,000 bps
Bandwidth = 15 khz = 15,000 hz
Placing values in the formula
254,000 = 2 x 15,000 x [tex]Log_{2}[/tex] ( L )
254,000 = 30,000 x [tex]Log_{2}[/tex] ( L )
254,000 / 30,000 = [tex]Log_{2}[/tex] ( L )
8.467 = [tex]Log_{2}[/tex] ( L )
L = [tex]2^{8.467}[/tex]
L = 353.85 levels
discuss how sentiment analysis works using big data?
sentiment analysis is the process of using text analytics to mine various of data for opinions. often sentiment analysis is done on the data that is collected from the internet & from various social media platforms.
java Elements in a range Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Assume that the list will always contain fewer than 20 integers. That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers from the list that are within that range (inclusive of the bounds). For coding simplicity, follow each output integer by a comma, even the last one. The output ends with a newline. Ex: If the input is: 5 25 51 0 200 33 0 50 then the output is: 25,0,33, (the bounds are 0-50, so 51 and 200 are out of range and thus not output). To achieve the above, first read the list of integers into an array.
Answer:
The program in Java is:
import java.util.Scanner;
public class MyClass {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int n;
n = input.nextInt();
int [] mylist = new int[n+1];
mylist[0] = n;
System.out.print("List elements: ");
for(int i = 1;i<n+1;i++){
mylist[i] = input.nextInt();
}
int min,max;
System.out.print("Min & Max: ");
min = input.nextInt();
max = input.nextInt();
for(int i=1; i < mylist.length; i++){
if(mylist[i]>=min && mylist[i]<=max){
System.out.print(mylist[i]+" ");
}
}
}
}
Explanation:
This line declares length of list
int n;
This line gets length of list
n = input.nextInt();
This line declares the list/array
int [] mylist = new int[n+1];
This line initializes the element at index 0 to the length of the list
mylist[0] = n;
This prompts user for elements of the list/array
System.out.print("List elements: ");
The following iteration gets list elements
for(int i = 1;i<n+1;i++){
mylist[i] = input.nextInt();
}
This declares the lower and upper bound (min, max)
int min,max;
This line prompts user for elements of the list/array
System.out.print("Min & Max: ");
This next two lines get the bound of the list/array
min = input.nextInt();
max = input.nextInt();
The following iteration prints the elements in the range
for(int i=1; i < mylist.length; i++){
if(mylist[i]>=min && mylist[i]<=max){
System.out.print(mylist[i]+" ");
}
}
which of the following is not a type of operating system software?
a) windows b) linux
c)Macintosh d) Communications and organization
Answer:
the answer is communication abd organization
The option that is not a type of operating system software is called; D: Communications and organization
What are the types of Computer operating system?An operating system is defined as a type of software that manages the hardware and software of a computer as well as provision of common services.
The most popular Operating Systems for computers are Windows, Linux, Macintosh. Whereas, the popular types of operating systems for phones are iOS, Android, and Windows.
Read more about Computer Operating System at; https://brainly.com/question/1763761
#SPJ9
Question 57 Which type of application attack would include User denies performing an operation, attacker exploits an application without trace, and attacker covers her tracks
Answer:
Auditing and logging
Explanation:
Auditing and logging is a form of application threats and attacks that an application security is susceptible to. It involves a user denies performing an operation; attacker exploits an application without trace, and at the same time attacker covers his or her tracks.
To prevent this, an Auditing and logging countermeasure should be put in place of application security to guide against such aforelisted threats and attacks before its actual occurrence.
Therefore, in this case, the correct answer is "Auditing and logging."
Choose the type of collection created with each assignment statement
____ collection A = {5:2}
Options: tuple, dictionary, list
____ collection B = (5,2)
Options: tuple, dictionary, list
____ collection C = [5,2]
Options: tuple, dictionary, list
Answer:
dictionary
tuple
list
Explanation:
what security issues could result if a computer virus or malware modifies your host file in order to map a hostname to another IP address
Answer:
Man-in-the-middle attack
Explanation:
In this type of attack, the hacker uses the virus or malware to get and change his IP address and hostname to match the address and hostname of the target host computer. The allows the hacker to gain access to information sent to the target IP address first.
The programming interface for a legacy motor controller accepts commands as binary strings of variable lengths.
a. True
b. False
Answer:
The answer is "Option a"
Explanation:
The given question is incomplete, that's why its correct solution can be defined as follows:
The above-given question is the part of the Binary Autocomplete, in which this Autocomplete function would be a full word or sentence after just a few other letters were entered into the system. It approach improves text taking appropriate on smartphone devices of particular because every letter should not be written in such a single phrase.
She can't part.....her jewels.
Answer:
She can't part with her jewels.
Explanation:
:))))
Which 2 problems does the Pay down credit card workflow solve for clients? (Select all that apply) It helps clients stay on top of making payments on time It ensures that payments to credit card accounts are categorized correctly It provides a lower rate than most credit cards to qualified small businesses It uses language that non-accountants can understand
Answer:
B. It ensures that payments to credit card accounts are categorized correctly
D. It uses language that non-accountants can understand
Explanation:
Pay down credit card workflow is a new feature that makes entering records in QuickBooks easier for users. The two prime benefits of this workflow are;
1. It ensures that payments to credit card accounts are well categorized well. Without this feature, users most times find it difficult to enter records correctly or they tend to duplicate entries. This new feature obtains vital information that helps the software to correctly credit the accounts.
2. It uses language that non-accountants can understand. This simplifies the process and makes it easier for the user to enter the right data that would help the software to correctly credit the accounts.
According to the video, what are some concerns of Webmasters? Check all that apply.
how fast the website can be accessed
how many writers provide content for a website
how to create images for a website
the number of similar websites that exist
the time it takes for elements on a website to download
website security and privacy
Answer:
A.how fast the website can be accessed
E.the time it takes for elements on a website to download
F.website security and privacy
Explanation:
Answer:
1,5,6
Explanation:
hope this helps gg
Which of the following statements is true when it comes to developing a web presence for a business?
Explanation:
Customers can learn about a business by downloading a mobile app, but they can’t place an order using an app
Building a new website requires a large budget
Write a function called is_even that takes one parameter and returns a boolean value. It should return True if the argument is even; it should return False otherwise.
The is_even function should not print anything out or return a number. It should only take in a number and return a boolean.
Note: Be sure to include comments for all functions that you use or create.
For example, if you made a call like
is_even_number = is_even(4)
is_even_number should have the value True.
Once you’ve written this function, write a program that asks the user for integers and prints whether the number they entered is even or odd using your is_even function. You should let the user keep entering numbers until they enter the SENTINEL value.
Here is a sample run of the program:
Enter a number: 5
Odd
Enter a number 42
Even
Enter a number: -6
Even
Enter a number: 0
Done!
(CODEHS, PYTHON)
def is_even_number(n):
return True if n % 2 == 0 else False
while True:
number = int(input("Enter a number: "))
if number == 0:
break
else:
if is_even_number(number):
print("Even")
else:
print("Odd")
I wrote my code in python 3.8. I hope this helps.
NEED HELP WILL MARK BRAINLIEST AND 25 POINTS FOR ANSWER Which statement best describes a characteristic of a relational database?
It contains tables that are completely independent of one another.
It contains tables with fields that are associated with one another.
It is a feature that is primarily used to navigate databases.
It is a feature that is primarily used to add queries to tables.
The relational database has the characteristic feature of the adjoining of data with one another.
What is a relational database?The relational database is given as the interconnection of the data with the digital database management system.
The relational database is given with the characteristics of the adjoining of data tables and fields associated with one another. Thus, option B is correct.
Learn more about relational database, here:
https://brainly.com/question/13262352
#SPJ2
The motherboard
allows the different parts of a computer to communicate
helps to keep things cool inside the tower
is the memory of the computer
is where the computer is plugged into an outlet in the wall
Answer:
a:(allows the different parts of a computer to communicate)
Explanation:
The motherboard is the main command center for the whole pc which recieves your inputs and responds by sending outputs...
The _____ Tag surrounds all content that will be visible on your web page for all to users to see on that website.
Answer:
The body tag
Explanation:
HTML has several tags; however, the tag that handles the description in the question is the body tag.
It starts with the opening tag <body> and ends with closing tag </body>
i.e.
<body>
[Website content goes in here]
</body>
Any text, image, object etc. placed within this tag will be displayed in the website
Fix the infinite loop so that it counts from 3 down to 1.public class Loop1{public static void main(String[] args){int x = 3;while (x > 0){System.out.println(x);}}}
Answer:
Include x-- right after the print statement
Explanation:
Given:
The above lines of code
Required
Edit to countdown from 3 to 1
The above code (as it is) prints 3 in infinite times. To make it countdown to 1, we simply include a decrement operation.
Initially, the value of x is 3: int x = 3;
And the condition is that the loop is to be repeated as long as x > 0
All we need to do is to include x-- right after the print statement.
This operation will reduce the value of x on every iteration as long as the condition is true.
Hence, the complete code is:
public class Loop1{
public static void main(String[] args){
int x = 3;
while (x > 0){
System.out.println(x);
x--;
}}}
a term to describe article that can be displayed in their entirety as opposed to abstract and reference only?
Answer:
would it be term and tequnique?
Explanation:
oooooooo
Identify and give the application of the following operators.
(a) / (b) //
Answer:
This answer depends on what language you're using, but in most languages, "//" is used to precede a one-line remark. "/" is used to divide a number by the other. For example:
// this is a remark
var foo = x / y;
There are exceptions to both, although the / is almost universally used for division. One exception would be assembly of course, I don't know if there are any higher level languages that don't use the slash.