Create a Department object which contains a name (String), budget (double), and an ArrayList of Employee objects. Each Employee object contains a FirstName (String). LastName(String), and an Address object. Each Address object contains a Street (String), Apartment (int), City (String), and State as a char array of length 2. The Apartment parameter is optional but the other three are mandatory! Ensure no Address object can be created that does not have them. Finally, create a test program that allows users to Add, Delete, Print, and Search the Employees of a Department.

Answers

Answer 1

Answer:

Explanation:

The following code is very long and is split into the 4 classes that were requested/mentioned in the question: Department, Employee, Address, and Test. Each one is its own object with its own constructor. Getters and Setters were not created since they were not requested and the constructor handles all of the variable creation. Address makes apartment variable optional by overloading the constructor with a new one if no argument is passed upon creation.

package sample;

import sample.Employee;

import java.util.ArrayList;

class Department {

   String name = "";

   double budget = 0;

   ArrayList<Employee> employees = new ArrayList<>();

   void Department(String name, double budget, ArrayList<Employee> employees) {

       this.name = name;

       this.budget = budget;

       this.employees = employees;

   }

}

------------------------------------------------------------------------------------------------------------

package sample;

public class Employee {

   String FirstName, LastName;

   Address address = new Address();

   public void Employee(String FirstName, String LastName, Address address) {

       this.FirstName = FirstName;

       this.LastName = LastName;

       this.address = address;

   }

}

-------------------------------------------------------------------------------------------------------------

package sample;

class Address {

   String Street, City;

   int apartment;

   char[] state;

   public void Address(String street, String city, char[] state, int apartment) {

       this.Street = street;

       this.City = city;

       this.state = state;

       this.apartment = apartment;

   }

   public void Address(String street, String city, char[] state) {

       this.Street = street;

       this.City = city;

       this.state = state;

       this.apartment = 0;

   }

}

-------------------------------------------------------------------------------------------------------------

package sample;

public class Test extends Department {

   public void add(Department department, Employee employee) {

       department.employees.add(employee);

   }

   public void delete(Department department, Employee employee) {

       for (int x = 0; x < department.employees.size(); x++) {

           if (department.employees.get(x) == employee) {

               department.employees.remove(x);

           }

       }

   }

   public void Print(Department department, Employee employee) {

       for (int x = 0; x < department.employees.size(); x++) {

           if (department.employees.get(x) == employee) {

               System.out.println(employee);

           }

       }

   }

   public void Search (Department department, Employee employee) {

       for (int x = 0; x < department.employees.size(); x++) {

           if (department.employees.get(x) == employee) {

               System.out.println("Employee is located in index: " + x);

           }

       }

   }

}


Related Questions

71 Computer A uses Stop and Wait ARQ to sand packats to computer B. If the
distance between A and B is 40000 km the packet size is 5000 bytes and the
bandhvidth is 10Mbps. Assume that the propagation speed is 2.4x108mis?
a) How long does it take computer A to receive acknowledgment for a packet?

Answers

D

Sorry if I’m wrongggggggg

3 uses of Microsoft word in hospital

Answers

Answer:

Using word to Write the instructions of tools fo things. Using powerpoint to show how do prepare the surgery and excel to write the time and appointments of things

Explanation:

Create a class SavingsAccount. Use a static class variable to store the annualInterestRate for each of the savers. Each object of the class contains a private instance variable savingsBalance indicating the amount the saver currently has on deposit. Provide method calculateMonthlyInterest to calculate the monthly interest by multiplying the balance by annualInterestRate divided by 12;

Answers

Answer:

Explanation:

The following code is written in Java and creates the requested variables inside the SavingsAccount class, then it creates a contructor method to add a value to the savingsBalance per object creation. And finally creates a calculateMonthlyInterest method to calculate the interest through the arithmetic operation provided in the question...

public class SavingsAccount {

   static double annualInterestRate = 0.03;

   private double savingsBalance;

   

   public void SavingsAccount(double savingsBalance) {

       this.savingsBalance = savingsBalance;

   }

   

   public double calculateMonthlyInterest() {

       return ((savingsBalance * annualInterestRate) / 12);

   }

}

A function prototype ... specifies the function's name and type signature, but omits the function implementation. specifies the function's implementation, but omits the function's name and type signature. creates multiple functions with different argument lists. is used as an initial example of a correct function signature. overloads an existing function to accept other argument types.

Answers

Answer:

specifies the function's name and type signature, but omits the function implementation.

Explanation:

I will answer the question with the following illustration in C++:

double func(int a);

The above is a function prototype, and it contains the following:

double -> The function type

func -> The function name

int a -> The signature which in this case, is the parameter being passed to the function

Notice that the above does not include the function body or the implementation.

Hence, (a) is correct

A variable like userNum can store a value like an integer. Extend the given program to print userNum values as indicated.(1) Output the user's input.Enter integer: 4You entered: 4(2) Extend to output the input squared and cubed. Hint: Compute squared as userNum * userNum. (Submit for 2 points, so 4 points total).Enter integer: 4You entered: 44 squared is 16 And 4 cubed is 64!! (3) Extend to get a second user input into userNum2. Output sum and product. (Submit for 1 point, so 5 points total).Enter integer: 4You entered: 44 squared is 16 And 4 cubed is 64!!Enter another integer: 54 + 5 is 94 * 5 is 20LABACTIVITY1.16.1: Basic output with variables (Java)0 / 5OutputWithVars.javaLoad default template...import java.util.Scanner;public class OutputWithVars {public static void main(String[] args) {Scanner scnr = new Scanner(System.in);int userNum = 0;System.out.println("Enter integer: ");userNum = scnr.nextInt(); return;}}import java.util.Scanner;public class OutputWithVars {public static void main(String[] args) {Scanner scnr = new Scanner(System.in);int userNum = 0;System.out.println("Enter integer: ");userNum = scnr.nextInt();return;}}Develop modeSubmit modeRun your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box.

Answers

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 int userNum;

 Scanner input = new Scanner(System.in);

 System.out.print("Enter integer: ");

 userNum = input.nextInt();

 System.out.println("You entered "+userNum);

 System.out.println(userNum+" squared is "+(userNum*userNum));

 System.out.println(userNum+" cubed is "+(userNum*userNum*userNum));

 int userNum2;

 System.out.print("Enter another integer: ");

 userNum2 = input.nextInt();

 int sum= userNum + userNum2; int product = userNum2 * userNum;

 System.out.println(userNum+" + "+userNum2+" = "+sum);

 System.out.println(userNum+" * "+userNum2+" = "+product); } }

Explanation:

This declares userNum

 int userNum;

 Scanner input = new Scanner(System.in);

This prompts the user for input

 System.out.print("Enter integer: ");

This gets user input from the user

 userNum = input.nextInt();

Number (1) is implemented here

 System.out.println("You entered "+userNum);

Number (2) is implemented here

 System.out.println(userNum+" squared is "+(userNum*userNum));

 System.out.println(userNum+" cubed is "+(userNum*userNum*userNum));

This declares another variable userNum2

 int userNum2;

This prompts the user for another input

 System.out.print("Enter another integer: ");

This gets user input from the user

 userNum2 = input.nextInt();

This calculates the sum and the product

 int sum= userNum + userNum2; int product = userNum2 * userNum;

Number (3) is implemented here

 System.out.println(userNum+" + "+userNum2+" = "+sum);

 System.out.println(userNum+" * "+userNum2+" = "+product);

We want to implement a data link control protocol on a channel that has limited bandwidth and high error rate. On the other hand, the communication equipment has high processing power and large buffering capacity. Assume that off-the-shelf software is available for two protocols, the Go Back N and the Selective Repeat protocols. Which one is better in this situation

Answers

Answer:

Selective Repeat protocols

Explanation:

It is better to make use of the selective repeat protocol here. From what we have here, there is a high error rate on this channel.

If we had implemented Go back N protocol, the whole N packets would be retransmitted. Much bandwidth would be needed here.

But we are told that bandwidth is limited. So if packet get lost when we implement selective protocol, we would only need less bandwidth since we would retransmit only this packet.

"Look at the following code. Which line will cause a compiler error?

Line 1 public class ClassA
Line 2 {
Line 3 public ClassA() {}
Line 4 public final int method1(int a){ return a;}
Line 5 public double method2(int b){ return b;}
Line 6 }
Line 7 public ClassB extends ClassA
Line 8 { Line 9 public ClassB(){}
Line 10 public int method1(int b){ return b;}
Line 11 public double method2(double c){ return c;}
Line 12 }"

a. Line 4
b. Line 5
c. Line 10
d. Line 11

Answers

Answer:

i got a feeling c

Explanation:

Which functions do you use to complete Step 3e? Check all that apply.

Animations tab
Animation styles
Design
Lines
Motion Paths
Reordering of animations

Answers

Answer: Animations tab

Animation styles

Lines

Motion paths

Explanation: Edg2021

Read the passage. What does it help you understand about how Manjiro’s character has developed?

Answers

Answer:

The passage shows that Manjiro is thinking more independently than he did at the beginning of the story. he is not as influenced by the fears and ideas common in his culture; instead, he recognizes that the "barbarians" on the ship are simply people just like him.

Explanation:

It is correct

Write C programs that output the following patterns exactly. Use loops to implement the repetitive part of the code. No functions or arrays are allowed?

Answers

Answer:

your a legend you can do it just pleave

Explanation:

:)

Netscape browser is one of Microsoft products
o true
o false

Answers

Answer:

FALSE. Netscape navigator web browser was developed by Netscape Communications Corporation, a former subsidiary of AOL.

What would provide structured content that would indicate what the code is describing ?
A.XML
B.DHTML
C.WYSIWYG
D.HTML

Answers

Answer: The answer is a.

Explanation:

A two-dimensional list is suitable for storing tabular data. True False 2 A two-dimensional list is really a one-dimensional list of one-dimensional lists. True False 3 The smallest index of any dimension of a two-dimensional list is 1. True False 4 The maximum indexes of a two-dimensional list with 6 rows and 10 columns are 5 and 9, respectively. True False 5 How many elements can be stored in a two-dimensional list with 5 rows and 10 columns

Answers

Answer:

1.) True

2.) True

3.) False

4.) True

5.) 50

Explanation:

A.) Two dimensional list reperesents arrays arranges in rows and column pattern ; forming a Table design. 1 dimension represents rows whe the other stands for the column.

B.) When a 1-dimensional list is embedded in another 1 - dimensional list, we have a 2 - D list.

C.) The smallest index of any dimension of a 2-D list is 0

.D.) Given a 2-D list with 6 rows and 10 columns

Maximum dimension:

(6 - 1) = 5 and (10 - 1) = 9

Dimension = (5, 9)

E.) maximum number of elements :

5 rows by 10 columns

5 * 10 = 50 elements.

In this exercise, you are going to build a hierarchy to create instrument objects. We are going to create part of the orchestra using three classes, Instrument, Wind, and Strings. Note that the Strings class has a name very close to the String class, so be careful with your naming convention!We need to save the following characteristics:Name and family should be saved for all instrumentsWe need to specify whether a strings instrument uses a bowWe need to specify whether a wind instrument uses a reedBuild the classes out with getters and setters for all classes. Only the superclass needs a toString and the toString should print like this:Violin is a member of the String family.Your constructors should be set up to match the objects created in the InstrumentTester class.These are the files givenpublic class InstrumentTester{public static void main(String[] args){/*** Don't Change This Tester Class!** When you are finished, this should run without error.*/Wind tuba = new Wind("Tuba", "Brass", false);Wind clarinet = new Wind("Clarinet", "Woodwind", true); Strings violin = new Strings("Violin", true);Strings harp = new Strings("Harp", false); System.out.println(tuba);System.out.println(clarinet); System.out.println(violin);System.out.println(harp);}}////////////////////////////public class Wind extends Instrument{}///////////////////////////public class Strings extends Instrument{ }/////////////////////////public class Instrument{ }

Answers

Answer:

Explanation:

The following code is written in Java and creates the classes, variables, and methods as requested. The String objects created are not being passed a family string argument in this question, therefore I created two constructors for the String class where the second constructor has a default value of String for family.

package sample;

class InstrumentTester {

   public static void main(String[] args) {

       /*** Don't Change This Tester Class!** When you are finished, this should run without error.*/

       Wind tuba = new Wind("Tuba", "Brass", false);

       Wind clarinet = new Wind("Clarinet", "Woodwind", true);

       Strings violin = new Strings("Violin", true);

       Strings harp = new Strings("Harp", false);

       System.out.println(tuba);

       System.out.println(clarinet);

       System.out.println(violin);

       System.out.println(harp);

   }

}

class Wind extends Instrument {

   boolean usesReef;

   public Wind(String name, String family, boolean usesReef) {

       this.setName(name);

       this.setFamily(family);

       this.usesReef = usesReef;

   }

   public boolean isUsesReef() {

       return usesReef;

   }

   public void setUsesReef(boolean usesReef) {

       this.usesReef = usesReef;

   }

}

class Strings extends Instrument{

   boolean usesBow;

   public Strings (String name, String family, boolean usesBow) {

       this.setName(name);

       this.setFamily(family);

       this.usesBow = usesBow;

   }

   public Strings (String name, boolean usesBow) {

       this.setName(name);

       this.setFamily("String");

       this.usesBow = usesBow;

   }

   public boolean isUsesBow() {

       return usesBow;

   }

   public void setUsesBow(boolean usesBow) {

       this.usesBow = usesBow;

   }

}

class Instrument{

   private String family;

   private String name;

   public String getName() {

       return name;

   }

   public void setName(String name) {

       this.name = name;

   }

   public String getFamily() {

       return family;

   }

   public void setFamily(String family) {

       this.family = family;

   }

   public String toString () {

       System.out.println(this.getName() + " is a member of the " + this.getFamily() + " family.");

       return null;

   }

}

internet is an interconnected networks
o true
o false

Answers

Answer:

True.

Internet is an interconnected network.

Create the following SQL Server queries that access the Northwind database. Place them in a zip file and place the zip file in the "drop box" for Assignment 5. Name the queries Query 1-MP5, Query2-MP5, etc. Note: These problems all require aggregate processing with GROUP BY
1. For each employee, list the employee ID, employee first name, employee last name, and count of orders taken in 1996. Place the list in descending order by the number of orders.
2. For all orders shipped in July or August, 1996, list the order ID, company name, order date, and total cost of all items ordered. Place the list in descending order by the total cost
3. For all customers from the USA, list the customer ID, company name, state, count of orders, and total order amount. Do not consider the discount. Place the list in order by state and then customer ID.
4. Same as problem 3 but limit the list to all customers who placed 3 or more orders.
5. For all items in the Grains/Cereals category, list the product ID, product name, supplier name, and last date that the product was ordered. Order the list by supplier name and product name (Hint: Use MAX and be sure to include all necessary tables)
6. The product ID, product name, and count of distinct customers who ordered that product in 1996. Place the list in descending order by the count of customers.

Answers

Answer:

1. SELECT e.EmployeeID, e.FirstName, e.LastName, COUNT(*) as OrderByEmployee FROM Employees e

JOIN Orders o

ON e.EmployeeID = o.EmployeeID

WHERE YEAR(o.OrderDate) = '1996'

GROUP BY e.EmployeeID,e.FirstName,e.LastName

ORDER BY OrderByEmployee DESC

2. SELECT o.OrderID,c.CustomerID, o.OrderDate,SUM((od.Quantity)*

od.UnitPrice - od.Discount)) as TotalCost FROM Orders o

JOIN [Order Details] od

ON od.OrderID = o.OrderID

JOIN Customers c

ON o.CustomerID = c.CustomerID

WHERE (MONTH(OrderDate)= 7 OR MONTH(OrderDate) = 8) and

YEAR(OrderDate) = 1996

GROUP BY o.OrderID,c.CustomerID, o.OrderDate

ORDER BY TotalCost DESC

3. SELECT c.CustomerID, c.CompanyName, c.City, COUNT(o.OrderID) as TotalOrder, SUM(od.Quantity* od.UnitPrice) as TotalOrderAmount FROM Customers c

JOIN Orders o

ON o.CustomerID = c.CustomerID

JOIN [Order Details] od

ON od.OrderID = o.OrderID

WHERE c.Country = 'USA'

GROUP BY c.CustomerID, c.CompanyName, c.City

ORDER BY c.City, c.CustomerID

4. SELECT c.CustomerID, c.CompanyName, c.City, COUNT(o.OrderID) as TotalOrder, SUM(od.Quantity* od.UnitPrice) as TotalOrderAmount FROM Customers c

JOIN Orders o

ON o.CustomerID = c.CustomerID

JOIN [Order Details] od

ON od.OrderID = o.OrderID

WHERE c.Country = 'USA'

GROUP BY c.CustomerID, c.CompanyName, c.City

HAVING COUNT(o.OrderID) > 3

ORDER BY c.City, c.CustomerID

5. SELECT p.ProductID, p.ProductName, s.ContactName as SupplierName, MAX(o.OrderDate) as LastOrderDateOfProduct FROM Products p

JOIN Categories c

ON c.CategoryID = p.CategoryID

JOIN Suppliers s

ON s.SupplierID = p.SupplierID

JOIN [Order Details] od

ON od.ProductID = p.ProductID

JOIN Orders o

ON o.OrderID = od.OrderID

where c.CategoryName = 'Grains/Cereals'

GROUP BY p.ProductID, p.ProductName, s.ContactName

ORDER BY SupplierName, p.ProductName

6. SELECT p.ProductID, p.ProductName, Count(DISTINCT c.CustomerID ) as OrderByThisManyDistinctCustomer

FROM Products p

JOIN [Order Details] od

ON od.ProductID = p.ProductID

JOIN Orders o

ON o.OrderID = od.OrderID

JOIN Customers c

ON c.CustomerID = o.CustomerID

where YEAR(o.OrderDate) = 1996

GROUP BY p.ProductID, p.ProductName

Explanation:

The six query statements returns data from the SQL server Northwind database. Note that all the return data are grouped together, this is done with the 'GROUP BY' Sql clause.

Create an array of doubles to contain 5 values Prompt the user to enter 5 values that will be stored in the array. These values represent hours worked. Each element represents one day of work. Create 3 c-strings: full[40], first[20], last[20] Create a function parse_name(char full[], char first[], char last[]). This function will take a full name such as "Noah Zark" and separate "Noah" into the first c-string, and "Zark" into the last c-string. Create a function void create_timecard(double hours[], char first[], char last[]). This function will create (write to) a file called "timecard.txt". The file will contain the parsed first and last name, the hours, and a total of the hours. See the final file below. First Name: Noah

Answers

Solution :

[tex]$\#$[/tex]include [tex]$<stdio.h>$[/tex]  

[tex]$\#$[/tex]include [tex]$<string.h>$[/tex]    

void parse[tex]$\_$[/tex]name([tex]$char \ full[]$[/tex], char first[tex]$[],$[/tex] char last[tex]$[])$[/tex]

{

// to_get_this_function_working_immediately, _irst

// stub_it_out_as_below._When_you_have_everything_else

// working,_come_back_and_really_parse_full_name

// this always sets first name to "Noah"

int i, j = 0;

for(i = 0; full[i] != ' '; i++)

  first[j++] = full[i];

first[j] = '\0';  

// this always sets last name to "Zark"

j = 0;

strcpy(last, full+i+1);

// replace the above calls with the actual logic to separate

// full into two distinct pieces

}

int main()

{

char full[40], first[20], last[20];

double hours[5];

// ask the user to enter full name

printf("What is your name? ");

gets(full);

// parse the full name into first and last

parse_name(full, first, last);

// load the hours

for(int i = 0; i < 5; i++)

{

   printf("Enter hours for day %d: ", i+1);

   scanf("%lf", &hours[i]);

}

// create the time card

FILE* fp = fopen("timecard.txt", "w");

fprintf(fp, "First Name: %s\n", first);

fprintf(fp, "Last Name: %s\n", last);

double sum = 0.0;

for(int i = 0; i < 5; i++)

{

   fprintf(fp, "Day %i: %.1lf\n", i+1, hours[i]);

   sum += hours[i];

}

fprintf(fp, "Total: %.1f\n", sum);    

printf("Timecard is ready. See timecard.txt\n");

return 0;

}

A sensitive manufacturing facility has recently noticed an abnormal number of assembly-line robot failures. Upon intensive investigation, the facility discovers many of the SCADA controllers have been infected by a new strain of malware that uses a zero-day flaw in the operating system. Which of the following types of malicious actors is MOST likely behind this attack?
A. A nation-state.
B. A political hacktivist.
C. An insider threat.
D. A competitor.

Answers

Answer:

A. A nation-state.

Explanation:

Given that a nation-state attack if successful is about having access to the different sector or industries of networks, then followed it by compromising, defrauding, altering (often for fraud purpose, or destroy information

Therefore, in this case, considering the information giving above, the type of malicious actor that is MOST likely behind this attack is "a Nation-State."

The Yuba College Library would like a program to calculate patron fines for overdue books. Fines are determined as follows: Paperbacks Regular $.20 / day with a maximum fine of $8.00 Best-Sellers $.50 / day with a maximum fine of $15.00 Magazines $.25 / day with a maximum fine of $5.00 Hardcover Books $.30 / day with a maximum fine of $23.00 The program must prompt the user to enter the following information at the keyboard. Data entry MUST be validated as required. Fines must also be calculated using a function(s). A class object should contain the methods (functions) to determine library fine. Provide a UML and description of disign.Patron’s library card number (a 4-digit number) - ValidatePatron’s namePatron’s addressType of book - ValidateNumber of days over due - ValidateA sample interactive session is shown below:Enter the patron’s card number: 2089Enter the patron’s name: Erica RobinsonEnter the patron’s address: 2234 RoadWay Trl.Enter the book’s title: The Trail Less Traveled.1. Paperback - Regular2. Paperback - Bestseller3. Magazine4. Hardcover bookEnter number corresponding to type of book (1 – 4): 4Enter the number of days overdue: 11Do you wish to perform another transaction?

Answers

Answer:

Explanation:

The following Python code creates all of the necessary functions in order to request and validate all of the inputs from the user. Once everything is entered and validated it calculates the total fee and outputs it to the user. Also calls the entire class at the end using a test variable...

class Customer:

   library_card = 0

   patrons_name = ""

   patrons_address = ""

   type_of_book = ""

   book_title = ""

   days_overdue = 0

   fee = 0.0

   book_list = ['paperback regular', 'paperback best seller', 'magazine', 'hardcover']

   def __init__(self):

       self.library_card = self.get_library_card()

       self.patrons_address = input("Patron's Address: ")

       self.book_title = input("Book Title: ")

       self.type_of_book = self.get_type_of_book()

       self.days_overdue = float(self.get_days_overdue())

       self.calculate_total()

       print("Your total Fee is: " + str(self.fee))

   def get_library_card(self):

       library_card = int(input("Enter 4-digit library card number: "))

       if (type(library_card) == type(0)) and (len(str(library_card)) == 4):

           return library_card

       else:

           print("Invalid Card number:")

           self.get_library_card()

   def get_type_of_book(self):

       type_of_book = input("Type of Book 1-4: ")

       if (int(type_of_book) > 0) and (int(type_of_book) <= 4):

           return int(type_of_book)

       else:

           print("Invalid Type")

           self.get_type_of_book()

   def get_days_overdue(self):

       days_overdue = input("Number of Days Overdue: ")

       if int(days_overdue) >= 0:

           return days_overdue

       else:

           print("Invalid number of days")

           self.get_days_overdue()

   def calculate_total(self):

       if self.type_of_book == 1:

           self.fee = 0.20 * self.days_overdue

           if self.fee > 8:

               self.fee = 8

       elif self.type_of_book == 2:

           self.fee = 0.50 * self.days_overdue

           if self.fee > 15:

               self.fee = 15

       elif self.type_of_book == 3:

           self.fee = 0.25 * self.days_overdue

           if self.fee > 5:

               self.fee = 5

       else:

           self.fee = 0.30 * self.days_overdue

           if self.fee > 23:

               self.fee = 23

test = Customer()

Victoria turned in a rough draft of a research paper. Her teacher commented that the organization of the paper needs work.

Which best describes what Victoria should do to improve the organization of her paper?

think of a different topic
try to change the tone of her paper
clarify her topic and make it relevant to her audience
organize her ideas logically from least important to most important

Answers

Answer:

D

Explanation:

D would be correct

EDGE 2021

Dan wants to use some of his friend's printed photos of sea creatures for a school multimedia project. Which input device is best for transferring the photos to his project?
ОА
web camera
OB.
scanner
OC graphics tablet
OD
digital camera

Answers

Dan wants to transfer printed photos of sea creatures to his school multimedia project. Using a scanner, he can create a digital image of the printed photos and then import them into his project. The correct answer is B. scanner.

What is scanner ?

A scanner is an input device that creates a digital image of a physical document or image.

Therefore, Scanners are widely used in businesses, homes, and institutions for a variety of purposes, such as scanning documents for archiving, creating digital copies of physical documents and converting printed photos into digital images.

Learn more about scanner here : brainly.com/question/14259590

#SPJ1

_____(Blank) Is the money that received regularly by an individual, for providing good or services, earnings from labor, business, or investments​

Answers

Answer:

Income is money what an individual or business receives in exchange for providing labor, producing a good or service, or through investing capital. Individuals most often earn income through wages or salary.

Explanation:

Hope It Help you

Part 1 of 4 parts for this set of problems: Given an 4777 byte IP datagram (including IP header and IP data, no options) which is carrying a single TCP segment (which contains no options) and network with a Maximum Transfer Unit of 1333 bytes. How many IP datagrams result, how big are each of them, how much application data is in each one of them, what is the offset value in each. For the first of four datagrams: Segment

Answers

Answer:

Fragment 1: size (1332), offset value (0), flag (1)

Fragment 2: size (1332), offset value (164), flag (1)

Fragment 3: size (1332), offset value (328), flag (1)

Fragment 4: size (781), offset value (492), flag (1)

Explanation:

The maximum = 1333 B

the datagram contains a header of 20 bytes and a payload of 8 bits( that is 1 byte)

The data allowed = 1333 - 20 - 1 = 1312 B

The segment also has a header of 20 bytes

the data size = 4777 -20 = 4757 B

Therefore, the total datagram = 4757 / 1312 = 4

Explain 2 ways in which data can be protected in a home computer??

Answers

Answer:

The cloud provides a viable backup option. ...

Anti-malware protection is a must. ...

Make your old computers' hard drives unreadable. ...

Install operating system updates. ...

How are BGP neighbor relationships formed
Automatically through BGP
Automatically through EIGRP
Automatically through OSPF
They are setup manually

Answers

Answer:

They are set up manually

Explanation:

BGP neighbor relationships formed "They are set up manually."

This is explained between when the BGP developed a close to a neighbor with other BGP routers, the BGP neighbor is then fully made manually with the help of TCP port 179 to connect and form the relationship between the BGP neighbor, this is then followed up through the interaction of any routing data between them.

For BGP neighbors relationship to become established it succeeds through various phases, which are:

1. Idle

2. Connect

3. Active

4. OpenSent

5. OpenConfirm

6. Established

You received an email message stating that your mother's bank account is going to be forfeited if you do not respond to the email. Is it safe to reply?Why?


It's a scenario<3​

Answers

Answer:

No.

Explanation:

I'm almost certain it's a scam. Banks generally don't use emails to contact clients. They use telephones and paper correspondence. If they contact you by email it is because they have no other way of getting in touch with you because you have changed your address and your phone, etc..

Do you think that dealing with big data demands high ethical regulations, accountability, and responsibility of the person as well as the company? Why​

Answers

Answer:

i will help you waiting

Explanation:

Yes dealing with big data demands high ethical regulations, accountability and responsibility.

The answer is Yes because while dealing with big data, ethical regulations, accountability and responsibility must be strictly followed. Some of the principles that have to be followed are:

Confidentiality: The information contained in the data must be treated as highly confidential. Information must not be let out to a third party.Responsibility: The people responsible for handling the data must be good in analyzing big data. They should also have the required skills that are needed.Accountability: The service that is being provided has to be very good. This is due to the need to keep a positive work relationship.

In conclusion, ethical guidelines and moral guidelines have to be followed while dealing with big data.

Read more at https://brainly.com/question/24284924?referrer=searchResults

Use the arr field and mystery () method below.

private int[] arr;

//precondition: arr.length > 0
public void mystery()
{
int s1 = 0;
int s2 = 0;

for (int i = 0; i < arr.length; i++)
{
int num = arr[i];

if ((num > 0) && (num % 2 == 0))
{
s1 += num;
}
else if (num < 0)
{
s2 += num;
}
}

System.out.println(s1);
System.out.println(s2);
}
Which of the following best describes the value of s1 output by the method mystery?

The sum of all values greater than 2 in arr
The sum of all values less than 2 in arr
The sum of all positive values in arr
The sum of all positive odd values in arr
The sum of all positive even values in arr

Answers

Answer:

The sum of all positive even values in arr

Explanation:

We have an array named arr holding int values

Inside the method mystery:

Two variables s1 and s2 are initialized as 0

A for loop is created iterating through the arr array. Inside the loop:

num is set to the ith position of the arr (num will hold the each value in arr)

Then, we have an if statement that checks if num is greater than 0 (if it is positive number) and if num mod 2 is equal to 0 (if it is an even number). If these conditions are satisfied, num will be added to the s1 (cumulative sum). If num is less than 0 (if it is a negative number), num will be added to the s2 (cumulative sum).

When the loop is done, the value of s1 and s2 is printed.

As you can see, s1 holds the sum of positive even values in the arr

Let's consider a long, quiet country road with houses scattered very sparsely along it. (We can picture the road as a long line segment, with an eastern endpoint and a western endpoint.) Further, let's suppose that despite the bucolic setting, the residents of all these houses are avid cell phone users. You want to place cell phone base stations at certain points along the road, so that every house is within four miles of one of the base stations. Give an efficient algorithm that achieves this goal, using as few base stations as possible.

Answers

Answer:

Follows are the solution to these question:

Explanation:

A simple gullible algorithm is present. Let h mark the house to the left. Then we put a base station about 4 kilometers to the right. Now delete and repeat all the houses protected by this base station. In this algorithm, they can simply be seen to position baselines at b1, . . , bk as well as other algorithms (which may be an optimum algorithm) at [tex]b'_{1}, \ . . . . . . ,b'_{k'}[/tex]  and so on. (from left to right)   [tex]b_1 \geq b'_{1},\ \ b_2 \geq b'_{2}[/tex] That's why [tex]k \leq k'[/tex].

. Write a function sumLastPart which, only using list library functions (no list comprehension), returns the sum of the last n numbers in the list, where n is the first argument to the function. (Assume that there are always at least n numbers in the list. For this problem and the others, assume that no error checking is necessary unless otherwise specified. But feel free to incorporoate error checking into your definition.) sumLastPart :: Int -> [Int] -> Int

Answers

Answer:

In Python:

def sumLastPart(n,thelist):

   sumlast = 0

   lent = len(thelist)

   lastN = lent - n

   for i in range(lastN,lent):

       sumlast+=thelist[i]

   return sumlast

Explanation:

This defines the function

def sumLastPart(n,thelist):

This initializes the sum to 0

   sumlast = 0

This calculates the length of the list

   lent = len(thelist)

This calculates the index of the last n digit

   lastN = lent - n

This iterates through the list and adds up the last N digits

   for i in range(lastN,lent):

       sumlast+=thelist[i]

This returns the calculated sum

   return sumlast

Other Questions
5. a) Find x. Y 60 8 geometry All you have to do is find the area I have been stuck for 10 mins divergent plate boundary: how do the plate and mantle interact at this type of plate boundary? Steve has 7 biscuits in a tin. There are 3 digestive and 4 chocolate biscuits. Steve takes two biscuits at random from the tin. Work out the probability that he chooses two different types of biscuits. Person 3 bought a brand new car for $26,500. A year later the car had depreciated 19%. How much did the car depreciate?What is the value of the car now? which human activity will most likely contribute to Ozone layer destruction Pls help, i will give brainliest:Consider the graphs which summarize the data on the number of hours per week of television viewing by two groups: 12-17 year-old Girls and 12-17 year-old Boys. Choose all that are correct.The median for the girls is 16.The median for the boys is 22.The interquartile range for the girls is 28The interquartile range for the boys is 16The difference between the medians as a multiple of the IQR is 1/4 Gus applied for a $12,000 loan with an interest rate of 7.3% for 5 years. Use the monthly payment formula to complete the statement. M = M = monthly payment P = principal r = interest rate t = number of years His monthly payment for the loan will be $ , and the total finance charge for the loan will be $ . this is kinda easy but figure out the four digit code its not 5396 12.0 grams of sodium reacts with 5.00 grams of chlorine. What mass of sodium chloride could be produced?Please show work if you can. I have the limiting reactant which is Cl2 (0.0705)I think I did this part correctly but I don't know what to do after. How do you determine the amount of sodium chloride that can be produced? Sarah spent $44 for 4 new T-Shirts. If each T-Shirt is thesame price, how much did eachT-Shirt cost? Please help!! More points!Brainiest answer first who answers all!!Define the following 1. Agglomeration2. Annexation3. Asian Tigers4. Basic Industry5. Break-Of-Bulk6. BRIC Countries7. Brownfield8. Bulk-Gaining Industry9. Bulk-Reducing Industry10. Capital11. Central Place Theory12. Commodity Chain13. Deindustrialization14. Dependency Theory15. Density Gradient16. Economic Base17. Economies of Scale18. Edge City19. Export Processing Zone20. Footloose Industry21. Fordism22. Gentrification23. Gravity Model24. Gross Domestic Product25. Hinterland26. Industrial Revolution27. Infrastructure28. Labor-Intensive29. Least-Cost Theory30. Location Theory31. Maquiladora32. Market Area33. Mass Production34. New International 35. Division of Labor(NIDL)36. Newly Industrialized Country (NIC)37. Nonbasic Industry38. Outsourcing39. Primary Industry40. Range41. Rank-Size Rule42. Raw Materials43. Secondary Industry44. Site Characteristics45.Situation 46. CharacteristicsThreshold What is x in 1/150/1/200x2=x f(x) = 4x +5 when f(x) = 17 i need help can anyone help??? What does the underlined word or phrase mean in the following sentence?"Por supuesto" que s.ForeverBy means ofFinallyOf course Suppose you are an aide to a U.S. Senator who is concerned about the impact of a recently proposed excise tax on the welfare of her constituents. You explained to the Senator that one way of measuring the impact on her constituents is to determine how the tax change affects the level of consumer surplus enjoyed by the constituents. Based on your arguments, you are given the go-ahead to conduct a formal analysis, and obtain the following estimates of demand and supply:Qd=500-5PQs-2P-60(a) What are the equilibrium quantity and equilibrium price? Graph your solution.(b) If a $2 excise tax is levied on this good, what will happen to the equilibrium price and quantity? Show the changes in your graph from part (a).(c) How much tax revenue does the government earn with the $2 tax? During a lab experiment, a student took his resting pulse rate, counting 25 beats in 20 seconds. What was the student's pulse rate in beats per minutes (bpm)? What is factored into Investment when looking at GDP? With import tax, a dealer spent 5250 for importing some cosmetics if the total of the cosmetics was 5000 what was the percentage of import tax