Questions
Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...

Please, i need Unique answer, Use your own words (don't copy and paste).

*Please, don't use handwriting.

Complete the following table related to the CIA triad.

Confidentiality Integrity Availability

Definition

Example of business situation leading to a loss of
Example of threat to

In: Computer Science

Python We say that a pair of positive integers ?,? is special if ? − ?...

Python

We say that a pair of positive integers ?,? is special if ? − ? = 10 and both ? and ? can be represented as a sum of two squares. For example, the pair (18,8) is special since 18 − 8 = 10, 18 = 3^2 + 3^2, and 8 = 2^2 + 2^2. Write a program that prints all special pairs (?,?) with 1 ≤ ?,? ≤ 100.

In: Computer Science

JAVA code - please answer all prompts as apart of the same java program with Polymorphism...

JAVA code - please answer all prompts as apart of the same java program with Polymorphism

Classwork

Part A ☑ Create a class Employee. Employees have a name. Also give Employee a method paycheck() which returns a double. For basic employees, paycheck is always 0 (they just get health insurance). Give the class a parameterized constructor that takes the name;

Add a method reportDeposit. This method prints a report for the employee with the original amount of the paycheck, the amount taken out for taxes (we will do a flat 17%), and the final amount (for basic employees this will just be a lot of 0's but make sure to do the math based on what paycheck returns).

Salaried employees are employed either for 10 or 12 months of the year for some salary. Their paycheck is their salary, divided up into two pays a month for however many months they are employed.

Using inheritance, create a class for this type of employee (more will be added in part B). Don't override reportDeposit. Give a parameterized constructor for name and salary that chains back to the parameterized superclass constructor.

In a main, create an array of employees, and set it up with some of each kind, some with different values. (hint: you've got parameterized constructors...) Loop through the list and call reportDeposit for each employee, also find the employee with the highest paycheck.

Part B

Hourly employees have an hourly wage, and a number of hours they are scheduled to work per week,. One paycheck is based on two weeks of work (they are guaranteed to have the same hours for both weeks). They are paid an extra 5% of their hourly rate for each hour over 40 hours per week they are scheduled.

Adjunct employees may teach up to 18 credits, and are paid $827 per credit, with the total spread across 2 paychecks a month for 4 months.

Add classes for these types of employee.

Add two hourly and two adjunct employees to your array in main. You shouldn't have to change anything else in main.

In: Computer Science

1a .Write a program that perform insertion sort (ascending order) on an input array and print...

1a .Write a program that perform insertion sort (ascending order) on an input array and print the total number of comparisons that have been made. You can implement by using any programming languages such as C/C++. For example, in the case of array B = [ 30 , 10 , 20 , 40 ], there are 4 needed comparisons to perform insertion sort (30 vs 10, 20 vs 30, 20 vs 10, and 40 vs 30).

1b. Write a program that perform insertion sort while printing the value of input array after each step of insertion sort from the leftmost element to the rightmost element. You can implement by using any programming languages such as C/C++, Java, Python, etc. After that, perform test on the given array A.

A= [7,6, 12, 9, 3, 4, 5, 11, 9, 14, 2, 8]

In: Computer Science

Oranges are grown, picked, and then stored in warehouses in Tampa, Miami, and Fresno. These warehouses...

Oranges are grown, picked, and then stored in warehouses in Tampa, Miami, and Fresno. These warehouses supply oranges to markets in New York, Philadelphia, Chicago, and Boston. The following table shows the shipping costs per truckload (in hundreds of dollars), supply, and demand. Because of an agreement between distributors, shipments are prohibited from Miami to Chicago:To (cost, in $100s)From New York Philadelphia Chicago Boston SupplyTampa $ 9 $ 14 $ 12 $ 17 200Miami 11 10 6 10 200Fresno 12 8 15 7 200Demand130 170 100 150Formulate this problem as a linear programming model, and solve it by using the computer

In: Computer Science

Implement the following logic function using 3-to-8 decoder (74138) and any necessary gates. (Hint: Express Q...

Implement the following logic function using 3-to-8 decoder (74138) and any necessary gates. (Hint: Express Q in minterms. Q = AB'C + A'C'+ BC'

In: Computer Science

Write a function lgrep that returns the “lines” within a list that contain a given sublist....

Write a function lgrep that returns the “lines” within a list that contain a given sublist. Use the sublist function implemented in previous exercise to build lgrep.

> (lgrep ’(c d e) ’((a b c d e f g)

(c d c d e)

(a b c d)

(h i c d e k)

(x y z)))

((a b c d e f g) (c d c d e) (h i c d e k))

You may assume that all elements of (all lines of) all argument lists are atoms.

using scheme

In: Computer Science

JAVA PROGRAM 1. Write a program to find the factorial value of any non-negative number entered...

JAVA PROGRAM

1. Write a program to find the factorial value of any non-negative number entered through the keyboard.(method) (Factorial of n: n! = 1*2*3*…*n, 0! = 1.)

2. Write a program that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number. (method)

Please post a screenshot of the codes. Thanks!

In: Computer Science

1) What are firewalls and intrusion detection systems? 2)Why are encryption applications an important security tool?...

1) What are firewalls and intrusion detection systems?

2)Why are encryption applications an important security tool?

3)What kind of budgeting does your job use? What are the pain points that management feels because of this? Where are you seeing the benefit, or the problems, that result, and would another budgeting model work better?

In: Computer Science

Complete function PrintPopcornTime(), with int parameter bagOunces, and void return type. If bagOunces is less than...

Complete function PrintPopcornTime(), with int parameter bagOunces, and void return type. If bagOunces is less than 3, print "Too small". If greater than 10, print "Too large". Otherwise, compute and print 6 * bagOunces followed by " seconds". End with a newline. Example output for ounces = 7:

42 seconds

#include <stdio.h>

void PrintPopcornTime(int bagOunces) {

}

int main(void) {
int userOunces;

scanf("%d", &userOunces);
PrintPopcornTime(userOunces);

return 0;
}

2. Write a function PrintShampooInstructions(), with int parameter numCycles, and void return type. If numCycles is less than 1, print "Too few.". If more than 4, print "Too many.". Else, print "N: Lather and rinse." numCycles times, where N is the cycle number, followed by "Done.". End with a newline. Example output with input 2:

1: Lather and rinse.
2: Lather and rinse.
Done.
 

Hint: Declare and use a loop variable.

#include <stdio.h>

/* Your solution goes here */

int main(void) {
int userCycles;

scanf("%d", &userCycles);
PrintShampooInstructions(userCycles);

return 0;
}

In: Computer Science

please write above 800 -1000 words What is your definition of AI? Please explain. What is...

please write above 800 -1000 words
What is your definition of AI? Please explain.
What is your opinion of AI, is the technology currently available? Why or why not?
Please note at least four AI technologies, explain if they are truly AI or something else. Thoroughly explain your answer.
How is AI perceived as different in various industries and locations? Please explain.

In: Computer Science

#include<stdio.h> #include<stdlib.h> struct listNode{ int data; struct listNode *nextptr; }; typedef struct listNode node; void insert(node*);...

#include<stdio.h>
#include<stdlib.h>

struct listNode{
int data;
struct listNode *nextptr;
};

typedef struct listNode node;

void insert(node*);
void showList(node*);
void printListBackwards(node *);

int main(void)
{
node *list1;
printf("\n Create a sorted list..");
printf("\n Enter values for the first list (-999 to end):");
list1=(node*)malloc(sizeof(node*)); //Allocate memory for the list node
insert(list1); //insert values by calling the function insert
showList(list1); //display values entered by user
printf("\n After recursively reversing the list is :\n");
printListBackwards(list1); //print the values in reverse order using the function
return (0);
}

void insert(node *list)
{
printf("\n Enter data :");
scanf("%d",&list->data);

if(list->data ==-999) //end data entry if -999
{
(list->nextptr);
}
else
{
list->nextptr = (node *)malloc(sizeof(node));
insert(list->nextptr);
}
}
void showList(node *list)
{
node *p;
for (p=list;p->nextptr !=NULL;p=p->nextptr) //loop until the end of list and print values
printf("%d",p->data);
if(list->nextptr ==NULL) //if the list does not have nodes
{
printf("\n The list is empty!");
}
}

void printListBackwards(node *list)
{ if(list->nextptr ==NULL) //if the end of list is encountered
return;
else //if there are nodes in the list,use the function recursively to print the list
{
printListBackwards(list->nextptr);
printf("%d",list->data);
}

}

can you provide a pseudocode for this program

In: Computer Science

Write a program that prompts the user to enter a 3 x 3 matrix of double...

Write a program that prompts the user to enter a 3 x 3 matrix of double values and tests whether it is a positive Markov matrix. There will be two methods which will be called from the main method: public static double [] [] createArray() 1. Creates a 3 by 3 two dimensional array of doubles 2. Prompts the user for values as shown in the sample run 3. Stores the numbers in the array in the order entered 4. Returns the array to the main method public boolean isMarkovMatrix(double [][] matrix) 1. Returns false if any value in the array is negative 2. Prints the sum of each column in the array 3. Returns false if any the sum of any of the columns is not equal to 1.0 4. Otherwise, it returns true. Sample Program running: Enter a 3 x 3 matrix by row 0.15 0.875 0.375 0.55 0.005 0.225 0.30 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is a Markov matrix Enter a 3 x 3 matrix by row -0.2 0.875 0.375 0.75 0.005 0.225 0.45 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is not a Markov matrix A response in Eclipse Java would be much appreciated. Thank you in advance

In: Computer Science

Based on the review of the materials for this week, compare the risks associated with internal...

Based on the review of the materials for this week, compare the risks associated with internal versus external security threats. What are your thoughts on the question of whether internal or external threats pose the biggest problems for organizations? Support your answer with logical commentary and at least one practical example

In: Computer Science

Write a Java program that outputs the output below Student Name: Andrew Johnson Course: Biology 101...

Write a Java program that outputs the output below

Student Name: Andrew Johnson
Course: Biology 101

Quiz Average and percent weight (separated by a space): 87 15
Project Average and percent weight (separated by a space): 92 25
Exam Average and percent weight(separated by a space): 85 40
Final Exam and percent weight (separated by a space): 83 20

Final Grade in Biology 101 for Andrew Johnson is 86.7

The largest average was 92
The smallest average was 83

Thank you for using my grade program!!

In: Computer Science