Questions
Q: Provide JavaScript code to change the font family of the first h1 heading in the...

Q: Provide JavaScript code to change the font family of the first h1 heading in the document to Arial?

In: Computer Science

Show the code in matlab to display an ECG graph (I do not want code that...

Show the code in matlab to display an ECG graph
(I do not want code that simply calls the ecg function in matlab but how to write that kind of code)

In: Computer Science

A plant manager is considering buying additional stamping machines to accommodate increasing demand. The alternatives are...

A plant manager is considering buying additional stamping machines to accommodate increasing demand. The alternatives are to buy 1 machine, 2 machines, or 3 machines. The profits realized under each alternative are a function of whether their bid for a recent defense contract is accepted or not. The payoff table below illustrates the profits realized (in $000's) based on the different scenarios faced by the manager.

Alternative           Bid Accepted       Bid Rejected

Buy 1 machine         $10                        $5

Buy 2 machines        $30                        $4

Buy 3 machines        $40                        $2

Refer to the information above. Assume that based on historical bids with the defense contractor, the plant manager believes that there is a 65% chance that the bid will be accepted and a 35% chance that the bid will be rejected.

a. Which alternative should be chosen using the expected monetary value (EMV) criterion?

b. What is the expected value under certainty?

c. What is the expected value under perfect information (EVPI)?

(I need an Excel Spreadsheet)

In: Computer Science

Q: Provide the expression to create an object collection of all objects referenced by the CSS...

Q: Provide the expression to create an object collection of all objects referenced by the CSS selector div#intro p?

In: Computer Science

a) Provide a comprehensive response describing naive Bayes? (b) Explain how naive Bayes is used to...

a) Provide a comprehensive response describing naive Bayes?

(b) Explain how naive Bayes is used to filter spam. Please make sure to explain how this process works.

(c) Explain how naive Bayes is used by insurance companies to detect potential fraud in the claim process.

Need 700 words discussion

Your assignment should include at least five (5) reputable sources, written in APA Style, and 500-to-650-words.

In: Computer Science

Write a Java program to convert decimal (integer) numbers into their octal number (integer) equivalents. The...

Write a Java program to convert decimal (integer) numbers into their octal number (integer) equivalents. The input to the program will be a single non-negative integer number. If the number is less than or equal to 2097151, convert the number to its octal equivalent.

If the number is larger than 2097151, output the phrase “UNABLE TO CONVERT” and quit the program.

The output of your program will always be a 7-digit octal number with no spaces between any of the digits. Some of the leading digits may be 0.

Use a while loop to solve the problem. Do not use strings.

Sample Program Run
Please enter a number between 0 and 2097151 to convert: 160000
Your integer number 160000 is 0470400 in octal.

Please enter a number between 0 and 2097151 to convert: 5000000
UNABLE TO CONVERT

In: Computer Science

Remove the minimum element from the linked list in Java public class LinkedList {      ...

Remove the minimum element from the linked list in Java

public class LinkedList {
  
   // The LinkedList Node class
   private class Node{
      
       int data;
       Node next;
      
       Node(int gdata)
       {
           this.data = gdata;
           this.next = null;
       }
      
   }
  
   // The LinkedList fields
   Node head;
  
   // Constructor
   LinkedList(int gdata)
   {
       this.head = new Node(gdata);
   }
  
   public void Insertend(int gdata)
   {
       Node current = this.head;

       while(current.next!= null)
       {
           current = current.next;
       }
      
       Node newnode = new Node(gdata);
       current.next = newnode;
      
   }
  
   public void Listprint()
   {
       Node current = this.head;

       while(current!= null)
       {
           System.out.print(current.data + " ");
           current = current.next;
       }
       System.out.println();
   }
  
   public void Removemin() {
   // Complete this method to remove the minimum value in a linkedlist
      
      
   }
  
   public static void main(String[] args) {
      
       LinkedList exlist = new LinkedList(8);
      
       exlist.Insertend(1);
       exlist.Insertend(5);
       exlist.Insertend(2);
       exlist.Insertend(7);
       exlist.Insertend(10);
       exlist.Insertend(3);
      
       exlist.Listprint();
       //output: 8 1 5 2 7 10 3
      
       exlist.Removemin();
      
       exlist.Listprint();
       //output should be: 8 5 2 7 10 3
      
      
   }
}

In: Computer Science

Write the MIPS assembly version of this C code: int weird(char[] s, int x) { int...

Write the MIPS assembly version of this C code:

int weird(char[] s, int x)
{
  int i;
  for (i = 0; i < x; i++) { 
    if (s[i] == ‘A’)
    {
        return power(10, i);
    }
  }
  return -1;
}

int power(int base, int i)
{
    int j = 0;
    while (j < base)
    {
        base = base * base;
        j++;
    }
    return base;
}

In: Computer Science

Q1) Given the following sentences: All hounds howl at night. Anyone who has any cats will...

Q1) Given the following sentences:

  1. All hounds howl at night.
  2. Anyone who has any cats will not have any mice.
  3. Light sleepers do not have anything which howls at night.
  4. John has either a cat or a hound.
  5. (Conclusion) If John is a light sleeper, then John does not have any mice.

Part 1:

  1. Translate into propositional logic sentences
  2. Convert the propositional sentences into Conjunctive Normal Form (CNF)
  3. Negate the conclusion
  4. Use resolution to prove the conclusion

Part 2:

  1. Translate into FOL (First Order Logic) sentences
  2. Convert the FOL (First Order Logic) sentences from a into Conjunctive Normal Form (CNF)
  3. Negate the conclusion
  4. Use resolution to prove the conclusion

In: Computer Science

You must change file HelloWorld.java in hello-java so that the tests all pass HelloWorld.java package hw;...

You must change file HelloWorld.java in hello-java so that the tests all pass

HelloWorld.java

package hw;

public class HelloWorld {

  public String getMessage() {
    return "hello world";
  }

  public int getYear() {
    return 2019;
  }
}

Main.java

package hw;

import java.util.Arrays;

public class Main {

  public static void main(final String[] args) {
    System.out.println("args = " + Arrays.asList(args));
    final HelloWorld instance = new HelloWorld();
    System.out.println(instance.getMessage());
    System.out.println(instance.getYear());
    System.out.println("bye for now");
  }
}

TestHelloWorld.java

package hw;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class TestHelloWorld {

  private HelloWorld fixture;

  @Before
  public void setUp() throws Exception {
    fixture = new HelloWorld();
  }

  @After
  public void tearDown() throws Exception {
    fixture = null;
  }

  @Test
  public void getMessage() {
    assertNotNull(fixture);
    assertEquals("hello world", fixture.getMessage());
  }

  @Test
  public void getMessage2() { // this test is broken - fix it!
    assertNull(fixture);
    assertEquals("hello world", fixture.getMessage());
  }

  @Test
  public void getYear() { // this test is OK, fix HelloWorld.java to make it pass!
    assertNotNull(fixture);
    assertEquals(2019, fixture.getYear());
  }
}

In: Computer Science

Write a MATLAB *function* that draws a spiral by using the plot() command to connect-the-dots of...

Write a MATLAB *function* that draws a spiral by using the plot() command to connect-the-dots of a set of points along the spiral's trajectory. The function should have three input arguments: the number of points along the trajectory, the number of rotations of the spiral, and the final radius of the spiral. The function does not need any output arguments. Use nargin to provide default values for the input arguments. The spiral should begin at the origin. At each step (i.e.,going from one point in the spiral to the next), the angle about the origin and the distance from the origin should increase by a constant increment as defined by the function's inputs.

In: Computer Science

(2) Companies like Symantec, McAffee, Trend Micro, Kaspersky, etc. provide enterprise-level malware protection. Choose a major...

(2) Companies like Symantec, McAffee, Trend Micro, Kaspersky, etc. provide enterprise-level malware protection. Choose a major anti-virus company and familiarize yourself with their product line. Using what you learned from your research create an executive presentation of 8-12 PowerPoint slides on the product and on how you would install an enterprise malware solution on a hypothetical network with 50 Windows servers and 2000 Windows 7 computers. Provide sufficient detail about hardware devices and software and where they would be installed. Create a high-level diagram to accompany your proposal that shows the layout of your software. It is not necessary to diagram your complete network, just a high level representation of it. For example, you could represent the 2000 Windows 7 computers with one Icon labeled Windows 7 Workstations (2000). However, if you include a security appliance that provides malware protection, it should be included as a separate icon. Also, indicate location of software components (clients, servers, databases, management tools, etc) on your diagram, as well.

In: Computer Science

EMPLOYEE MANAGEMENT SYSTEM Administration: This entity will consist of details of the people working in the...

EMPLOYEE MANAGEMENT SYSTEM
Administration:
This entity will consist of details of the people working in the administration. It is the head of
all other entity if we create a flow chart of the system. This entity has the following
attributes:
Staff_id: This is the primary key for this particular entity. It will be assigned to each staff
person and will be used to uniquely identify the individual working person.
Name: The name is required for the verification of the person as the documents contained
the name of the person.
Contact: For the immediate communication with the staff persons, there is contact phone
number it will vary from person to person or department.
Email: It is helpful in formal communication and making an announcement to every other
staff person. It will also be helpful for another employee to communicate with staff person
with their, email address.
Department_id: This will give the idea about that the staff person is handling which
department. The department_id will comprise of their job details like designation and
department name.
The administration will hire the employees and decides their salary and make entry
according to that so the system can generate the amount every time it requires to that's they
are in a direct relationship.
Employee:
The employee entity contains all the information about the employees working in the
company. These details will help in managing the employee's interest in the assignment of
the department.
This will enable them to manage the employee data easily. Searching the information will
just a few clicks.
It will have all the necessary attributes required for the employer. The employee entity will
have following attributes:
Employee_id:This will be the primary key for this entity. It will be unique for every employee
hired by the administration. It will help in identifying the particular employee easily. This
gets useful when two employee has a similar name like conditions.
Employee_name: This is required for the verification purpose. Usually on government issued
id cards it has a name as identification. Also, it is easy to remember a name than the id.
Department_id: The department will have a different id for the manager, worker and other
designation so we can find the job profile of the employee. It will also help in getting the
other department information where and what the employee's working is.
Employee_phone: It is good to have employee's contact number to have immediate
communication regarding the work.
Employee_email: It is required when a bank needs to make an announcement. So, they will
select the employee's email and simply broadcast the announcement. It can also be helpful
in verifying the employee's identity online.
Employee_address: In any case, the employee address needed for example sending any
email or documents at the employee's residence. It is also required for verification if the
employee's given personal information is right or wrong.
The employees will be hired by the administration and further, it has a relationship with the
department entity because all the employee will be working in particular department.
Departments:
This entity will help in keeping the track of the job profile of the employee. The departments
are the inner fragments of the company. Each Employee profile will be assigned to one
department in which will have the details about their job. The department entity will have
following attributes:
Department_id: This is the primary key for the table it will help identify each job profil
uniquely in with the department. This will be unique for every designation of departments.
Department_name: It will contain the name of the department to avoid confusion to clear
and avoid the confusion from the id. Usually, the department names are unique themselves
but creating it is a good option that because it uses less storage space than a name.
Head_of_departemnt: It will take the employee id as a value which will define that a
particular person/employee is the head of that department. So, the HOD will be responsible
for all the work done in his/her department.
Employee/Staff: This attribute defines if the person works in administration or as an
employee of the company.
Designation: To know about the designation of the employee like if the employee hold
manager or HOD or any other designation. The department will be assigned to the employee
as well as the administration. The administration will manage the department and
employees.
Salary:
This is the important entity because the purpose of this system is to calculate the salary. This
will have all the information of the employee to calculate the employee salary and generate
the payment slip.
Employee_id: It will take the employee id as value. So later it can be used to identify whose
salary it has stored.
Deduction_id: Every employee will have some deduction in salary based on the different
factors for ex: attendance can be one of them. It will check the deductions based on the
values of particular id before calculation.
Basic: It will hold the basic salary of the employee. Before any deduction or additional
incentive or taxes etc.
HRA(House Rent Allowance): If you are getting House Rent Allowance then it will add that in
the salary and what is the base of calculating HRA etc.
Medical Allowance: If the employee is eligible for the medical allowance then it will add the
amount which is decided by the administration
DA(Dearness Allowance): It you are eligıble tor Dearness Allowance then this attrıbute will
that amount.
TA(Travelling Allowance): If you have travelled for the company work and applied for the
refund then you will get the amount in this attribute and will be added to the final salary.
This entity has the direct relationship with the administration as the salary is actually
calculated by the administration and deduction will be based on the factors which are
present in deduction entity.
Deductions:
This entity will contain the factors on which will be used to deduct the amount from the final
salary of the employee.
Employee_id: This will be the primary key for this entity so that the information can be
uniquely identified for all the employee and also in searching and sorting.
Attendance: It will have the value that in the total working day how many days the employee
has come to work and on the based on a daily basis the salary can be calculated.
Loan: If the employee has taken any loan from the company if yes then the instalment will be
also be deducted from the salary of the employee.
Tax: The taxes for which employee is eligible for it will be automatically deducted from the
salary that could be different from government and personal industry.
The deduction entity has the direct relationship with the salary table so it can make a
decision while calculating the salary. The payroll management will surely decrease the
workload of the employee and increase the speed at the same time.
Question: Draw an ER diagram for requirements:
-weak, strong, attributes, relationships, etc.
Draw a schema Diagram

In: Computer Science

Unit 4: Discussion - Part 1 Question Read the lecture for Chapter 4, and then answer...

Unit 4: Discussion - Part 1

Question

Read the lecture for Chapter 4, and then answer the following:

Think of a brief example where you can use conditional statements and write it in correct Java syntax. You may use if-else-if statements or the switch statement. You may also use the example you wrote in pseudo code for the discussion thread 2 during week 2 and convert it to Java, if you think it is appropriate. Be mindful that we are not talking about homework here. Do not post homework in this or any other discussion thread. As always, show a screen capture of the program running.
After writing your example, please explain if you think your example could also be written in the other conditional statement you did not chose. Explain why you think so, or why not.

In: Computer Science

research analysis of netfix and big data


research analysis of netfix and big data

In: Computer Science