When k=2 and the initial values of the mean vector are (2,8) and
(8,1), perform k-means clustering on the following input samples in
the 2D feature space.
(Each iteration step, find the change of the sample vector.
Input sample set={(1,2),(2,3),(4,2),(7,10),(5,7),(9,7)}
In: Computer Science
Question 1: IT Governance [50 marks]
According to a variety of studies, IT governance is usually implemented so as to ensure that IT operations and investments deliver more value to the business.
a) Discuss the activities that are required to setup IT governance in an organization. [25 marks]
b) With the aid of examples, discuss the factors that could affect IT governance. [25 marks]
Question 2: Strategic Management of IT [50 marks]
The strategic management of IT can be achieved through the use of various resources.
a) With the aid of examples, discuss the role played by policies and procedures in the strategic management of IT. [25 marks]
b) Propose and discuss the aspects that should be considered during the drafting of an Information Security policy document [25 marks]
Question 3: Risk Management [50 marks]
Risk management was identified in the NamCode as being an important activity during governance.
a) Outline how you would develop a risk management program in IT [25 marks]
b) Critically evaluate the strengths and weakness of the various risk analysis methods in IT. [25 marks]
Question 4: Business Continuity planning [50 marks]
Business Continuity planning involves the creation and validation of a logistical plan that outlines how an organization will recover from a disaster or extended disruption of operations.
a) Identify and discuss the phases of a Business Continuity life cycle. [25 marks]
b) With the aid of examples, discuss the various issues that could indicate that a Disaster Recovery Plan is not in order. [25 marks].
In: Computer Science
MIT Examination Case Study
Consider the following scenario. You were recently hired to manage the information technology resources of a fast growing organisation in your country. In one of the meetings, you were tasked to outline a strategy to address the company’s information technology problems. During the meeting you were informed that over the past few years, the company has experienced a gradual increase in costs related to
Computer repairs
Training of staff on the new IT system
Theft of IT resources on the premises
Other problems cited include
Reluctance of employees to use the new IT system
A dispute with the consultant that was hired to train employees on the new IT system. The consultant only provided a basic training that was not relevant to the company’s needs. The consultant was paid but is now refusing to conduct another training.
Task
Prepare a report that outlines a strategy of dealing with the problems cited above. Your report could among other things provide strategies of
1. Reducing costs related to computer repairs [20 marks]
2. Reducing training expenses related to the new IT system [20 marks]
3. Minimize or prevent theft of IT resources on the premises [20 marks]
4. Ensure the widespread use of the new ICT system [20 marks]
5. Propose a method of resolving the dispute with the consultant [20 marks]
In: Computer Science
In: Computer Science
C++ Assignment:
Chapter 9 (Pointers) – Review Questions
Short Answer
1. What does the indirection operator do?
2. Look at the following code.
int x = 7;
int *ptr = &x;
What will be displayed if you send the expression *ptr to cout? What happens if you send the expression ptr to cout?
3. So far you have learned three different uses for the * operator. What are they?
4. What math operations are allowed on pointers?
5. Assuming ptr is a pointer to an int, what happens when you add 4 to ptr?
6. Look at the following array definition.
int numbers[] = {2, 4, 6, 8, 10};
What will the following statement display?
cout << *(numbers + 3) << endl;
7. What is the purpose of the new operator?
8. What is the purpose of the delete operator?
9. Under what circumstances can you successfully return a pointer from a function?
10. What is the difference between a pointer to a constant and a constant pointer?
11. What are two advantages of declaring a pointer parameter as a constant pointer?
In: Computer Science
Explain the impact of diffusion process on the speed of Rijndael algorithm?
In: Computer Science
In: Computer Science
Here is assignment 11 and it must be completed and submitted by Sunday july 26 at 11:59pm Pacific Time. Start early and follow the instructions. Please note, no late assignment will be accepted. The assignment’s grade will be available in your Gradebook by the following Tuesday.
This assignment is mainly to practice Selection programming structure with creating a project in VB. That is IF ... THEN ... ELSE ... END IF and IF ... THEN ... ELSEIF ... ELSEIF .... END IF
9. Double-click on Compute Button; declare variables you need to store entered intNumber and calculated intNumber. Both variables data type is Integer . Then type the Selection structure code from Assignment 7 #3. Run the program and test it for intNumber values of 50, 500 and 1000. For each test the result should be: 100, 500, and 3000 respectively.
Screenshots for creating a new project in VB:
2. In the next screen, Create a new project, you choose the correct project template. Since you created a VB project in Week 4, then the correct template: "VB Windows Forms App (.NET Framework)" will display in Recent Project Templates list, you will see a similar screenshot below, Just make sure you open VB Windows Forms App (.NET Framework) and not the one for C++. Click on Next button to continue:
3. Type project name: yourlastname-firstname-SelectionVBProgram in Project and select the VB folder that you will save VB project files in Location box. NOTE: your VB project will be saved in a folder with the project name you type in Project Name box. This will create a folder and a file with SLN extension. Both have the same project name. see below screenshot for where you enter Project name and Location:
4. To change the Location, click on three dots (...), locate the CS3 folder you created earlier for this class. in Project Location window, you should see VB folder that you created earlier in this assignment. Click once to select VB folder(do not double-click) and then click on Select Folder button. This will take you back to "Configure your new project" window. See below screenshot for selecting VB folder. Note that if you have selected VB folder to save the first VB Project, then it will automatically becomes the default folder. You will see the above screenshot. Click on Create to continue to VB Editor window.
5. Upon clicking on Create, you will be placed in VB editor window, see below:
6. From here on, click on View menu to activate Toolbox menu, expand Common Controls, Then add two Label controls, one TextBox and one Button controls on the form. Follow the instructions to name each control and add necessary text properties for each control. See below:
7. Then double-click on the Button which now should read “computer” to see the VB coding area, Form1.vb. type the code for the criteria in #9 such that when the program runs, you enter 50 for intNumber (textbox) and in the Label2 you see 100 displays, when you enter 500, result is 500 and when you enter 1000, the result is 3000. You have code in assignment 7.
Assignment 7 #3 Use the following selection structure to answer the next three questions:
If intNumber<= 100 Then
intNumber = intNumber * 2
ElseIf
intNumber> 500 Then
intNumber = intNumber * 3
End If
In: Computer Science
Turn Ins:
Source code of two programs and a short report on to answer the following question:
input.txt looks like below
55 59 56 23 93 9 39 76 27 81 46 99 35 11 93 43 10 22 29 89 8 10 11 86 48 34 39 3 54 4 76 2 35 52 58 92 75 15 48 51 29 81 96 25 46 90 67 40 55 67 44 76 3 48 31 61 48 9 64 68 78 4 17 26 63 64 92 11 58 54 71 51 11 16 27 76 91 8 77 35 12 84 87 93 71 14 5 36 16 35 30 47 85 81 78 34
In: Computer Science
Using C language, and describe the algorithm
design
All the sample is correct
Tim was born in a leap year, so he would like to know when he could have his birthday party. Could you tell him? Given a positive integers Y indicating the starting year, and a positive integer N, your task is to tell the N-th leap year from year Y. Note: if year Y is a leap year, then the 1st leap year is year Y.
The input contains several test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follow. Each test case contains two positive integers Y and N(1<=N<=10000). For each test case, you should output the Nth leap year from year Y.
3
2005 25
1855 12
2004 10000
2108
1904
43236
In: Computer Science
3. What does mystery2 compute on an input n? Please explain how you found this. thanks!
public static int problem1(int n) {
int begin = 0;
int end = n+1;
while (begin+1 < end){
int mid = (begin+end)/2;
if(112*mid <= n){
begin = mid;
}
else{
end = mid;
}
}
return begin;
}
In: Computer Science
What does the following PHP code accomplish?
1. function validateInput ( $data ) {
2. $data = trim ( $data );
3. $data = stripslashes ( $data );
4. $data = htmlspecialchars ($data , ENT_QUOTES | ENT_HTML5 ,'UTF -8 ');
5. return $data ;
6. }
In: Computer Science
GAMEMODE(gamemode_id, gamemode_name,
gamemode_type)
GAME(game_id, game_time, game_results, game_date,
gamemode_id)
ACTIVEPLAYER(player_online_status, game_id,
hero_level)
PLAYERHERO(hero_level, hero_id, player_id)
HERO(hero_id, hero_role, hero_price, hero_name,
hero_speciality)
SKIN(skin_id, skin_price, skin_name, hero_id)
PLAYER(player_email, player_username,
player_id)
PLAYER
ACCOUNT(player_id,player_username,player_onlinestatus,player_battle_point,player_global_level,player_diamonds)
Normalise this to 3NF
In: Computer Science
In mathematics, the notation n! represents the factorial of the nonnegative integer n. The factorial of n is the product of non-negative numbers from 1 to n.
Design a program that asks the user to enter a nonnegative integer and then displays the factorial of that number.
Module main. Asks the user to enter a non-negative integer. A loop is used to require user input until a nonnegative number is entered. Once a nonnegative number is entered, the integer is passed to Module factorial.
Module factorial. Accepts a non-negative integer from Module main and uses a loop to calculate the factorial of that number. The number resulting from each step of the calculation will be written to an output file products.dat. The following numbers would be written to the output file for 7!
42
210
840
2520
5040
Module readFactorial. Changes the status of products.dat to an input file. Reads and displays all numbers in the file. The final number should be labeled as the solution to the problem.
Expected Input/Output
Your results should be similar to the following:
Please enter a non-negative integer: -5
The number must be non-negative.
Please enter a non-negative integer: 0
The number must be non-negative.
Please enter a non-negative integer. 7
Following are intermediary calculations for 7 factorial:
42
210
840
2520
5040
7 factorial is 5040.
Please use java to generate the program. And must have these modules and use these guidelines!!!
In: Computer Science
Please answer ASAP
Database
Consider the following relation scheme:
Players = {name, position, year, team, manager}
We use the following abbreviations:
Players = {n, p, y, t, m}
with the following FDs
n --> p
n, y --> t
t, y --> m
(3.a) Is Players in BCNF? Explain why.
(3.b) Find all candidate keys of Players. Show your work.
(3.c) Obtain a decomposition of players using the 3NF decomposition
algorithm. Assume the
given FDs are a minimal (canonical) cover. Show your work.
(3.d) Assume the following FD also holds in players (in addition to
the FDs listed above).
t, m ! y
Find all candidate keys of Players for this case. Show your
work.
In: Computer Science