Questions
Programming 101 teaches all students that security is the crucial part of any system.

Read the following prompt. Then, create a Word document (.docx) and, following the details provided in the prompt, respond appropriately.

Programming 101 teaches all students that security is the crucial part of any system. You must secure your data! It appears that some people working for the State of Oklahoma forgot this important lesson when tens of thousands of Oklahoma residents had their sensitive data-including numbers-posted on the Internet for the general public to access. You have probably heard this type of report before, but have you heard that the error went unnoticed for three years? A programmer reported the problem, explaining how he could easily change the page his browser was pointing to and grab the entire database for the State of Oklahoma. Also, because of the programming, malicious users could easily tamper with the database by changing data or adding fictitious data. If you are still thinking that isn’t such a big deal, it gets worse. The website also posted the Sexual and Violent Offender’s Registry. Yes, the Department of Corrections employee data were also available for the general public to review. Conduct research on similar breaches and address each of the following questions, citating all sources:

Why is it important to secure data?

What can happen if someone accesses your customer database?

What could happen if someone changes the information in your customer database and adds fictitious data?

Who should be held responsible for the State of Oklahoma data breech? Why?

What are the business risks associated with database security?

In: Operations Management

1. A travel agency would like to track the destination of each flight. Given the following...

1.

A travel agency would like to track the destination of each flight. Given the following business rule, what constraint(s) can you apply to the flight table, given there is also a destination table?

"A flight must be associated with a destination".

Question 1 options:

Referential integrity

Check constraint

Nullability

Default constraint

2.

Constraint applied to a one-to-many relationship when a referenced record (on the 1 side) is deleted, then the referencing records (on the Many side) should also be deleted.

Question 2 options:

Set-to-Null on Delete

Set-to-Default on Delete

Restrict Delete

Cascade Delete

3.

Which of the following is the most appropriate data type for a column named "State" that stores abbreviated names of the states in USA like "TN", "VA" etc.

Question 3 options:

CHAR(3)

VARCHAR2(2)

VARCHAR2(3)

CHAR(2)

4.

How can database performance be improved without changing the logical design of the database? Check all that apply.

Question 4 options:

Combining tables that are in 1:1 relationships

Adding indexes & views

Horizontal Partitioning

Denormalization

Vertical Partitioning

5.

Which of the following statements best describe an index?

Question 5 options:

A mechanism for splitting a table into smaller ones

A database construct that provides direct access to specific fields in a table thus speeding up queries

A database construct that stores the values of all the attributes in a table

A mechanism for improving the design or structure of the database

In: Computer Science

Module 2 Course Work 1. Read Pages 12-30. 2. Use the week 1 video's and this...

Module 2 Course Work

1. Read Pages 12-30.
2. Use the week 1 video's and this week's reading to complete Lab 1.

Lab 1

This week’s assignment must be done using Microsoft Access.

Please use this assignment as a rubric.

Cross-off each step as you complete it.

  1. Create a new Access Database. Name the database using your name.

  2. Create a table called Address.

  3. Within the Address table create the following fields:

  4. FirstName
  5. LastName

  6. StreetAddress

  7. City

  8. State

  9. Zipcode

  10. Telephone
  11. Please note:
    (Database table and field names should never contain spaces)

  12. Default data should be text.

  13. Primary Key is the first and last name.

  14. (Please research how to create 2 primary keys in a table.)
  15. Create another table named Event.

  16. In the Event table create one field named EventName.

  17. The data entered in the EventName field should be text data.
    Primary Key is EventName.
  1. Create another table named Price

  2. In the Price table create one field named Package.

  3. Primary key is Package.

  4. Create another field named Amount.

  5. Create a third field named Discount.

  6. Insert 5 records in the address table – make up the data.

  7. Insert the name of five holidays in the Event table.

  8. Do not insert any records into the Price table.
  1. Save your database with your firstnamelastname (no spaces).

  2. Upload this database by the deadline. See below

In: Computer Science

Create a database to hold a collection of numbers to be searched and sorted: 1) Create...

Create a database to hold a collection of numbers to be searched and sorted:

1) Create a main class and a database class

2) Collect 5 random numbers from the user in the main class and store in an array. (not in ascending or descending order)

3) Create an instance of the database class in your main class and store the numbers array in the database using its constructor.

4) In the Database class, create a method that performs a bubble sort and returns a sorted array of the data (ascending and descending). Call this method from the main class and print the result to the screen.

5) In the Database class, create methods that each return the min, average, and max respectively. Call each of them from the main class and print the result to the screen.

6) In the Database class, create a method that searches for a value in the array using a binary search and returns the index of that value. Call this method from the main class and print the result to the screen.

BubbleSort and Binary Search Code:

{

public static void main(String args[])

{

SortExample ob = new SortExample();

int[] arr = {64, 34, 25, 12, 22, 11, 90};

ob.bubbleSort(arr);

System.out.println("Sorted array");

ob.printArray(arr);

int key = 22;

int index = ob.BinarySearch(arr, key);

System.out.println("\n" + key + " is at index: " + index);

}

void bubbleSort(int[] arr)

{

int n = arr.length;

for (int i = 0; i < n-1; i++)

for (int j = 0; j < n-i-1; j++)

if (arr[j] > arr[j+1])

{

// swap temp and arr[i]

int temp = arr[j];

arr[j] = arr[j+1];

arr[j+1] = temp;

}

}

/* Prints the array */

void printArray(int arr[])

{

int n = arr.length;

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

System.out.print(arr[i] + " ");

System.out.println();

}

int BinarySearch(int[] arr, int key)

{

int mid = 0;

int low = 0;

int high = arr.length - 1;

while (high >= low)

{

mid = (high + low) / 2;

if (arr[mid] < key) {

low = mid + 1;

}

else if (arr[mid] > key) {

high = mid - 1;

}

else {

return mid;

}

}

return -1;

}

}

In: Computer Science

14.19. Suppose that we have the following requirements for a university database that is used to...

14.19. Suppose that we have the following requirements for a university database
that is used to keep track of students’ transcripts:
a. The university keeps track of each student’s name (Sname), student number (Snum), Social Security number (Ssn), current address (Sc_addr) and phone (Sc_phone), permanent address (Sp_addr) and phone (Sp_phone), birth date (Bdate), sex (Sex), class (Class) (‘freshman’, ‘sophomore’, … , ‘graduate’), major department (Major_code), minor department (Minor_code) (if any), and degree program (Prog) (‘b.a.’, ‘b.s.’, … , ‘ph.d.’). Both Ssn and student number have unique values for each student.
b. Each department is described by a name (Dname), department code (Dcode), office number (Doffice), office phone (Dphone), and college
(Dcollege). Both name and code have unique values for each department.
c. Each course has a course name (Cname), description (Cdesc), cours number (Cnum), number of semester hours (Credit), level (Level), and offering department (Cdept). The course number is unique for each course.

d. Each section has an instructor (Iname), semester (Semester), year (Year), course (Sec_course), and section number (Sec_num). The section number
distinguishes different sections of the same course that are taught during the same semester/year; its values are 1, 2, 3, … , up to the total number of sections taught during each semester.
e. A grade record refers to a student (Ssn), a particular section, and a grade (Grade).
Design a relational database schema for this database application. First show all the functional dependencies that should hold among the attributes. Then design relation schemas for the database that are each in 3NF or BCNF. Specify the key attributes of each relation. Note any unspecified requirements, and make appropriate assumptions to render the specification complete.

Using your DBMS, build this database and populate it with several entities. (Use your imagination)

Using your DBMS, build this database and populate it with several entities. (Use your imagination)

Using your DBMS, build this database and populate it with several entities. (Use your imagination)

Please help me with the set up SQL. thank you

In: Computer Science

3. Counting Services Inc. has the following portfolio of trading equity securities at 12/31/18. All securities...

3. Counting Services Inc. has the following portfolio of trading equity securities at 12/31/18. All securities were purchased during 2018.

Symbol # shares Total Cost Market Value

AAPL 1000 $105,000 $125

BMX 2000 $47,000 $51

CAT 1000 $100,000 $105

GNC 3000 $64,000 $21

Total   $316,000

  • Prepare the adjustment necessary at 12/31/18.

  • On February 12, 2019, Counting Services sells 1,000 shares of AAPL for $125,000. Prepare the journal entry.

  • The total cost of the three remaining securities is $211,000 and the market value is (see below) at March 31, 2019. Prepare the adjusting entry.

AAPL

BMX

CAT

GNC

$135

$55

$99

$24

In: Accounting

Value of a Statistical Life (VSL). (a) Describe VSL in terms that a non-economist can understand....

Value of a Statistical Life (VSL). (a) Describe VSL in terms that a non-economist can understand. (b) Lavetti (2017) studies the wage-risk tradeoff for one of the riskiest professions in the United States, crab fishing in Alaska. The riskiness of crab fishing is driven mainly by the season and weather conditions. Lavetti collects data on the weather conditions of specific fishing trips, and the wages paid to the crew. He then runs a regression of the wage on the expected fatality rate for each trip and finds that an increase in one fatality per 1000 full time workers per year increases the mean hourly wage by $2.10. Calculate the VSL implied by this estimate, assuming that the number of hours a full time worker works in a year is 2000. (c) Does this number seem high or low to you? Briefly discuss why this might be the case.

In: Economics

Interview Notes Christopher and his wife Amanda have lived in the United States since 2012 and...

Interview Notes
  • Christopher and his wife Amanda have lived in the United States since 2012 and have Individual Taxpayer Identification Numbers (ITINs).
  • Christopher is 45 and Amanda is 40. They have been married since 2000. They both worked in 2018 and their combined wages for the year were $40,000.
  • They have one child, Jennifer, who is 3 years old and lived with them all year. Jennifer is a U.S. citizen and has a valid Social Security number.
  • In order for them to work, they paid $5,000 in daycare for Jennifer. The statement from the daycare provider includes the provider's name, address, valid Employer Identification Number, and the amount paid for Jennifer's care.
  • Christopher and Amanda provided all the support for Jennifer and all the costs of keeping up their home.
7. Christopher and Amanda can claim Jennifer as a qualifying child for the earned income credit (EIC).
True
False
Interview Notes
  • Christopher and his wife Amanda have lived in the United States since 2012 and have Individual Taxpayer Identification Numbers (ITINs).
  • Christopher is 45 and Amanda is 40. They have been married since 2000. They both worked in 2018 and their combined wages for the year were $40,000.
  • They have one child, Jennifer, who is 3 years old and lived with them all year. Jennifer is a U.S. citizen and has a valid Social Security number.
  • In order for them to work, they paid $5,000 in daycare for Jennifer. The statement from the daycare provider includes the provider's name, address, valid Employer Identification Number, and the amount paid for Jennifer's care.
  • Christopher and Amanda provided all the support for Jennifer and all the costs of keeping up their home.
8. Jennifer is a qualifying child for the child tax credit.
True
False

In: Accounting

Bigg company is evaluation two projects for next year’s capital budgeting. The after-tax cash flow ($)...

Bigg company is evaluation two projects for next year’s capital budgeting. The after-tax cash flow ($) (including depreciation) are following:

Project A                              Project B

Year 0    -7500 -17500

Year 1    2000                                       5600

Year 2    2000                                       5600

Year 3    2000                                       5600

Year 4    2000                                       5600

Year 5    2000                                       5600

Year 6    4000                                       9000

If company’s WACC is 13%, find NPV, IRR, Payback and discount payback for each project. If the projects are mutually exclusive what is your recommendation to the company.(show working please)

In: Finance

Exp19_Access_Ch02_Capstone - International Foodies 1.0 Project Description: International Foodies is an importer of exotic foods from...

Exp19_Access_Ch02_Capstone - International Foodies 1.0

Project Description:

International Foodies is an importer of exotic foods from all over the world. You landed a summer internship with the company and discovered that their product lists and the suppliers they buy from are stored in Excel workbooks. You offer to help by using your newly gained knowledge of Access to create a relational database for them. You will begin by importing the workbooks from Excel into a new Access database. Your manager mentions that she would also like a table that specifies food categories so that you can relate the products you sell to specific categories in the database. You will create a table from scratch to track categories, create relationships between the tables, and create some baseline queries.

Steps to Perform:

Step

Instructions

Points Possible

1

Start Access. Open the downloaded Access file named Exp19_Access_Ch2_Cap_Foodies. Grader has automatically added your last name to the beginning of the filename. Save the file to the location where you are storing your files.

0

2

You will examine the data in the downloaded Excel worksheets to determine which fields will become the primary keys in each table and which fields will become the foreign keys so that you can join them in the database.

Open the Suppliers.xlsx Excel workbook, examine the data, and close the workbook. Open the Products.xlsx Excel workbook, examine the data, and close the workbook.

You will import two Excel workbooks that contain supplier and product information into the database.

Click the External Data tab, click New Data Source, point to From File in the Import & Link group, and then select Excel. Navigate to and select the Suppliers.xlsx workbook to be imported as a new table in the current database. Select First Row Contains Column Headings. Set the SupplierID field Indexed option to Yes (No Duplicates). Select SupplierID as the primary key when prompted and accept the table name Suppliers. Do not save the import steps.

10

3

Import the Products.xlsx workbook, set the ProductID Indexed option to Yes (No Duplicates), and select ProductID as the primary key. Accept the table name Products.

10

4

Change the Field Size of the QuantityPerUnit field to 25 in Design view of the Products table. Set the Field Size of ProductID and CategoryID to Long Integer. Save the changes and open the table in Datasheet view. Open the Suppliers table in Datasheet view to examine the data. Close the tables.

4

5

You will create a new table that will enable International Foodies to associate each product with a food category in the database.

Create a new table in Design view. Add the following fields in Design view and set the properties as specified:

Add the primary key field as CategoryID with the Number Data Type and Number assigned to a new category. (type the period) as the Description. Set the Caption property to Category ID.

Save the table as Categories.

6

6


Add CategoryName with the Short Text Data Type and Name of food category. (type the period) as the Description. Change the field size to 15. Set the Caption property to Category Name and the Required property to Yes.

6

7

Add CategoryDescription with the Long Text Data Type. Set the Caption property to Category Description. Switch to Datasheet view and save the table when prompted. You will enter Category data into the table in the next step.

4

8


You will add 8 records to the Categories table so that you have some sample data to test in the database.

Add the following records to the Categories table:

Category ID   Category Name        Category Description                 

1                  BEVERAGES             SOFT DRINKS, COFFEES, TEAS                  

2                  CONDIMENTS          SAUCES, RELISHES, SEASONINGS

3                  CONFECTIONS         DESSERTS, CANDIES, SWEET BREADS

4                  DAIRY PRODUCTS   CHEESES

5                  GRAINS/CEREALS   BREADS, PASTA, CEREAL

6                  MEAT/POULTRY      PREPARED MEATS

7                  PRODUCE                 DRIED FRUIT, BEAN CURD

8                  SEAFOOD                 SEAWEED AND FISH

Close the table.

6

9

You will create the relationships between the tables using the Relationships window.

Add all three tables to the Relationships window. Identify the primary key fields in the Categories table and the Suppliers table and join them with their foreign key counterparts in the related Products table. Select the Enforce Referential Integrity and Cascade Update Related Fields check boxes. Save and close the Relationships window.

12

10

You will use the Simple Query Wizard to create a query of all products that you import in the seafood category.

Add the ProductName, SupplierID, and CategoryID fields from Products (in that order). Save the query as Seafood Products.

10

11

Add a criterion in Design view, to include only products with 8 as the CategoryID.

2

12

Sort the query results in ascending order by ProductName. Run, save, and close the query.

2

13

You want to create a query that displays actual category names rather than the CategoryIDs. You are interested to know which meat and poultry products are imported. You will copy the Seafood Products query and modify it to delete a field, then add an additional table and field.

Copy the Seafood Products query and paste it using Seafood Or Meat/Poultry as the query name.

2

14

Open the Seafood Or Meat/Poultry query in Design view and delete the CategoryIDcolumn.

2

15

Add the Categories table to the top pane of the query design window. Add the CategoryName field to the last column of the design grid and set the criterion as "Seafood" Or "Meat/Poultry". Run, save, and close the query.

4

In: Computer Science