#1. How many cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.

Answer:
Hexadecimal digits is a base 16 number system and it ranges between 0 and F i.e. 0 - 9 and A - F (10 -15). (Table 1 below shows binary, decimal and hexadecimal representation). Two hexadecimal digits will be between 00 and FF and this will make up to 256 cells i.e. 0 – 255 (16 bits) and for four hexadecimal digits will be between 0000 – FFFF and this makes up to 65536 cells i.e. 0 – 65535 (32 bits).

#2. Suppose that only 50GB of your personal computer’s 120GB hard-disk drive is empty. Would it be reasonable to use CDs to store most of the material you have on the drive as a backup? What about DVDs? Explain your answer.

Answer:

With 120GB of storage and 50GB space free that amounts to 70GB of data to back up, the maximum a CD can take is 700MB (0.7GB) that amounts to 100 CDs. The size of an average DVD-R is about 4.7GB this will make up to 15 DVDs and this makes a lot sense than using 100 CDs.

#3. Suppose three values (x, y, and z) are stored in a machine's memory. Describe the sequence of events (loading registers from memory, saving values in memory, and so on) that lead to the computation of x + y + z. How about (2x) + y?

Answer:
I. To compute x + y + z, each of the values must be retrieved from memory and placed into the register, the sum of x and y must be computed placed into the registry and the value of the sum must be added to z and...

...things must you normally specify in a variable declaration?
You must specify the variable type and an identifier.
int n; // type - int, identifier - n
6. What value is stored in uninitialized variables?
is a variable that is declared but is not set to a definite known value before it is used.
Algorithm workbench
3. Write assignment statements that perform the following operations with the variables a, b, and c.
a. Adds 2 to a and stores the result in b
b. Multiplies b times 4 and stores the result in a
c. Divides a by 3.14 and stores the result in b
d. Subtracts 8 from b and stores the result in a
Assignment statements that perform operations with the variables a, b, and c* (*Actually none of these operations involves the variable c at all... is this an error, or a 'trick answer'?):
b = a + 2
a = b * 4
b = a / 3.14
a = b – 8
4. Assume the variables result, w, x, y, and z are all integers, and that w = 5, x = 4, y = 8, and z = 2. What value will be stored in result in each of the following statements?
a. Set result = x + y
b. Set result = z * 2
c. Set result = y / x
d. Set result = y – z
result = x++ - y;
Answer -4
result = 4 – 8 = -4
result = ++w + y;
Answer
w = w + 1 = 5 + 1 = 6
result = 6 + 8 = 14
5. Write a pseudocode statement that declares the variable cost so it can hold real numbers.
Declare Real price=...

...[pic]
ASSIGNMENT SUBMISSION AND ASSESSMENT
_________________________________________________________________________
OUMM3203
PROFESSIONAL ETHICS
(PLEASE EDIT WHERE NECESSARY-THIS IS ONLY SUGGESTIONS FOR THE ASSIGNMENT’S GENERAL INSTRUCTIONS)
_________________________________________________________________________
INSTRUCTIONS TO STUDENTS
1. This assignment contains only ONE (1) question that is set in the language of the printed module for the course.
2. Answer in _______ or English.
3. Download the language version of the assignment template concerned from the MyVLE for preparation and submission of your assignment. Your assignment should be typed using 12 point Times New Roman font and 1.5 line spacing.
4. Your assignment should be between 2500 to 3000 words excluding references. The number of words should be shown at the end of your assignment. Do not copy the assignment question and instructions to your answer.
5. You must submit your assignment ON-LINE via the MyVLE. Refer to the portal for instructions on the procedures to submit your assignment on-line. You are advised to keep a copy of your submitted assignment for personal reference.
6. You can submit your assignment ONCE only in a SINGLE file.
7. Your assignment must be submitted...

...PT1420 - Unit 5 Homework and Lab Assignment
Unit 5 Assignment 1: Homework
1.) Design an if-then statement that assigns 20 to the variable y and assigns 40 to the variable z if the variable x is greater than 100. (Simple if statement)
If x > 100 then
Y=20
Z=40
End if
2.) Design an if-then statement that assigns 0 to the variable b and assigns 1 to the variable c if variable a is less than 10. (Simple if statement)
3.) Design an if-then-else statement that assigns 0 to variable b if variable a is less than 10, otherwise it should assign 99 to variable b. (Alternative if statement)
If a < 10 then
B = 0
Else
B = 99
End f
4.) The symbols >, <, and == are all Relational operators.
5.) The if-then statement is an example of a conditioal structure.
6.) The Selection structure is based on boolean logic.
7.) The if-else statement is know as a dual alternative decision structure.
8.) A nested if statement is used to ask multiple questions before deciding what processing path to take.
True False
*****************************************************************
Unit 5 Labs
1.) Lab 5.1: Evaluating Conditions with Relational Operators.
Critical Review
A relational operator determines whether a specific relationship exists between two values.
Relational operators
Operator
Meaning
Boolean Expression
>
Greater than
X > Y
<
Less than
X < Y
>=
Greater than or equal to
X >=...

...
Chartered Management Institute Approved Centre
Level 5 Extended Diploma in Management and Leadership
Written Assessment – 5
Unit 5001V1
Instruction Sheet
Assignment: Unit 5001V1 – Personal development as a manager and leader
Level: 5
Lecturer: Ian Laing
Date of Issue: 13th May 2015
Date Due In: 26th June 2015
Format: Word Document submitted to:
ianlaing@ihlassociates.karoo.co.uk
Assessment Outline
Candidates are to write an essay of between 2500 and 3000 words excluding appendices about how to improve their own management and leadership skills and competencies to help meet your performance objectives. You should also write about how you develop effective working relationships to help you deal with a variety of situations in the workplace which will require you to support and promote staff welfare.
Your essay should be based on research, investigation and analysis which you have carried out yourself making sure that you acknowledge sources and include appropriate references, bibliography and appendices in support of your investigation and argument.
The essay should answer the following questions demonstrating your knowledge and understanding of the topics covered by this unit.
1. Identify the importance of continual self-development in achieving organisation objectives. Also assess your current skills and competencies against...

...1. In the statement, x =3;, the ' =' operator is one of Java's extended assignment operators.
2. Using the same name for two methods in the same class, where each method has different parameter input, is called overloading.
3. The nextInt method of Java's Random class returns an integer chosen at random from a range of values between 0 and n-1 where n is the parameter value passed to the method.
4. Java's while statement, and the if-else statements are examples of control statements.
5. The double equal sign (==) is the symbol used to represent Java's equal to operator.
6. Java's for loop is an example of a(n) counter-controlled loop.
7. When a while loop or a for loop is coded inside another while loop or for loop, the inner loop is called a(n) nested loop..
8. A(n) sentinel is a special value that denotes the end of a list and is used to terminate loop processing when reading input values from a user, or a data file.
9. A(n) off-by-one error occurs when a loop is executed one too many, or one too few times due to an incorrectly coded check of the counter variable.
10. A loop that runs without stopping due to a logic error is called a(n) infinite loop
11. Using a floating-point value as a control variable in a loop, but failing to account for the effects of floating-point precision, can cause a loop to execute much differently than expected.Page 1
NAME: _____________________
LESSON 4 - INTRODUCTION TO CONTROL...

...
Week 2 Assignment
Yasir Shakoor
Intermediate Algebra MAT222
Professor Perez
09/01/2014
For our Week 2 assignment, in Intermediate Algebra, we were asked to solve the problem number 68 on page 539 of Elementary and Intermediate Algebra. aside from completing the problem, we were also asked to write a two to three page paper while including the five given vocabulary words for the week. Please see the problem below:
Shipping restrictions. The accompanying graph shows all of the possibilities for the number of refrigerators and the number of TVs that will fit into an 18-wheeler.
a)
Write an inequality to describe this region.
b)
Will the truck hold 71 refrigerators and 118 TVs?
c)
Will the truck hold 51 refrigerators and 176 TVs?
Kindly consider the five given vocabulary words:
Solid line
Dashed line
Parallel
Linear inequality
Test point
In order to solve the problem, we need to be aware that the formula to solve any linear equation is y=mx+b. with the said, we can say that we have our y- intercept which is 330. (The ordered pair 0,330 demonstrates that the y coordinate is 330). Since we have our y- intercept, we will now discover what our slope is. The formula to determine any slope of a line is
m=y1- y2
x1-x2
M= 330-0
0-100
After performing division and simplifying, we have found that the slope of our line is -3.
a) Write an inequality to describe this region.
The inequality to...

...Lesson 4 - introduction to control statements
Fill in the Blanks
Complete the following sentences by writing the word or words in the blanks provided.
1. In the statement, x =3;, the ' =' operator is one of Java's extended assignment operators.
2. Using the same name for two methods in the same class, where each method has different parameter input, is called overloading.
3. The nextInt method of Java's Random class returns an integer chosen at random from a range of values between 0 and n-1 where n is the parameter value passed to the method.
4. Java's while statement, and the if-else statements are examples of control statements.
5. The double equal sign (==) is the symbol used to represent Java's equal to operator.
6. Java's for loop is an example of a(n) counter-controlled loop.
7. When a while loop or a for loop is coded inside another while loop or for loop, the inner loop is called a(n) nested loop..
8. A(n) sentinel is a special value that denotes the end of a list and is used to terminate loop processing when reading input values from a user, or a data file.
9. A(n) off-by-one error occurs when a loop is executed one too many, or one too few times due to an incorrectly coded check of the counter variable.
10. A loop that runs without stopping due to a logic error is called a(n) infinite loop
11. Using a floating-point value as a control variable in a loop, but failing to account for the effects of...

...Proportions
Tara Lint
MAT 222 Week 1 Assignment
Instructor: James Segala
August 18, 2013
Solving Proportions
Proportions exist in the real world. For example, in finding out the price of a unit, or the population of a specific species. The first problem that we are working with states that “. Bear population. To estimate the size of the bear population on the Keweenaw Peninsula, conservationists captured, tagged, and released 50 bears. One year later, a random sample of 100 bears included only 2 tagged bears.What is the conservationist’s estimate of the size of the
bear population?(Dugolpolski, 2012)
In reading over the “Bear Population” #56 on page 437 (Dugolpolski, 2012), the concept of proportions allow the assumption that the ratio of originally tagged bears to the whole population is equal to the ratio of recaptured tagged bears to the size of the sample. The estimated solution, variables will be defined and rules for solving proportions are used.
The ratio of originally tagged bears to the whole population is 50/x.
The ratio of recaptured tagged bears to the sample size is 2/100.
50=2 This is the proportion set up and ready to solve. This is the step where we will cross multiply.
x 100 at this point. The extremes are 100 and 50. The means are x and 2
100(50)=2x
50002=2x2 Divide both sides by 2
X=2500 The bear population of Keweenaw Peninsula is estimated to be around 2500.
For the second problem of this...