Subject: Security Policy & Procedures
Describe what a Data Flow Diagram is and why it is useful for IT auditing. One paragraph should describe what a Data Flow Diagram is, and the second paragraph should describe why it is useful for IT auditing.
In: Computer Science
You will need to use only two arrays: One array of type int to store all the ID's
One two‐dimensional array of type double to store all the scores for all quizzes
Note: The two dimensional array can be represented also with the rows being the students and the columns being the quizzes.
How to proceed:
1. Declare the number of quizzes as a constant, outside the main method. (Recall that identifiers for constants are all in CAPITAL_LETTERS.)
2. Ask the user how many students are in the class, so you can set the length of all the arrays.
3. Allocate 2 arrays, one one‐dimensional and the other two‐dimensional, that will store the data.
4. Use two nested FOR loops to retrieve and store all the data.
5. Use another two nested FOR loops to
a. Output the final score for each student.
b. Keep track of all scores to later compute the average for the class.
6. Calculate and Output the average for the class.
Format all floating‐point numbers to 2 decimal places.
Please leave comments on the program so i can give you a thumbs up :)!
also, this is for java language
In: Computer Science
Assembly Language Programming:
a)If eax = 0FFFFFFFFH, and edx = 0FFFFFFFFH, then the instruction
imul edx
will leave the value ______________________________ in the edx register.
b)If eax = 0D000000DH, and edx = 50000005H, then the instruction
idiv dl
will leave the value ______________________________ in the eax register.
c)If ax = 3BC4H, then the following instructions
cmp ah, al
jg Label
will / will not cause a jump to Label.
d)If ax = 3BC4H, then the following instructions
cmp ah, al
ja Label
will / will not cause a jump to Label.
f) The following instructions
mov eax, 0
mov ecx, 1100B
L1: inc eax
loop L1
will leave the value ______________________________ in the eax register.
In: Computer Science
Given a string str of even length, print out the first half.
Methods to use: substring(), length()
Testing cases:
WooHoo => Woo
HelloThere => Hello
abcdef => abc
ab => a
0123456789 => 01234
kitten => kit
(Note that the sample input test cases are shown before the “=>” and the expected output each test case is after the “=>”.
Your program should print out the expected output only, not the input.)
In: Computer Science
3. What are some issues that can arise when importing data from an outside
source into a DBMS? What are some tools or ways to resolve these issues?
4. Why do tables have to be related in Access for queries to work correctly?
5. What are the benefits and drawbacks for using a DBMS vs. a spreadsheet
to store data?
In: Computer Science
Describe and explain the advantages and disadvantages of network-based and host-based intrusion detection categories.
In: Computer Science
Write three to four paragraphs using the below scenario and attach your submission. Remember to check the rubric before submitting.
Suppose there are two large, competing telecommunication firms in your city (Company X and Company Y). The companies are hostile to each other. You have worked for Company X for five years in a position that gives you access to company trade secrets. You are now interviewing for a job with Company Y that would be a substantial step up in your career. During the interview, you get the impression that Company Y expects you to share your knowledge, including the trade secrets, if they hire you.
Let's say that you have signed a non-disclosure agreement as part of your condition of employment with Company X.
In: Computer Science
3. (5pts.) When should a Count controlled loop be used? C++
In: Computer Science
Please create a Python program that can convert a text string to an encrypted message and convert the encrypted message back to the original message.
Important: please use a dictionary data type and append function.
In: Computer Science
Question 1:
Processing Compound Data: Binary Trees
A binary tree is a tuple with the following recursive structure
("btree", [val, left_tree, right_tree])
where first part of the tuple is a string "btree" and second part of the tuple is a list in which val is the value at the root and left_tree and right_tree are the binary trees for the left and right children or
("btree",[]) for the empty tree.
(A)
Implement a binary tree ADT.
Type Name Description
Create the following tree in python. Use this tree to test the above functions of the tree ADT.
(B)
Implement the functions preorder,inorder and postorder.
Function preorder takes a tree as an argument and returns a list with the root value being the first element in the list followed by the elements of the left tree and then right tree. Function inorder takes a tree as an argument and returns a list with the elements of the left tree, followed by the root value and then right tree.
Function postorder takes a tree as an argument and returns a list with the elements of the left tree, followed by the elements of the right tree and then root value.
For example
preorder(t1) => [7, 5, 11, 9]
inorder(t1) => [5, 7, 9, 11]
postorder(t1) =>[5, 9, 11, 7]
In: Computer Science
1. Define NTFS alternate data stream( 1 Marks).
What is the Significance of whole disk encryption and challenges it poses in digital forensics investigations?Total
In: Computer Science
Exercise 1
(a) Use javascript modify the code below, so that in addition to outputting the selection to the web page, the selection is also placed in the browser’s local storage. Use ‘select’ as the local-storage key. The value will be the name of the category that was selected or the empty string is no selection was made.
(d) Add a button called ‘retrieve’. When it is clicked the local
storage is read and the prior selection is shown on the web
page.
Exercise 2
(a) Extend the code from Exercise 1. When the user clicks the retrieve button the radio buttons or tick boxes are also updated to show the prior selection. Confirm your code is working by making a selection, then exiting the browser, then restarting the browser at the same page and then clicking the retrieve button.
(b) Extend your web page so that the last 10 filter selections are
stored. The user is able to see these prior filter selections
(perhaps by clicking a button) and then choose one selecting it,
making that the current selection.
previous code:
|
<head> <body> <table> <tr> <tr> <td> <td> <tr> <td> <td> </tr> <tr> <td> <td> </table> <button onclick='print()'>Filter</button> <div style='margin-top:30px;' id='display'> </div> </body> <script> function print(){ var itemA= document.getElementsByName('ProductA'); var itemB= document.getElementsByName('ProductB'); var selectedItemA=''; for(var i=0; i<itemA.length; i++){
for(var i=0; i<itemC.length; i++){ var disp= document.getElementById('display'); newList=selectedItemA+selectedItemB+selectedItemC; if(newList==''){
function clearA(){ var itemA= document.getElementsByName('ProductA'); var itemB= document.getElementsByName('ProductB'); for(var i=0; i<itemA.length; i++){ itemA[i].checked=false; } for(var i=0; i<itemB.length; i++){ itemB[i].checked=false; } for(var i=0; i<itemC.length; i++){ itemC[i].checked=false; } var disp=document.getElementById('display'); disp.innerHTML=''; </script> |
||
Filter
Clear
In: Computer Science
Chapter 6: Use a list to store the players
In Python, Update the program so that it allows you to store the players for the starting lineup. This
should include the player’s name, position, at bats, and hits. In addition, the program
should calculate the player’s batting average from at bats and hits.
Console
================================================================
Baseball Team Manager
MENU OPTIONS
1 – Display lineup
2 – Add player
3 – Remove player
4 – Move player
5 – Edit player position
6 – Edit player stats
7 - Exit program
POSITIONS
C, 1B, 2B, 3B, SS, LF, CF, RF, P
================================================================
Menu option: 2
Name: Mike
Position: C
At bats: 0
Hits: 0
Mike was added.
Menu option: 1
Player POS AB H AVG
----------------------------------------------------------------
1 Joe P 10 2 0.2
2 Tom SS 11 4 0.364
3 Ben 3B 0 0 0.0
4 Mike C 0 0 0.0
Menu option: 6
Lineup number: 4
You selected Mike AB=0 H=0
At bats: 4
Hits: 1
Mike was updated.
Menu option: 4
Current lineup number: 4
Mike was selected.
New lineup number: 1
Mike was moved.
Menu option: 7
Bye!
Specifications
Use a list of lists to store each player in the lineup.
Use a tuple to store all valid positions (C, 1B, 2B, etc).
Make sure that the user’s position entries are valid.
In: Computer Science
a. What is the main cue for splitting English documents into sentences? When and how might it go wrong? ( python coding required.)
b. What is the main cue in English for splitting sentences into tokens? When and how might it go wrong? (python coding required.)
In: Computer Science
its java language.
1. Create a class called Car. A Car has instance variables, constructor parameters, setters, and getters for “year manufactured” and “make” and “model” (e.g. 2016 Honda Civic) 2. Create a class called CarLot which has an array of 5 Car references. There are two constructors: (a) One constructor takes no parameters and simply populates the array with these cars: cars[0] = new Car(2016, “honda”, “civic”); cars[2] = new Car(2017, “Lamborghini”, “aventador”); cars[3] = new Car(2000, null, “caravan”); cars[4] = new Car(2010, “dodge”, null); (b) The other constructor takes one parameter: a Car, and puts into the array as the first (and only) element. 3. Create a method public void addCar(Car car) which adds the new Car to the first empty element in the array; if there is no empty element just System.out.println(“no room”) instead. 4. Create a method public Car getCar(int index) which returns a reference to the car at the specified array index; if the index is not valid (i.e. not 0 to 4) return null instead. 5. Create a method public Car getOldestCar() which returns a reference to the oldest car in the array. Use your Car class from the previous question. 2. Create a class called UsedCarLot which has an ArrayList of Car references. 3. The constructor takes parameter: the name of the UsedCarLot (e.g. “Jason’s Used Cars”)…store this in the instance variable String CarLotName and has an accessor too: public String getName(). Also the constructor does this: It simply populates the ArrayList with these cars: cars.add(new Car(2016, “honda”, “civic”)); cars.add(new Car(2017, “Lamborghini”, “aventador”)); cars.add(new Car(2000, null, “caravan”)); cars.add(new Car(2010, “dodge”, null)); 4. Create a method public void addCar(Car car) which adds the Car parameter to the ArrayList. 5. Create a method public void removeCarsBetween(int firstYear, int lastYear) which removes all Cars from the list which were manufactured between firstYear and lastYear (inclusive). Use an iterator. 6. Create a method public Car[] getCarsMadeBy(String maker) which returns an array of Car references…all of the Cars which are made by the parameter maker.
In: Computer Science