Questions
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

As we enter the systems integration selection phase, we must select the technical integration framework, and...

As we enter the systems integration selection phase, we must select the technical integration framework, and describe and illustrate our systems integration architecture. For this assignment, share how you think integration frameworks typical to the systems integration selection phase are best used to represent an integration of your system components.

In: Computer Science

Unit 4: Discussion - Part 2 No unread replies.No replies. Question Read the lecture for Chapter...

Unit 4: Discussion - Part 2

No unread replies.No replies.

Question

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

This week covered the many different types of loops in Java: while, do, and for. Think of a brief example where you can use loops and write it in correct Java syntax. You may use the loop 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. You should show at least 2 of the 3 different types of Java loops in your posting. You may incorporate both kind of loops in the same example, or alternatively, show how the same example can be written using two different kinds of loops. Try to keep your example short, so others can follow it easily. Also, do not forget to show screen captures of your programs running.

In: Computer Science

C-Language *Calculates the user's age in seconds. *Estimate the number of times the person has sneezed...

C-Language

*Calculates the user's age in seconds.

*Estimate the number of times the person has sneezed in his/her lifetime (research on the Internet to obtain a daily estimate).

*Estimates the number of calories that the person has expended in his/her lifetime (research on the Internet to obtain a daily estimate).

*Also calculate the number of sandwiches (or other common food item) that equals that number of calories. Be creative: Pick other health-related statistic. Try searching the Internet to determine how to calculate that data, and create a program to perform that calculation. The program can ask the user to enter any information needed to perform the calculation.

Code template: C-Language

#include <stdio.h>
int main(void) {
   int userAgeYears;
   int userAgeDays;
   int userAgeMinutes;
   int totalHeartbeats;
   int avgBeatsPerMinute = 72;
   
   printf("Enter your age in years: ");
   scanf("%d", &userAgeYears);
   
   userAgeDays = userAgeYears * 365;               // Calculate days without leap years
   userAgeDays = userAgeDays + (userAgeYears / 4); // Add days for leap years
   
   printf("You are %d days old.\n", userAgeDays);
   
   userAgeMinutes = userAgeDays * 24 * 60;         // 24 hours/day, 60 minutes/hour
   printf("You are %d minutes old.\n", userAgeMinutes);   

   totalHeartbeats = userAgeMinutes * avgBeatsPerMinute;
   printf("Your heart has beat %d times.\n", totalHeartbeats);

   return 0;
}

In: Computer Science

Which of the following are used as tools for both the organization and retrieval of information?...

Which of the following are used as tools for both the organization and retrieval of information?

This is a multiple answer question. Select as many as are necessary.

A. Thesauri

B. Google

C. Concepts

D.Boolean

E.Classifications

F.Ontologies

Which of the following are key elements of knowledge organization? Please refer to chapter 4 of the Smiraglia. This is a multiple select question.

A. Computers

B.Bibliographic control

C.Lists

D.Social confluence

E.The Antikythera mechanism

Which process guides user research?

A. Parallel design

B. Waterfall model

C. Screening

D. User-centered design

In: Computer Science

Write a C++ program to input 10 scores (range from 0-100), calculate the average, then display...

Write a C++ program to input 10 scores (range from 0-100), calculate the average, then display the student's name, and a letter grade such as A, B, C, D, or F. It shall have a Student class with necessary private data members and constructor and public methods, such as getName, getGrade, calcScore, convertToGrade, etc. Try to create a Student object in main(), then invoke its methods to perform the tasks.

In: Computer Science

You have been given the following specifications for a simple database about the requests for software...

You have been given the following specifications for a simple database about the requests for software that staff members make for their units (note that primary keys are shown underlined, foreign keys in bold). You should run your SQL to demonstrate that it works correctly, and paste in the statements used plus the output from Oracle.

LAB (RoomNo, Capacity)

SOFTWARE (SoftwareID, SoftwareName, Version)

REQUEST (SoftwareID, RoomNo, RequestDate, TeachingPeriod, Progress)

Based on the table specifications provided, answer the following questions.

a. Give the SQL to create the LAB and SOFTWARE tables. Choose appropriate data types. None of the attributes should be allowed to be null. Include the primary key constraints.

b. Give the SQL to create the REQUEST table. Use appropriate data types, and include the primary key and foreign key constraints. Referential integrity should be set such that if a lab is deleted from the database, any requests that exist for that lab are also deleted.

c. Give the SQL to add a record to each of the tables: LAB, SOFTWARE and REQUEST. Make up your own data (you may wish to add lab 350.2.006 to the LAB table for testing in part (e) later).

d. Give the SQL to create a constraint to the REQUEST table to restrict the possible values of Progress to the following 5: Requested, Installed, Function Testing, User Acceptance Testing, and Deployed.

e. Give the SQL to record the fact that the capacity of lab 350.2.006 has increased by 5.

In: Computer Science

This question demonstrates the use of inheritance and polymorphism. Design a Ship class that has the...

This question demonstrates the use of inheritance and polymorphism.
Design a Ship class that has the following members:
• A field for the name of the ship (a string).
• A field for the year that the ship was built (a string).
• A constructor and appropriate accessors and mutators.
• A toString method that overrides the toString method in the Object class. The Ship class
toString method should display the ship’s name and the year it was built.
Design a CruiseShip class that extends the Ship class. The CruiseShip class should have the following members:
• A field for the maximum number of passengers (an int).
• A constructor and appropriate accessors and mutators.
• A toString method that overrides the toString method in the base class. The CruiseShip class’s
toString method should display only the ship’s name and the maximum number of passengers.
Design a CargoShip class that extends the Ship class. The CargoShip class should have the following members:
• A field for the cargo capacity in tonnage (an int).
• A constructor and appropriate accessors and mutators.
• A toString method that overrides the toString method in the base class. The CargoShip class’s
toString method should display only the ship’s name and the ship’s cargo capacity.
Demonstrate the classes in a program that has a Ship array. Assign various Ship, CruiseShip, and CargoShip objects to the array elements. The program should then step through the array and print each object.

PLEASE DO THE QUESTION IN A SIMPLER WAY

In: Computer Science

Q1: Describe the differences between structured and unstructured data. Explain structured data in big data environment...

Q1: Describe the differences between structured and unstructured data. Explain structured data in big data environment and give one (1) example of machine generated structured data.

Please, Please, Please and Please…

1. I need new and unique answers, please. (Use your own words, don't copy and paste, even when you answer like theses answers before.)

2. Please Use your keyboard to answer my Questions. (Don't use handwriting)

3. Please and please i need a good and a perfect answers.

Thank you..

In: Computer Science