javascritp
Gallery On the gallery page, include a JavaScript driven photo gallery with at least five (5) images of original work (web pages screen shots, photographs, illustrations, etc) that you have created. The photo gallery must have previous and next buttons to change the image being displayed. Images must wrap to the first image when the next button is clicked while the last image is being displayed. Similarly, images must wrap to the last image when the previous button is clicked while the first image is being displayed. The next image must be displayed after five (5) seconds if the user has not clicked the next button. Use gallery.html as the filename for the Gallery page.
In: Computer Science
Please no plagiarism and must be in your own 800 words.
Discuss the company, its approach to big data analytics with business intelligence, what they are doing right, what they are doing wrong, and how they can improve to be more successful in the implementation and maintenance of big data analytics with business intelligence
In: Computer Science
Write java code to reverse a linked list. Fill in reverseLists()
ReverseLinkedList.java
package mid;
public class ReverseLinkedList {
private static class ListNode {
int val;
ListNode next;
ListNode() {
}
ListNode(int val) {
this.val = val;
}
ListNode(int val, ListNode next) {
this.val = val;
this.next = next;
}
}
public static void printList(ListNode l1) {
ListNode cur = l1;
while(cur != null) {
System.out.println(cur.val);
cur = cur.next;
}
}
public static ListNode reverseLists(ListNode h1) {
}
public static void main(String[] args) {
ListNode l1_4 = new ListNode(4);
ListNode l1_3 = new ListNode(3, l1_4);
ListNode l1_2 = new ListNode(2, l1_3);
ListNode l1_1 = new ListNode(1, l1_2);
ListNode h1 = l1_1;
System.out.println("list is:");
printList(h1);
ListNode h2 = reverseLists(h1);
System.out.println("Reversed list is:");
printList(h2);
}
}
In: Computer Science
Write python code which displays the sales commission based on the total sale and the employee’s region, using on the following table.
|
Total Sale |
Region |
Commission |
|
Under $2,500 |
East |
5% |
|
$2,500 or more |
East |
7.5% |
|
Under $2,500 |
West |
10% |
|
$2,500 or more |
West |
12.5% |
In: Computer Science
A professor wants to do some research on students who use different kinds of computers. They are curious if there is any difference in average test scores between , for instance, Mac users and Windows users. Write a program to help with this, that behaves as follows.
In: Computer Science
Please complete a program that will be an order entry program for a store or
organization. The program will accept order entry input from two customers, calculate
the total order amount of each order and display data about each order to the
customer. There will be two orders, one will be a “delivery” order and the other will be a “pickup” order.
The data entered by each customer will be:
Customer name
Item purchased
Quantity purchased
Price of the item
The information displayed for each customer order will be:
Order Date (system generated)
Delivery Location (hardcoded in constructor)
Order Type (program supplied)
Item description
Price
Quantity
Order total (program calculates)
Delivery Charge (constant = $10.00)
You can follow these steps to guide you through the process.
1. Create a public class named Order.
2. The Order class will have instance variables for each object to hold data pertaining to each
object as needed (for the input from the customer, program calculated and system generated
values).
3. The Order class will have two constructors (both considered overloaded) of which will set the
current system date for the order as well as the delivery type (Hint: use the LocalDate class for
the date).
a. One constructor will accept a parameter for the address and will be called when a
delivery order is placed. It will set a delivery type instance variable value as “delivery”.
b. The second overloaded constructor will not require a parameter for the address when a
pickup order is placed. It will set a delivery type instance variable value as “pickup”.
4. Create a second public class named OrderCart.
5. Create a main() method within the OrderCart class that will do the following:
a. Display a greeting.
b. Instantiate two Order class objects one for “pickup” and one for “delivery”.
o The “delivery” class object will pass a delivery address argument to the constructor.
At this time, you should hard code an address into the call to the constructor to
keep it simple. (Decision structures are not needed and therefore not used for this
program).
o The “pickup” class object will not pass any delivery information to the constructor.
c. Prompts and accepts input from the user for the all of the instance variables (customer
name, item description, quantity and price).
d. Calls two overloaded methods named calculateOrderTotal() to calculate the order total of
each order (no sales tax is charged in this example). Each method accepts an “Order”
object as it’s parameter.
o One overloaded method will accept a delivery charge of $10.00 and will be used to
calculate the order total for the “delivery” order. The total should include the
delivery charge (total = price * quantity + delivery charge).
o The second overloaded method will not accept any delivery charges and will used
to calculate the order total for the “pickup” order. The total charge will not include
a delivery charge (total = price * quantity).
o
e. Calls two overloaded methods named displayOrderData() to output the data for each
order. Each method accepts an “Order” object as it’s parameter.
o One overloaded method will accept a delivery charge of $10.00 and will be used to
display the order details including the delivery charge.
o The second overloaded method will not accept any delivery charges and will used
display the order specifics.
In: Computer Science
Assignment task
Use your favorite search engine to find details about (1) virus/piece of malware. Upload an MS Word or .PDF document that summarizes each of the following
Item 1: Introduction - What is meant by malware/viruses? What is their history? Are malware and/or viruses recent developments in computer technology or have they been around for a while? What piece of malware/virus are choosing to write about and why?
Item 2: Virus/Malware details:
What specifically does the virus/malware do? How does it infect targets? What does it do once it infects a host? Does it change registry settings, does it leave behind malicious code, etc...? Is it destructive? If so how?
In: Computer Science
""don't use hand write""
The software design/development team and test engineers need to develop a strategy for planning, design, execution, data collection, and test evaluation”. Discuss this statement.
In: Computer Science
Use the following code fragment:
1 sub x4,x4,x0
2 add x3,x4,x0
3 sub x6,x3,x2
4 mul x1,x6,x7
5 add x2,x5,x9
6 div x5,x9,x2
7 add x8,x1,x4
Draw the dependency graph among the instructions and indicate the type of data hazards (such as RAW, WAW, etc.) on each edge.
In: Computer Science
write a c++ program to perform the following operations on stack of Integers (Array Implementation of Stack with maximum size MAX)
(i) Push an Element on to stack
(ii) Pop an Element from stack
(iii) Demonstrate how stack can be used to check Palindrome
(iv) Display the status of stack
(v) Exit
In: Computer Science
4. Please name your driver program XXX_P04 where XXX are your initials. Given the array inputArray (doubles), write a method called swap which will swap any two contiguous (next to each other) elements. Swap will be passed two parameters, the index of the first element to be swapped and the array name. Write another method printArray that will print the array 5 elements to a line. PrintArray will be passed one parameter the array name. See the videos for help with this. The array elements are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
Java Eclipse
In: Computer Science
Q1. [10 pt] How will you implement a binary semaphore with block wake-up protocol? Give the code.
(Please help, Operating system question, 2011 Spring)
In: Computer Science
Create a project with a Program class and write the following two methods (headers provided) as described below:
In: Computer Science
In: Computer Science
Python
Write a function str_slice(s) to slice sentence into single word by
their spaces and punctuations and returns a list.
You cannot use split(), join() method for this define
function
Example:
>>>str_slice(‘Hi, I like it!!’)
[‘Hi’, ‘, ’, 'I', ‘ ‘, ‘like’, ‘ ‘, ‘it’, ‘!!’]
In: Computer Science