Answer:
import java.util.Scanner;
public class num1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
//Prompt for the person's age
System.out.println("What is your age");
int age = in.nextInt();
//Prompt for the person's years of citizenship
System.out.println("What is your years of citizenship");
int yearsCitizenship = in.nextInt();
if(age >= 30 && yearsCitizenship >= 9){
System.out.println("You are Eligible to be a US senator");
}
if(age >= 25 && yearsCitizenship >= 7){
System.out.println("You are Eligible to be a US representative");
}
}
}
Explanation:
Using Java Programming language
The scanner class is used to receive and store the persons age and year of citizenship
The first if statement is used to test if the age >= 30 and citizenship>=9 If this is true, it prints out You are Eligible to be a US senator. You are Eligible to be a US representative. Note that if the second condition is true, then the first is also true because to be eligible for senatorial also means you also meet the requirments for representative position
Answer:
age = int(input("Your age: "))
citizen = int(input("Years of being a US citizen: "))
if age >= 30 && citizen >= 9:
print("You are eligible to US representative and a US senator")
elif age >= 25 && citizen >= 7:
print("You are eligible to be a US representative")
else:
print("You are not eligible to be a US representative or US senator")
Explanation:
Ask the user for its age, and years of citizenship
Check the both inputs:
If age is greater than or equal to 30 and citizen is greater than or equal to 9, it means the person is eligible for US representative and a US senator
If age is greater than or equal to 25 and citizen is greater than or equal to 7, it means the person is eligible for US representative
In any other case, the person is not eligible
Careers on the largest declining industries list will see an increase in the number of employees in their workforce.
True
False
The answer is False.
The word "declining" means going down. So, in this case, the employees would go down or leave.
Answer:
False
Explanation:
Your team has already created a WBS for the ABC product launch project. You are kicking off phase 2 of this project, which is the product development phase. Which of the following is an example of what might appear in the second level of your project’s WBS?
A. ABC product launch project.
B. Work package.
C. Project phases.
D. Activities.
Answer:
C. Project phases.
Explanation:
Work Breakdown Structure (WBS) in project management is the laser-focused breakdown of a project into smaller components in order to make the project successful.
Project phases is an example of what might appear in the second level of your project’s Work Breakdown Structure (WBS).
Kevin gets a call from a user who is trying to install a new piece of software. The user doesn’t have administrative rights, so she's unable to install the software. What tool can Kevin use to install the software for the user without giving the user the local administrator password?
Answer:
use Remote Desktop
Explanation:
You have recently been called to troubleshoot network connectivity problems at a user's workstation. You have found that the network cable runs across high-traffic areas on the floor, causing the cables to wear through and break. You have replaces the cable with a plenum rated, shielded, twisted pair cable. You would like to minimize the problem and prevent it from happening again. What should you do?
Answer:
The answer is "Pass the cable into the ceiling instead of over the floor".
Explanation:
Network access explains the complex process of link different parts of the network with each other, e.g. while using switches, routers, and access points, and whether, that system works.
To replace the cable with a pair cable graded in plenum, covered, twisted. We use the cable to pass through the ceiling rather than through the concrete, eliminating the issue and stopping it from occurring again.An interface on a Windows network print client that works with a local software application, such as Microsoft Word, and a local printer driver to format a file to be sent to a local printer or a network print server.
Answer:
it is bidirectional printing
Explanation:
Answer:
Server Printer because it is installed on the network and at same time prints from a local client.
Given the class 'ReadOnly' with the following behavior: A (protected) integer instance variable named 'val'. A constructor that accepts an integer and assigns the value of the parameter to the instance variable 'val'. A method name 'getVal' that returns the value of 'val'. Write a subclass named 'ReadWrite' with the following additional behavior: Any necessary constructors. a method named 'setVal' that accepts an integer parameter and assigns it the the 'val' instance variable. a method 'isDirty' that returns true if the setVal method was used to override the value of the 'val' variable.
Answer:
I believe you want a subclass so here it is!
public class ReadWrite extends ReadOnly {
public ReadWrite(int initialValue){
super(initialValue);
}
private boolean modified = false;
public void setVal(int x) {
val = x;
modified = true;
}
public boolean isDirty() {
return modified;
}
}
Explanation:
I might be wrong, just check through it in case
Hope this helped
:)
Assuming that interface Resizable is declared elsewhere, consider the following class declaration:
public class InnerClassExample
{
public static void main(String[] args)
{
class SizeModifier implements Resizable
{
// class methods
}
__________________________ // missing statement
}
}
Which declarations can be used to complete the main method?
Answer:
The answer is "Resizable something = new SizeModifier();".
Explanation:
In the given code a class "InnerClassExample" is defined, inside the class the main method is declared, in which a class "SizeModifier" is declared, that inherits the interface, that is "Resizable".
Inside of the main method, we create an interface object, which is "something", in which the "SizeModifier" class is used to call as an instance or constructor. In this question only answer section code is correct, and others were wrong because it is not declared in the question.Which of the following is a basic concept associated with Web 2.0? Select one: a. shift in user's role from the passive consumer of content to its creator b. shift in user's interest from sharing information to finding information c. shift in user's preference from online sites to encyclopedias as sources of unbiased information d. shift in user's preference to environment-oriented products e. shift in user's lifestyle due to increased purchasing power
Answer:
A: shift in user's role from the passive consumer of content to its creator
Explanation:
During the phase of Web 2.0, consumers evolved from just been highly informed and socially connected (in other words, they evolved from being just passive consumers) to a more engaged and empowered consumer. This implied that consumers could easily adapt to new technologies to meet individual needs and create an emotional bond with brands. They evolved from passive consumers to being the creators of what they wanted to meet their specific needs.
Andy is writing an article and wants to verify a few facts. Which of the following websites is designed to provide answers to factual questions? A. RhythmOne B. Wolfram Alpha C. Ask a Librarian D. TinEye
Answer:
B. Wolfram Alpha
Explanation:
Wolfram Alpha is a unique website designed to provide answers to factual questions.
The mode of operation of Wolfram Alpha is by using its vast store of expert-level knowledge and algorithms to automatically answer questions, do analysis and generate reports without necessarily listing the webpages that might contain the answer.
Some websites can be used as a fact verification tool. Andy can make use of Wolfram Aplha to verify answers to questions in his articles.
(a) RhythmOne is a website used for advertisement.
(b) Wolfram Alpha is a website used for verifying solutions to topics like mathematics, algebra, physics, geometry, etc.
(c) Ask a Libarian is meant to provide an online support to library users
(d) TinEye is used for reverse image search
So, from the given options and the information provided above, we can conclude that Andy can only make use of (b) Wolfram Alpha to verify answers.
Read more about websites at:
https://brainly.com/question/10811157
describe in detail motion communication
Answer:
Motion communication is also known as Kinesics.
It deals with facial expressions and gestures, nonverbal behavior related to movement of any part of the body or the body as a whole and their various interpretations.It deals mainly with popular culture term called body language.
They are an important part of nonverbal communication and they convey information. Interpretations vary by culture. and could be misinterpreted when carried out at a subconscious or at least a low-awareness level.
Assume that you have member/2 where member(X, Y) checks whether X is an element of a list Y. Complete the first clause of the following Prolog program subset/2 where subset(A, B) will establish a relationship of A being a subset of B. subset([X|R],S) :- ________ %% the body should be... subset([ ],_).
Answer:
Refer below.
Explanation:
Assume that you have member/2 where member(X, Y) checks whether X is an element of a list Y. Complete the first clause of the following Prolog program subset/2 where subset(A, B) will establish a relationship of A being a subset of B. subset([X|R],S) :- ________ %% the body should be... subset([ ],_).
subset([X|R],S) :-
subset([ ],_).
member(X,S), subset(R,S)
what type of website is most likely to contain credible informtion
Answer:
Wikipedia. I know teachers hate it since it can be edited by anybody but it's got thousands of people checking credibility all the time.
Explanation:
In this exercise, you will write some code that reads n unique (no duplicates!) non-negative integers, each one less than fifty (50). Your code will print them in sorted order without using any nested loops-- potentially very efficient! We'll walk you through this: First, assume you are given an int variable n, that contains the number of integers to read from standard input. Also assume you are given an array, named wasReadIn, of fifty (50) bool elements and initialize all the elements to false. Third, read in the n integers from the input, and each time you read an integer, use it as an index into the bool array, and assign that element to be true-- thus "marking" in the array which numbers have been read. Lastly the "punchline": write a loop that traverses the bool array: every time it finds an element that is true it prints out the element's INDEX -- which was one of the integers read in. Place all the numbers on a single line, separated by a single spaces. Note: this technique is not limited to 50 elements-- it works just as well for larger values. Thus, for example you could have an array of 1,000,000 elements (that's right-- one million!) and use it to sort numbers up to 1,000,000 in value!
Answer:
// This program is written in C++
// It sorts array of n distinct elements in ascending order
// Comments are used for explanatory purpose
// Program starts here
#include <iostream>
using namespace std;
// Declare a maximum of 50
#define MAX 50
int main()
{
//The next line declares the array of 50 maximum integers
int Readln[MAX];
// The next line declares length of array
int n;
int temp;
// Prompt user to enter length of array
cout<<"Length of Array: ";
cin>>n;
//Check if length falls within range of 2 to MAX
while (n<2 || n>MAX)
{
cout<<"Array must have at least 2 elements and can't be more than "<<MAX<<endl;
}
// The next line declares an input element
int digit;
// The next loop statement accepts distinct array elements
for(int i=0; i<len;i++)
{
cout<<"Enter element ["<<i+1<<"] ";
cin>>digit;
// Check if digit is non-negative and less than 50; repeat until element is within range
while (digit<0 || n>49)
{
cout<<"Acceptable range is 0 to 49";
cin>>digit;
}
Readln[i] = digit;
}
//The next iteration sorts the array
for(i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
if(Readln[i]>Readln[j])
{
// Swap Elements
temp =Readln[i];
Readln[i]=arr[j];
Readln[j]=temp;
}
}
}
// The next line prints array elements
for(i=0;i<n;i++)
cout<<Readln[i]<<"\t";
cout<<endl;
return 0;
}
// End of program
What is the output of the following code? import java.util\.\*; public class Test { public static void main(String[] args) { List list1 = new ArrayList<>(); list1.add("Atlanta"); list1.add("Macon"); list1.add("Savanna"); List list2 = new ArrayList<>(); list2.add("Atlanta"); list2.add("Macon"); list2.add("Savanna"); List list3 = new ArrayList<>(); list3.add("Macon"); list3.add("Savanna"); list3.add("Atlanta"); System.out.println(list1.equals(list2) + " " + list1.equals(list3)); } }
Answer:
true false
Explanation:
list1 is assigned as Atlanta, Macon, Savanna
list2 is assigned as Atlanta, Macon, Savanna
list3 is assigned as Macon, Atlanta, Savanna
After these assignments,
The program checks if lis1 is equal to list2 and prints the result. Since both lists are equal, it will print true
The program checks if lis1 is equal to list3 and prints the result. Even though both lists contain the same elements, the order is different, it will print false.
What relationship pattern is illustrated in the following schema?
VEHICLE (VehicleID, Cost)
CAR (VehicleID, NumberOfSeats)
TRUCK (VehicleID, CargoCapacity)
VehicleID in CAR must exist in
VehicleID in VEHICLE VehicleID in TRUCK must exist in VehicleID in VEHICLE.
A) Association relationship
B) Intersection relationship
C) Recursive relationship
D) Strong entity relationship
E) Supertype/subtype relationship
Answer:
E) Supertype/subtype relationship
Explanation:
The type of relationship pattern illustrated in the schema below is E) Supertype/subtype relationship
Supertype/subtype relationship is the types of relationship that exist in the form of parent - children relationship in an entity. The supertype entity is the parent while the subtype entity is the child. The supertype entity contains one or more attributes that is common to the subtype entity.
The schema first define the Supertype entity:
VEHICLE (VehicleID, Cost)
CAR (VehicleID, NumberOfSeats)
TRUCK (VehicleID, CargoCapacity)
Then, the following (subtype entity) make reference to the Supertype:
VehicleID in CAR must exist in
VehicleID in VEHICLE
VehicleID in TRUCK must exist in
VehicleID in VEHICLE.
Since the subtype is making reference to supertype, we can say the relationship pattern illustrated in the schema is: Supertype/subtype relationship.
____ is a philosophy and a software and system development methodology that focuses on the development, use, and reuse of small, self-contained blocks of codes to meet the software needs of an organization.
a. Extreme programming
b. Joint application design
c. Rapid application development
d. Service-oriented architecture
Answer:
d.) Service-Oriented Architecture
Explanation:
Because its definition matches
what was the first name given to the internet?
Answer:
ARPANET
Explanation:
ARPANET
How do you rotate the graphic within a graphics frame without rotating the frame? To rotate a frame within a graphic, use the Direct Selection tool to select the frame within the graphics by clicking outside the content grabber. Then click the pointer slightly inside any of the six corner handles.
Answer:
Use the Selection tool to select the graphic within the frame by clicking within the content grabber. Position the pointer slightly outside any of the four corner handles and drag to rotate the graphic
Explanation:
The question already came with an answer; all needed was a little modification/addition to the given answer.
To rotate the graphic within a frame without rotating the frame;
We use the Selection tool to select the graphic within the frame by clicking within the content grabber. Position the pointer slightly outside any of the four corner handles and drag to rotate the graphic.
It is usually four corner handles not six as written in the question.
Final answer:
To rotate a graphic within a frame without affecting the frame, use the Direct Selection tool or Content Grabber to select the graphic, then hover near a corner handle until the rotation icon appears and drag to rotate.
Explanation:
To rotate the graphic within a graphics frame without rotating the frame itself, most graphic design programs like Adobe InDesign or Illustrator allow you to use the Direct Selection tool or the Content Grabber. Here is a step-by-step method to accomplish this:
Select the graphic frame that contains the image you wish to rotate.Switch to the Direct Selection tool, which allows you to select content within a frame separately from the frame itself.Click on the content grabber (a circle that appears in the center of the selected graphic) to select the graphic inside the frame.Once the graphic is selected, hover slightly inside any of the corner handles until the rotation icon appears. It typically looks like a curved arrow.Click and drag to rotate the graphic independent of its frame.Note that the exact method may vary slightly depending on the software you are using, but the tools and the basic principles will be similar.
Suppose you have a programmer-defined data type Data and want to overload the << operator
to output your data type to the screen in the form cout << dataToPrint; and allow
cascaded function calls. The first line of the function definition would be
(a) ostream &operator<<(ostream &output, const Data &dataToPrint)
(b) ostream operator<<(ostream &output, const Data &dataToPrint)
(c) ostream &operator<<(const Data &dataToPrint, ostream &output)
(d) ostream operator<<(const Data &dataToPrint, ostream &output)
Answer:
(a) ostream &operator<<(ostream &output, const Data &dataToPrint)
Explanation:
If you have a programmer-defined data type Data and want to overload the << operator to output your data type to the screen in the form cout <<dataToPrint; and allow cascaded function calls.
The first line of the function definition would be;
ostream &operator<<(ostream &output, const Data &dataToPrint)
Cisco Next Generation Intrusion Prevention System (NGIPS) devices include global correlation capabilities that utilize real-world data from Cisco Talos. To leverage global correlation in blocking traffic, what should be configured on the NGIPS?
To configure and set up Sourcefire NGIPS–managed devices, you must define blocking rules, set up the IPS to capture traffic, and, if necessary, block untrusted IP addresses. Sourcefire NGIPS is widely deployed in many enterprise environments that help protect the perimeter from intrusions.
Review the Sourcefire Installation Guides to set up a Defense Center and managed devices. The appliance will be configured as a Next Generation firewall.
Log in to the Sourcefire management interface and select the device you have configured.
Sourcefire NGIPS Interfaces Tab
Enter the specific details within the Device section. Click the pencil icon to edit the device-specific details.
Sourcefire Managed Device Setup
We have two separate security zones created on this device: the BIG-IP load balanced security zone, which is the zone for all the IPS-managed device interfaces, and the VLAN-35 security zone, which is the network for all the application server nodes (i.e., FTP, HTTPS, WEB). The Sourcefire NGIPS– managed device will inspect network flows coming from the BIG-IP appliance and then connect to the back-end server pools.
man who is colorblind marries a woman who has normal color vision and is not a carrier of color blindness. If this couple has a son, what are the chances he will be colorblind? Could they have a colorblind daughter? HTML EditorKeyboard Shortcuts
Answer:
Each of their sons has around a 0% chance for being color blind.
they will have normal girls but they will be carriers
Explanation:
Since the man is colour blind and he donates the X- Chromosome that is the carrier to the woman, they will give birth to a daughter who is a carrier but not color blind. If the man donates the Y chromosome, then they will give birth to a normal male child who is not color blind neither is he a carrier
who would win in a fight slenderman VS SCP-096
Answer: I mean he was beat before so I would say slender man
Explanation:
Answer: definitely scp-096 would win
Explanation: I got this answer from my five year old brother my little brother seems to know a lot about this kind of stuff so I trust his answer that scp-096 would win.
If r is an instance of the above Person class and oddNum has been declared as a variable of type boolean, which of the following correctly sets oddNum to true if Person object r has an odd number of children and to false otherwise?
oddNum = ( ( r.numChildren() % 2 ) != 0 );
if ( ( r.numChildren() % 2 ) == 0 )
oddNum = false;
else
oddNum = true;
oddNum = false;
for ( int k = 0 ; k < r.numChildren() ; k++ )
oddNum = !oddNum;
I only
II only
III only
I and II only
I, II, and III
Answer:
I, II, and III
Explanation:
The three are almost saying the same thing. the loop is one am a bit concerned about. but since the oddnum is set to false, the loop will work.
The one and two are pretty clear. to test for odd number, the easiest is to divide by two to see if there will be a remainder. That is what both first and second statement is trying to do.
Online search engines like Google, Bing, and DuckDuckGo help to make information readily available to us when we need it. However, what do Wikis do that these search engines do not that also makes them useful in their own sense?
Answer:
for example, wikipedia is a very non-trustworthy website that can be edited by anyone which isn't reliable for a source while Google and DuckDuckGo have many different resources because its a search engine also the wiki is a website while technically google and duckduckgo are not
Explanation:
In a typical system design specification, the _____ section describes the constraints, or conditions, affecting a system, including any requirements that involve operations, hardware, systems software, or security.A. time and cost estimatesB. system environmentC. executive summaryD. implementation requirements
Answer:
Option B is the correct answer for the above question.
Explanation:
The system design specification is used to tell the quality and nature of any software or system. So there are needs of one section which tells about the necessary hardware and the software which are used to operate the software or system. This section is known as the "System environment".
The above question also asked the same, hence option B is the correct answer while the other is not because:-
Option A states about time and cost which is not a section of a System design specification.Option C states about executive summary which is not a section of a System design specification.Option D states about implementation requirements which is not a section of a System design specification.
If $hourlyWage contains the value 10.00 and $hoursWorked contains the value 20, what value will $bonus contain after the following code is executed?
if ($hourlyWage >= 10 and $hoursWorked <= 20)
$bonus = $25.00;
else
$bonus = $50.00;
Answer:
$25.00
Explanation:
The variable $bonus will contain $25.00 because the if statement has the condition greater than or equals to for hourlyWage and less than or equals to for hoursWorked. Therefore the if condition evaluates to true since we are given in the question that;
$hourlyWage = 10.00 and $hoursWorked = 20
And the statement following the if is executed ignoring the else statement
A water-sports company specializes in custom-made watercrafts and accessories.Their marketing manager decides to use the broad-match keyword, "boat." The manager then adds "paddle" as a broad-match modifier. Which two searches may prompt the marketing manager's ad?
Answer:
The answer is "Travel on a paddle ship & A green boat paddle"
Explanation:
Description to this question can be described as follows:
The paddle wheel is a device with a wide steel frame. The wheel's outer edge is equipped with several regularly spaced boat tips. It moves deep in the bottom third. This wheel is in the water is rotated by an engine to generate thrust, forward or backward as necessary. The Green ToysTM paddle cruises its open waters. Its companion to the greatest-selling Green Toys Fishing boat and Submarines includes the very same easy-grab handles and ladle-and-pour spout, and also a revolving boat wheels on the back, its ideal attachment to every bath ship.This question involves the implementation of the PasswordGenerator class, which generates strings containing initial passwords for online accounts. The PasswordGenerator class supports the following functions:
- Creating a password consisting of a specified prefix, a period, and a randomly generated numeric portion of specified length
- Creating a password consisting of the default prefix "A", a period, and a randomly generated numeric portion of specified length
- Reporting how many passwords have been generated
The following table contains a sample code execution sequence and the corresponding results: Statements, Possible Value Returned (blank if no value returned), Comment
PasswordGenerator pw1 = new
PasswordGenerator(4, "chs");
(blank)
Passwords generated by the pw1 object are composed of the prefix "chs", a period, and 4 randomly-generated digits.
pw1.pwCount();
0
No passwords have been generated yet.
pw1.pwGen();
"chs.3900"
A possible password generated by the pw1 object
pw1.pwGen();
"chs.1132"
A possible password generated by the pw2 object
pw1.pwCount();
2
Two passwords have been generated. Both contain the prefix "chs" and 4 digits.
PasswordGenerator pw2 = new
PasswordGenerator(6);
Passwords generated by the pw2 object are composed of the default prefix "A", a period, and 6 randomly generated digits.
pw2.pwCount();
2
Two passwords have been generated. Both contain the prefix "chs" and 4 digits.
pw2.pwGen();
"A.843055"
A possible password generated by the pw2 object
pw2.pwCount();
3
Three passwords have been generated. Two contain the prefix "chs" and 4 digits, and the third contains the default prefix "A" and 6 digits.
pw1.pwCount();
3
Three passwords have been generated. The same value is returned by pwCount for all objects of the PasswordGenerator class.
Write the complete PasswordGenerator class. Your implementation must meet all specifications and conform to the example.
The following code will be used for the PasswordGenerator class.
Explanation:
import java.util.Random;
public class PasswordGenerator {
private static int passwordsGenerated =0;
private static Random random = new Random();
private String prefix;
private int length;
public PasswordGenerator(int length,String prefix) {
this.prefix = prefix;
this.length = length;
}
public PasswordGenerator(int length) {
this.prefix = "A";
this.length = length;
}
public String pwGen(){
String pwd= this.prefix+".";
for(int i=1;i<=this.length;i++){
pwd+=random.nextInt(10);
}
passwordsGenerated+=1;
return pwd;
}
public int pwCount(){
return passwordsGenerated;
}
public static void main(String[] args) {
PasswordGenerator pw1 = new PasswordGenerator(4,"chs");
System.out.println(pw1.pwCount());
System.out.println(pw1.pwGen());
System.out.println(pw1.pwGen());
System.out.println(pw1.pwCount());
PasswordGenerator pw2 = new PasswordGenerator(6);
System.out.println(pw2.pwCount());
System.out.println(pw2.pwGen());
System.out.println(pw2.pwCount());
System.out.println(pw1.pwCount());
}
}
As more and more computing devices move into the home environment, there's a need for a centralized storage space, called a _____________________. Group of answer choices RAID drive network attached storage device server station gigabit NIC
Answer: Network attached storage device
Explanation:
Network attached storage(NAS) is the data storage server device that is responsible for serving files to configuration and other components.Through this sever device data can be retrieved by various client and user from central disk capacity .It provides good data access to diverse user and client of data.
Other options are incorrect because RAID drive, server station, gigabit NIC are not the devices that centrally store huge amount of data for access.Thus, the correct option is network attached storage(NAS) device12) Suppose you wanted a subroutine to return to an address that was 3 bytes higher in memory than the return address currently on the stack. Write a sequence of instructions that would be inserted just before the subroutine’s RET instruction that accomplish this task.
Answer:
.code
main proc
mov ecx,ebp
mov ecx, 787878
push ecx
call MySe7en
invoke ExitProcess,0
main endp
MySe7en PROC
pop ecx
sub ecx, 3
mov
push ecx
ret
end main