Please I need answer for all four questions please. ONLY ANSWER IF YOU CAN BE ABLE TO ANSWER TO 4 QUESTIONS. I DONT REALLY NEED LONG ANSWERS.
1.Describe why your nested Virtual Machine has a different DHCP server from your HOST Virtual Machine.
2. Describe why you would set your VM up using the host-mode network.
3. What is the difference between physical core and logical processors
4. What is memory ballooning and how should it be used in virtualization?
THANKS
In: Computer Science
a) Explain the relationship between "programming to interfaces" and "loose coupling," why we care about these two things, and why it is not possible to create completely decoupled code.
b) Given the fact that we care about these two concepts, why might this imply that the new operator is problematic for creating flexible code?
In: Computer Science
This is the question about Verilog.
the H/W question is "Explain about 'always syntax' in verilog with the simple verilog example."
In: Computer Science
Learning Objectives
As in previous labs, please write the Java code for each of the following exercises in BlueJ. For each exercise, write a comment before the code stating the exercise number.
Make sure you are using the appropriate indentation and styling conventions
Exercise 1 (15 Points)
Exercise 2 (20 Points)
Exercise 3 (15 Points)
Exercise 4 (15 Points)
Fido is a 3-year-old German Sheppard
Exercise 5 (10 Points)
Exercise 6 (10 Points)
Exercise 7 (15 Points)
Rover is 28 in dog-years.
In: Computer Science
Given the python code below, show output:
class MyClass:
i = ["1010"]
def f(self, name):
self.i.append(str("470570"))
self.name = name
return 'CPS'
if __name__ == "__main__":
x = MyClass()
print(x.f("U"))
print(x.name)
print(x.i)
y = MyClass()
print(y.f("D"))
print(y.name)
print(y.i)
In: Computer Science
1. what mask in register F would cause the Simple Assembler instruction [and RA, RA, RF] to put 0 in the most significant bit of register A without disturbing the other bits?
2. Suppose registers E and F contained AA and CC, respectively. What bit pattern would be in register D after executing the Simple Assembler instruction [xor RD,RE,RF]?
3. Suppose registers E and F contained AA and CC, respectively. What bit pattern would be in register D after executing the Simple Assembler instruction [and RD,RE,RF]?
4. If registers 0 and 1 contain the patterns B5 and F0, respectively, what will be in register 1 after executing the Simple Assembler instruction [move R0,R1]?
In: Computer Science
n = int(input("Enter any number: ")) sum1 = 0 for i in range(1, n): if(n % i == 0): sum1 = sum1 + i if (sum1 == n): print("The number is a Perfect number!") else: print("The number is not a Perfect number!")
taking the code above, how would i create a new function that calls the program above and finds all perfect numbers within a certain range? the function would accept two parameters, the two ranges, and use a for loop to call the function above and print out all perfect numbers within a certain range (Ex. 1,100)
In: Computer Science
Refactor the code below so that it isn't awful! Justify your design decisions!
public class BrownBear { public String roar(){ return "bear"; } } public class SilentBrownBear { public String roar(){ return ""; } } public class PolarBear { public String roar(){ return "brrrr"; } } public class SilentPolarBear { public String roar(){ return ""; } }
In: Computer Science
Based on what you know about object oriented programming, inheritance, and polymorphism, why do you think it is not possible to write code like this in Java:
public class X extends Y, Z { // ... }
...but can write code like this:
public class A implements B, C { //... }
In: Computer Science
c program
In: Computer Science
In: Computer Science
In C++
1. Test Scores #1
Write a program that dynamically allocates a built-in array large enough to hold a user-defined number of test scores. (Ask the user how many grades will be entered and use a dynamic array to store the numbers.) Once all the scores are entered, the array should be passed to a function that calculates the average score. The program should display the scores and average. Use pointer notation rather than array notation whenever possible. (Input Validation: Do not accept negative numbers for test scores.) Make it a class, call it something like gradeholder. You will need a destructor because you are using dynamic arrays.
In: Computer Science
c program
In: Computer Science
what is the difference between capacity and size in COA, and what is the formula to calculate them?
In: Computer Science
Need urgently, please do it as soon as possible i have only 40 min for this task ( Doing in Java).
Question no 1: Solve completely.
a) Define the following concepts with proper syntax, where required. Also, write why we use these concepts (for last three bullets).
Execution process of java program
Copy constructor
Instance and class variable
Access specifiers
b) Write a program to print the area of a rectangle by creating a class named 'Area' having two methods. First method named as 'setDim' takes length and breadth of rectangle as parameters and the second method named as 'getArea' returns the area of the rectangle. Length and breadth of rectangle are passed through constructor.
In: Computer Science