USE JAVA
Develop the classes for the following requirements:
1. A class named Employee (general, for college)
2. A class named Instructor (more specific, for college)
3. A class named Staff (more specific, for college, HR officer, Marking staff)
Tasks:
1. Figure out the relationships among the classes;
2. Determine the abstract class, and the child classes;
3. For the abstract class, determine at least one abstract method;
4. Each class should at least two data members and one extra method;
5. Full implementation of all constructors, getters/setters and toString, and other methods;
6. Test your Java code and take screen shots
In: Computer Science
Try to make it as simple as you can. Please provide the answers with some examples as fast as you can.
6-What are the potential disadvantages of using a dynamic and static IP Address?
7-Explain the functionality of a global catalog in the Windows networking.
8-Explain the following terms: TCP/IP protocol, and what are two command-line utilities that can be used to check TCP/IP configuration and IP connectivity, respectively?
9-Explain: Which Windows Server utility provides a common interface for tools and utilities and provides access to server roles, services, and monitoring and drive utilities? and which server utility provides information about PowerShell command history?
10- What are Active Directory sites?
In: Computer Science
Create a HTML file that prompts the user to enter the number of dice (1-5) to play with and display exactly as shown below (example run on Chrome). If the user enters a number less than 1, then set the number to 1. If the user enters a number greater than 5, then set it to 5.
Center align elements and use height:200px for dice images.
rollDice.html:
When user enters a number less than 1
When user enters a number greater than 5
When the user enters a valid number
Continued on the next page ....
When the user clicks on the button ‘Click to Roll’, call a Javascript function ‘roll()’, which selects a die randomly and rolls it (Two random numbers are generated - one for selecting a die, the other to select roll a number from the die). Based on the output, Javascript changes the image of the selected die while displays the message at the bottom as shown below.
You can add a button in HTML that responds to click by calling the function ‘roll()’ as below.
In: Computer Science
Define a JavaScript function named prepend that has two parameters. The first parameter is an array of Strings. The second parameter is a String. Your function should use the accumulator pattern to return a newly created array whose elements are the concatenation of the second parameter with the element at the same index in the first parameter.
In: Computer Science
I have created a MinHeap program without using arrays. Below is the followup question :
The heap class is a collection. Determine the correct
location in your language’s collection
class hierarchy. Find all methods that you need to implement in
order to add your class in
the language’s collection class hierarchy.
What does this mean and how to implement it?
In: Computer Science
(Business: check ISBN-13)
ISBN-13 is a new standard for indentifying books. It uses 13 digits d1d2d3d4d5d6d7d8d910d11d12d13 . The last digit d13 is a checksum, which is calculated from the other digits using the following formula:
10 - (d1 + 3*d2 + d3 + 3*d4 + d5 + 3*d6 + d7 + 3*d8 + d9 + 3*d10 + d11 + 3*d12) % 10
If the checksum is 10, replace it with 0. Your program should read the input as a string. Display “incorrect input” if the input is incorrect.
Sample Run 1
Enter the first 12 digits of an ISBN-13 as a string: 978013213080
The ISBN-13 number is 9780132130806
Sample Run 2
Enter the first 12 digits of an ISBN-13 as a string: 978013213079
The ISBN-13 number is 9780132130790.
In Python.
In: Computer Science
In Python
Which statement has a syntax error? Assume variables x, y, z, and age have already been defined.
| a. |
y = y |
|
| b. |
x + y = z |
|
| c. |
age = '32' |
|
| d. |
print('Name, age') |
|
| e. |
None of the above |
Which statement does not print a newline character at the end?
| a. |
print('First part…') |
|
| b. |
print('First part…\n') |
|
| c. |
print('First part…', end='') |
|
| d. |
print('First part…', end=”-\n”) |
|
| e. |
None of the above |
Which function converts a string to an integer?
| a. |
int() |
|
| b. |
integer() |
|
| c. |
string_to_int() |
|
| d. |
convert(string, int) |
|
| e. |
None of the above |
In: Computer Science
Evaluate the impact of contemporary information systems and the Internet on the protection property. Please discuss about the Copyright topic in specific.
In: Computer Science
// Java
// This method takes an integer array as well as an integer (the
starting
// index) and returns the sum of the squares of the elements in the
array.
// This method uses recursion.
public int sumSquaresRec(int[] A, int pos)
{
// TODO: implement this method
return -1; // replace this statement with your own return
}
// This method takes a character stack and converts all lower
case letters
// to upper case ones.
public void upperStackRec(CharStack s)
{
// TODO: implement this method
}
// This method reads a string and returns the string in the
reversed order.
public String reverseStringRec(String s)
{
// TODO: implement this method
return "dummy string"; // replace this statement with your own
return
}
// This method takes as parameters a reference to the head of a
linked list, a
// position specified by n, and a key. It returns the number of
occurrences
// of the key in the linked list beginning at the n-th node. If n =
0, it means
// you should search in the entire linked list. If n = 1, then you
should skip
// the first node in the list.
public int numOccurrencesRec(LNode node, int n, int key)
{
// TODO: implement this method
return -1; // replace this statement with your own return
}
}
In: Computer Science
Print out the following output. You must use exactly 2 for statements, 2 range statements, and 3 print statements. (python)
Calculating x **
1
1
3
5
====
Calculating x ** 2
1
9
25
====
Calculating x ** 3
1
27
125
====
In: Computer Science
Implement the Cstring function strcpy(dest, source) in c++. Do not use the library. The copy process will only stop at the last "\0". Make sure dest is large enough
In: Computer Science
Can anyone add a validation function to my html? First, ensure that your form uses at least three of the following field types: check boxes, text boxes, option buttons, selection lists, and text areas. Then, program validation for your form ensuring that users enter values or make selections in all fields, and verifying at least one other aspect of at least one of the fields. Provide appropriate feedback to users when the form fails validation. Test your completed program until all validation works reliably with different combinations of valid and erroneous data.
<------------------------------------------------------------------------------------------------------->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Case Project</title>
<link href="layout.css" rel="stylesheet"
type="text/css">
</head>
<body>
<h1>Lamborghini</h1>
<p><a href='index.html'>Lamborghini</a> <a
href='ferrari.html'>Ferrari</a> <a
href='bugatti.html'>Bugatti</a> <a
href='rollsroyce.html'>Rolls-Royce</a></p>
<hr>
<p><img
src='https://vignette.wikia.nocookie.net/pawnstarsthegame/images/6/6e/2003_Lamborghini_Murcielago.png'>The
Aventador has been created to anticipate the future, as
demonstrated by the use of innovative technology, including a V12
engine and the extensive use of carbon fiber. The authentic design
masterpieces together stark dynamism with aggression to produce a
cutting edge carbon fiber monocoque. The interior of the Aventador
combines high-level technology and luxury equipment with
premium-quality materials, skilfully crafted with the expertise
characteristic of the finest Italian traditions. A supercar family
that has already become a legend in its own right. Discover
technical specifications, dimensions, performance, and the detailed
features of all the new Lamborghini Aventador
models.</p>
</script>
</body>
</html>
In: Computer Science
In: Computer Science
PYTHON PROGRAM!
Exercise 3 - Go forth and discover!
Find some interesting good sized text datasets (most likely csv's) of at least several hundred points online. These could be related to any topic. Some ideas might be:
Use Python to import one of those datasets and provide at least 2 useful visualizations (charts) of that data on a single figure. You may use any chart type that would be useful, and you can certainly pre-process or analyze the data (i.e. see filtering to fires > 500 acres in Ex. 2) before plotting it. Make sure to label the charts appropriately.
In: Computer Science
Write assembly code for the following C procedure:
i = 1; sum = 0;
while (i ≤ n) {
sum += i;
++i;
}
i and sum corresponds to $s1 and $s2. n is preloaded into $s3
In: Computer Science