Questions
Find a news article concerning a hacked website. Post a link, and summarize the article in...

Find a news article concerning a hacked website. Post a link, and summarize the article in your own words. (1-2 paragraphs)

Second question: You are hacking a website or application. Give a brief description of your attack scenario.

In: Computer Science

4.Which utilities can be used to perform remote management of servers? 5. What is the difference...

4.Which utilities can be used to perform remote management of servers?

5. What is the difference between the ifconfig and ifconfig commands?

6. Why should you use SSH over Telnet?

In: Computer Science

C++ program that converts a directed graph data from a user into a corresponding adjacency list...

C++ program that converts a directed graph data from a user into a corresponding adjacency list format. First it will read an input graph data from a user first, after it will convert it to the adjacency matrix format. Assume that the maximum number of vertices in the input graph is less than or equal to 50.

The Sample Input 1

3
6
0 1
1 0
1 2
2 1
2 0
0 2

Output 1

0->1->2
1->0->2
2->0->1

The Sample Input 2

3
0

Output 3

0
1
2

In: Computer Science

Updating the following Java program below, I need to continue to take input for every employee...

Updating the following Java program below, I need to continue to take input for every employee in a company, and display their information until a sentinel value is entered that exits the loop and ends the program

import java.util.Scanner;
public class SalaryCalc
{
double Rpay=0, Opay=0;
void calPay(double hours, double rate)
{
if(hours<=40)
{
Rpay = hours * rate;
Opay = 0;
}
else
{
double Rhr,Ohr;
Rhr = 40;
Ohr = hours-Rhr;
Rpay = Rhr * rate;
Opay = Ohr * (1.5*rate);
}
}
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String name;
int shift = 0;
Double rate, hours;
System.out.println("Pay Calculator");
System.out.println("Enter Your Name");
name=sc.next();
System.out.println("Enter Your Shift, Enter 0 for Day, Enter1 for Night");
System.out.println("0=Day, 1= Night");
System.out.println("Enter Number of Hours Worked");
hours=sc.nextDouble();
System.out.println("Enter Hourly Pay");
rate=sc.nextDouble();
SalaryCalc c= new SalaryCalc();
c.calPay(hours,rate);
Double Tpay= c.Rpay+ c.Opay;
System.out.println();
System.out.println("Calculate Pay");
System.out.println("Employee Name: "+name);
System.out.println("Employee Regular Pay: "+c.Rpay);
System.out.println("Employee Overtime Pay: "+c.Opay);
System.out.println("Employee Total Pay: "+Tpay);
if(shift==0)
{
System.out.println("Employee PayPeriod is Friday");
}
else
{
System.out.println("Employee PayPeriod is Saturday");
}
}
}

In: Computer Science

C# programming Write a number guessing game using System.Collections.Generic.Dictionary. Generate 10 distinct random numbers in the...

C# programming

Write a number guessing game using System.Collections.Generic.Dictionary.

  • Generate 10 distinct random numbers in the range of 1 to 20. Each random number is associated with a prize money (from 1 to 10000). Use a Dictionary to store the mapping between the random number and the prize money.
  • Ask user for two distinct numbers, a and b, both from 1 to 20; if a and b are not distinct, or out of range, quit the program
  • Lookup the prize money from both numbers and print out the sum via "You earned XXXX in total!". If the table does not contain the number, assume the prize money is 0.

e.g. Suppose we generate the following random numbers and penalty money:

1

3

4

6

7

11

12

13

19

20

333

234

12

500

1569

9900

23

2

588

23

If a user guess 5 and 3, we output "You earned 234 in total!"

If a user guess 1 and 13, we output "You earned 335 in total!"

If a user guess 1 and 1, quit

* Please use seeded random generation to help you debug your code, i.e. "Random rand = new Random(0);"

**You may have the following properties/methods useful: Count, ContainsKey, Add

Please copy and paste the final working program here:

In: Computer Science

Write a program in structured text that tells a butterfly valve to open for 10seconds and...

Write a program in structured text that tells a butterfly valve to open for 10seconds and close thereafter.

In: Computer Science

Create a new project called: ToDoList Purpose: To demonstrate your ability to use a linear structure  to...

Create a new project
called:
ToDoList

Purpose:

To demonstrate your ability to use a linear structure  to insert, contain, change, and remove data elements (Strings). Also to show that you can perform the detailed work in functions with the main function containing only the major program logic.

Specifications:

Create a new project called ToDoList and save it in the appropriate Lab folder.

Step 1: To begin the main program, use an ArrayList or LinkedList, to declare a structure to hold String values. Add at least five (5) tasks to the structure(this may be done in main or in a separate function (preferred).

Add a function to print a numbered list of the tasks (numbering must start at 1). The list should display all the elements with the assigned number (1, 2, 3, … n). The numbers are not permanently associated with a tasks but are reassigned each time the list is displayed. The listed number should identify the current position the task occupies in the list.

Step 2: Provide a simple vertical menu to allow the user the option to add,  change, or  delete a task from the list. Also include the option to terminate the program. The menu options should be listed vertically. The menu display and its selection validation may be done as a separate class in its own file or via a function called by the main program.

Step 3: In the main program logic, use the menu selection to determine the next operation.

Hint: using a switch to handle the menu options provides a neat and orderly structure in the main function.

When the user opts to add a task , add it to the end of the list.

When the user opts to change or delete a task, require the user to supply the assigned task number. If the task number entered is not in the list, display an error, pause the screen to allow the user to see the error, and end the operation.

When the user opts to change a task, obtain the new task description and replace the old description with the new.

When the user opts to delete a task remove it.

After each operation (with or without an error), clear the screen and redisplay the list followed by the menu.

Note: each of the operations (add, change, delete) should be coded in its own function and called from the main function.

Provide a main function loop (while or do...while) to allow the user to continue processing until the user selects the terminate menu option.

Step 4: Using the JAVADOC format, document the program and every function (main is a function, not a constructor) as displayed in the sample programs found in the downloaded files for Self Study Activity. Completeness, accuracy, and spelling count.

In: Computer Science

Assignment Specifications Background You are recently employed as a business analyst at Adam & Co, a...

Assignment Specifications Background You are recently employed as a business analyst at Adam & Co, a Perth-based wholesaler of industrial supplies. Adam & Co sources its inventories from manufacturers in China, Thailand and Vietnam. The company has a centralised accounting system with networked terminals at different locations. Adam & Co’s expenditure cycle procedures are described as follow:

Purchases System

The process begins when the purchasing clerk checks the inventory subsidiary ledger at his/her computer terminal each morning. When the quantity of an item is deemed to be too low, the clerk selects a vendor from the valid vendor file and prepares a digital purchase order. The clerk prints two hard copies: one copy is sent to the vendor, and the other is filed in the purchasing department. Digital purchase order record is added to the purchase order file. When the goods arrive in the receiving department, the receiving clerk inspects them and reconciles the items against the information in the digital purchase order and the packing slip. The clerk then manually prepares two hard copies of the receiving reports. One of these accompanies the goods to the inventory warehouse, where the clerks shelves the goods and updates the inventory subsidiary ledger from his/her computer terminal. The clerk then files the receiving report in the department. The other copy of the receiving report is sent to the accounts payable department, where the accounts payable clerk files it until the supplier’s invoice arrives. When the accounts payable clerk receives the invoice he pull the receiving report from the temporary file, prints a hard copy of the digital purchase order, and reconcilesthe three documents. At this time, the clerk updates the digital accounts payable subsidiary ledger, the accounts payable control account and the inventory control account in the general ledger from his terminal. The clerk then sends the invoice, receiving report, and the purchase order copy to the cash disbursement department.

Cash Disbursements System

Upon the receipt of the documents from the accounts payable department, the cash disbursements clerk files the documents until their payment due date. On the due date, the clerk prepares a cheque for the invoiced account, when is sent to the treasurer who sign it and mail the cheque to the vendor. The cash disbursements clerk then updates the cheque register, accounts payable subsidiary ledger, and the accounts payable control account from his/her computer terminal. Finally, the receiving clerk files the invoice, purchase order copy, receiving report, and cheque copy in the department.

Payroll System

Adam & Co’s employees record their hours worked on time cards every day. Their supervisors review the time cards for correctness and submit them to the payroll department at the end of each week. Using a computer terminal connected to the central payroll system, which is located in the data processing department, the payroll clerk inputs the time card data, prints hard copies of the pay cheques, print two copies of the payroll register, and posts to digital employee records. The payroll clerk files the time cards in the payroll department and sends the employee pay cheques to the various supervisors for review and distribution to their respective department employees. The payroll clerk then sends one copy of the payroll register to the accounts payable department, and files the other with the time cards in the payroll department. Page 3 of 5 HA2042 Accounting Information Systems Individual Assignment The accounts payable clerk reviews the payroll register and manually prepares a disbursement voucher. The clerk sends the voucher and the payroll register to the general ledger department. The accounts payable clerk then writes a cheque for the entire payroll and deposits it in the imprest account at the bank. Finally the clerk files a copy of the cheque in the accounts payable department. Once the general ledger clerk receives the voucher and payroll register, the clerk posts to the general ledger from the department computer terminal and files the voucher and payroll register in the department.

required

Description of internal control weakness in each system and risks associated with the identified weakness??

In: Computer Science

One example each for the below question. Please don't provide the differences as its already available....

One example each for the below question. Please don't provide the differences as its already available.

What is the fundamental difference between a fat-client and thin-client approach to client–server systems architectures? Give an example for each.

In: Computer Science

Describe the Pipeline branch handling techniques and compare their impacts on the virtual memory, instruction cycle,...

Describe the Pipeline branch handling techniques and compare their impacts on the virtual memory, instruction cycle, and temporal locality concepts for international scientific research laboratory operations by giving definitions, examples, justifications, etc.

In: Computer Science

I am getting the following error: SalaryCalc.java:41: error: variable shift might not have been initialized if(shift==0)...

I am getting the following error: SalaryCalc.java:41: error: variable shift might not have been initialized if(shift==0) ^ 1 error

Please FIX

This is my Java code:

import java.util.Scanner;
public class SalaryCalc
{
double Rpay=0, Opay=0;
void calPay(double hours, double rate){
if(hours<=40){
Rpay = hours * rate;
Opay = 0;
}
else {
double Rhr,Ohr;
Rhr = 40;
Ohr = hours-Rhr;
Rpay = Rhr * rate;
Opay = Ohr * (1.5*rate);
}
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String name;
int shift;
Double rate, hours;
System.out.println("Pay Calculator");
System.out.println("Enter Your Name");
name=sc.next();
System.out.println("Enter Your Shift, Enter 0 for Day, Enter1 for Night");
System.out.println("0=Day, 1= Night");
System.out.println("Enter Number of Hours Worked");
hours=sc.nextDouble();
System.out.println("Enter Hourly Pay");
rate=sc.nextDouble();
SalaryCalc c= new SalaryCalc();
c.calPay(hours,rate);
Double Tpay= c.Rpay+ c.Opay;
System.out.println();
System.out.println("Calculate Pay");
System.out.println("Employee Name: "+name);
System.out.println("Employee Regular Pay: "+c.Rpay);
System.out.println("Employee Overtime Pay: "+c.Opay);
System.out.println("Employee Total Pay: "+Tpay);
if(shift==0)
{
System.out.println("Employee PayPeriod is Friday");
}
else{
System.out.println("Employee PayPeriod is Saturday");
}
}

}

In: Computer Science

In C++ for netbeans. Use a 1 dimensional array object to create a 2 dimensional table...

In C++ for netbeans.

Use a 1 dimensional array object to create a 2 dimensional table object. Then modify to create a triangular table.

Objective -> create an array of dynamic objects of RowAray inside Table i.e. an Aggregate. See Specs RowAray.h, Table.h Then create a triangular table, i.e. Triangle.

Fill each cell with random 2 digit integers. The example Table has 8 columns of RowAray objects each filled with 6 rows of random 2 digit numbers.

Then create a triangular table using the concept of the original table.

Complete the class implementations RowAray.cpp, Table,cpp, and Triangle.cpp use the driver program, obtain similar results.

https://github.com/ml1150258/2019_Fall_CSC-CIS_17c/tree/master/Hmwk/Review1_CSC17c_Object_Array

When complete for #rows=#cols, then create a version 2 that does a random number of cols per row with sorted column size output like the first assignment for the Triangular Matrix.

We will augment this assignment later and progress to templates.

In: Computer Science

For this assignment, pretend you have been hired by a school district to create an application...

For this assignment, pretend you have been hired by a school district to create an application enabling access to educational videos freely available on the Internet.

For examples of places where these videos are available, check out this page:

https://www.refseek.com/directory/educational_videos.html (Links to an external site.).

For this assignment, you are responsible for developing a database schema (both conceptual and physical) to support this application. The schema must support the following application features:

  1. It should be possible to efficiently search the application for videos, filtering on the following characteristics:
    • Title (required)
    • Keywords (note that a video may have multiple keywords)
    • Length of Video (required)
    • Appropriate Grade Level (optional)
    • Video Source (i.e. which of the sites referenced on the page above houses the video. required.)
  2. It should be possible for teachers to comment on videos. Each comment should have the following fields:
    • Timestamp (required)
    • Name of teacher (optional)
    • Rating (1 to 5 stars, optional)
    • Text of comment (required)

The submission for this assignment should include the following artifacts:

  • An entity-relationship diagram for the conceptual schema. You can do this on paper or whiteboard and submit a photograph, or do it using diagramming software and submit a screen shot or PDF. (Please do not submit a file in the diagramming software's native format.)
  • A physical schema in the form of SQL CREATE TABLE statements. Please submit the SQL and not the database file (or files) itself.
  • SQL INSERT statements creating at least 3 sample video records, each of which should have at least 2 keywords. Note that you will need to insert into multiple tables for each record if the assignment was done correctly.

This assignment can be completed adequately using as few as four tables. Your schema may end up with more tables and that is fine, but if you end up with more than 7-8 tables there is a good chance you are overthinking things.

In: Computer Science

Please explain answer and show steps if possible A new network is being designed for your...

Please explain answer and show steps if possible

A new network is being designed for your company, Acme, Inc. If you use a Class C IP network, which subnet masks will provide one usable subnet per department while allowing enough usable host addresses for each department specified in the table? (Choose three)

Department

Number of Users

Corporate

60

Customer Support

62

Financial

25

HR

5

Engineering

4

  1. 255.255.255.0
  2. 255.255.255.128
  3. 255.255.255.192
  4. 255.255.255.224
  5. 255.255.255.240
  6. 255.255.255.248
  7. 255.255.255.252

The network address of 172.16.0.0/20 provides how many subnets and hosts?

  1. 7 subnets, 30 hosts each
  2. 16 subnets, 8,190 hosts each
  3. 16 subnets, 4,094 hosts each
  4. 7 subnets, 2,046 hosts each

You need to configure a server that is on the subnet 192.168.19.24/29. The router has the last available host address. Which of the following should you assign to the server?

  1. 192.168.19.0 255.255.255.0
  2. 192.168.19.33 255.255.255.240
  3. 192.168.19.26 255.255.255.248
  4. 192.168.19.30 255.255.255.248

On a VLSM network, which mask should you use on point-to-point WAN links to reduce the waste of IP addresses?

  1. /27
  2. /30
  3. /28
  4. /29

In: Computer Science

please debug this so that it will compiler: C# // Uses PrintWebAddress method three times using...

please debug this so that it will compiler: C#

// Uses PrintWebAddress method three times
using System;
public class DebugSix2
{
   public void Main()
   {
      PrintWebAddress();
      Console.WriteLine("Shop at Shopper's World");
      PrintWebAddresses();
      Console.WriteLine("The best bargains from around the world");
      PrintWebAddress;
   }
   public void PrintWebAddress()
   {
      Console.WriteLine(------------------------------");
      Console.WriteLine(Visit us on the web at:");
      Console.WriteLine(www.shoppersworldbargains.com");
      Console.WriteLine(******************************");
   }
}

In: Computer Science