Questions
Generate a modest Web page via Python flask. It should include basic components of HTML. The...

Generate a modest Web page via Python flask. It should include basic components of HTML. The Web page should have at least three Headings(<h1>), a paragraph (<p>), comments (<!-- -->), ordered list, unordered list, three links to website, and should display time & date.

In: Computer Science

Write a Scheme function that takes a list of integers and returns all odd integers on...

Write a Scheme function that takes a list of integers and returns all odd integers on the list in the original order:

(odd-numbers `(2 4 9 16 25 7)) (9 25 7)

Hint: 2 (remainder 13 5) 3

Please explain every step

In: Computer Science

Assume that Employee class has method boolean isHighEarner() that returns true if employee's salary is above...

Assume that Employee class has method boolean isHighEarner() that returns true if employee's salary is above average and false otherwise. Write an iterative method highEarners that returns the ArrayList<Employee> of all high earners in the given list.

public ArrayList<Employee> highEarners( ArrayList<Employee> list)

{

}

  

In: Computer Science

This exercise I will list a series of words I want you to give me both...

This exercise I will list a series of words I want you to give me both denotative (actual dictionary definition) & connotative (personal meaning or reaction to the word).

Word List:

Work, loyalty, parent, education, professionalism, family, partner, student, tradition, infidelity, boss, & love

In: Psychology

In Python, Complete the longestWord() function to take a list as a parameter and return the...

In Python,

Complete the longestWord() function to take a list as a parameter and return the length of the longest word in that list.

Examples:

longestWord(['Python', 'rocks']) returns 5

longestWord(['Casey', 'Riley', 'Jessie', 'Jackie', 'Jaime', 'Kerry', 'Jody']) returns 6

longestWord(['I', 'a', 'am', 'an', 'as', 'at', 'ax', 'the']) returns 3

In: Computer Science

How to make a random word generator from a list of array? string word ={ "RD","BL",...

How to make a random word generator from a list of array?

string word ={ "RD","BL", "YW", "GR","OR","VL","WH","BL" }

The output should produce 4 random words from the list like;

Expected output: RD YW OR BL

CODE USED: C++

In: Computer Science

I need this in java using textpad. I am missing a few lines where I added...

I need this in java using textpad. I am missing a few lines where I added in comments. I don't know what I need to add in. Here are the two programs as pasteable code.The comments in the code say what I need done. The two programs are below. I need it to work with the generic version of SLLNode. It is posted at the bottom.

public class ListDemoHw {

        public static void printLinkedList(SLLNode node) {
                // display all elements in the linked list
                while(node != null) {
                        System.out.print(node.info + " ");
                        node = node.next; // move to the next node
                }       
                System.out.println();
        }
        static SLLNode generateLL1() {
                // Create/return a linked list that has {3, 4, 1, 2}
                // Note that this is not quite a useful function. Just for practice purpose
        }
        static SLLNode generateLL2(int a, int b) {
                // Create/return a linked list that has {a, b, a, b}
                // eg) generateLL2(10,20) returns a list {10,20,10,20}
        }
        static SLLNode generateLL_with_array(int[] nums) {
                // Creat/return a linked list using the given int array
                // Return null if the array is empty (size is zero).
                // eg) generateLL3(new int[]{2,3,4}) returns a list {2,3,4}
        }
        static void attach(SLLNode ls1, SLLNode ls2) {
                // Given two linked lists, attach the second list at the end of the first list
                // eg) Suppose ls1={1,2,3}, ls2={50,60} as lists, attach(ls1, ls2) makes ls1 = {1,2,3,50,60}
                // Assume ls1 is not empty.
                // Hint: You need to go to the last node of ls1 and make a connection from it to the ls2
        }
        public static void main(String[] args) {
                printLinkedList(generateLL1()); // 3 4 1 2
                printLinkedList(generateLL2(20,30)); // 20 30 20 30
                printLinkedList(generateLL_with_array(new int[] {2})); // 2
                printLinkedList(generateLL_with_array(new int[] {2,3,4,5})); // 2 3 4 5
                SLLNode ls1 = generateLL1();
                attach(ls1,generateLL2(20,30));
                printLinkedList(ls1); // 3 4 1 2 20 30 20 30
        }
}

---------------------------------------------------------------------------------------------------

public class SLLNode<E> {
        E info;
        SLLNode<E> next;
        public SLLNode(E val) {
                info = val;
                next = null;
        }
}

In: Computer Science

What is a fiduciary relationship? What are the differences between an employee and an independent contractor?...

What is a fiduciary relationship?

What are the differences between an employee and an independent contractor?

What is an agency relationship?

List and define the ways an agency can be formed.

What are the agent’s duties to the principal?

What are the principal’s duties to the agent?

List and define the types of authority.

What are the three categories of principals and how do those categories effect liability?

When is an principal liable for the torts of the agent?

What is respondent superior?

What are the factors that the court considers in deciding whether someone is acting in the course and scope of their employment?

What is the difference between a detour and a frolic?

Is a principal responsible for the intentional torts of the agent?

Is a principal responsible for the torts of an independent contractor?

What are some of the provisions included in the Fair Labor standards Act?

What is Family Medical Leave?

What is the Occupational Safety and Health Act?

What is Worker’s Compensation?

What is COBRA?

What are some of the unfair labor practices for an employer? For an employee?

What is a lockout? What is a strike?

(26)When is electronic monitoring allowed in a place of business?

Does HIPAA require employers to provide insurance?

How does the immigration law limit employment?

What are the three categories of torts?

What does the UCC Section 2 cover? What does the UCC Section 2a cover?

What are the differences between contract law and UCC law?

What is a sale? What is a merchant?

What is the difference between goods and services?

What is the predominant rule?

What terms does the UCC allow to be open? What cannot be open?

What is a merchant’s firm offer?

What are a person’s alternatives if they are sent non-conforming goods?

What happens under the UCC if additional terms are included in the acceptance?

What are the requirements for modifications under the UCC?

What is the perfect tender rule?

List and define the exceptions to non-conforming goods being considered a breach.

List the obligations of the Buyer.

List the obligations of the seller.

What is anticipatory repudiation?

List and define the Seller’s remedies.

List and define the Buyer’s remedies.

What is a warranty of title?

List and define the types of implied warranties.

What are warranty disclaimers?

In: Accounting

The file has some functions incomplete/empty. Please read the description from each of those functions and...

The file has some functions incomplete/empty. Please read the description from each of those functions and add your code to complete.
You also need to test those functions in the main().

ListDemoHw.java

package hw;

public class ListDemoHw {

   public static void printLinkedList(SLLNode<Integer> node) {
       // display all elements in the linked list
       while(node != null) {
           System.out.print(node.info + " ");
           node = node.next; // move to the next node
       }  
       System.out.println();
   }
   static SLLNode<Integer> generateLL1() {
       // Create/return a linked list that has {3, 4, 1, 2}
       // Note that this is not quite a useful function. Just for practice purpose
      
   }
   static SLLNode<Integer> generateLL2(int a, int b) {
       // Create/return a linked list that has {a, b, a, b}
       // eg) generateLL2(10,20) returns a list {10,20,10,20}
   }
   static SLLNode<Integer> generateLL_with_array(int[] nums) {
       // Creat/return a linked list using the given int array
       // Return null if the array is empty (size is zero).
       // eg) generateLL3(new int[]{2,3,4}) returns a list {2,3,4}
   }
   static void attach(SLLNode<Integer> ls1, SLLNode<Integer> ls2) {
       // Given two linked lists, attach the second list at the end of the first list
       // eg) Suppose ls1={1,2,3}, ls2={50,60} as lists, attach(ls1, ls2) makes ls1 = {1,2,3,50,60}
       // Assume ls1 is not empty.
       // Hint: You need to go to the last node of ls1 and make a connection from it to the ls2
   }
   public static void main(String[] args) {
       printLinkedList(generateLL1()); // 3 4 1 2
       printLinkedList(generateLL2(20,30)); // 20 30 20 30
       printLinkedList(generateLL_with_array(new int[] {2})); // 2
       printLinkedList(generateLL_with_array(new int[] {2,3,4,5})); // 2 3 4 5
       SLLNode<Integer> ls1 = generateLL1();
       attach(ls1,generateLL2(20,30));
       printLinkedList(ls1); // 3 4 1 2 20 30 20 30
   }
}

SLLNode.java to test

package hw;

public class SLLNode<E> {
   E info;
   SLLNode<E> next;
   public SLLNode(E val) {
       info = val;
       next = null;
   }
}

In: Computer Science

Java program to implement circular linked list. NO COPY PASTE ANSWERS plz follow the given template......

Java program to implement circular linked list. NO COPY PASTE ANSWERS plz follow the given template...

public class CircularLinkedList  {

    
    private Node tail;
    private int size;
    
    public CircularLinkedList() {
        tail= null;
        size = 0;

    }



     public int size(){
        return size;
    }

 
    public boolean isEmpty()
    {
        return size==0;
    }
    
        
        //if list is not empty return the first element
     
    public E first() {
        if (isEmpty()) return null;
        //code here
        return 0;
    }
  

    
        
        //if list not empty return last element
     
    public E last() {
        if (isEmpty()) return null;
        return tail.getElement();
    }

    /*
        move tail to the next node
     */
    public void rotate()
    {
    }

    /*
        add element to the first of the linked list
        increase the size
     */
    public void addFirst(E e)
    {
        
    }

    /*
        add element to the end of the linked list
        increase size
     */
    public void addLast(E e)
    {
    }

    /*
        take out the first element
        decrease the size
        return first element or null


     */
    public E removeFirst()
    {
        return null;
    }
public String toString()
{
    String s;
    Node<E> n;
    if ( tail == null )
        return "null";
    s = "[";
    n = tail.getNext();
    if (n==null)
    {
        return s+ "empty list]";
    }
    int iter =0;
//change the while loop below for circular list instead of singly linked list
    while (n!=null&&iter<2*size)
    {
        iter++;
        s = s+ n.getElement();
        if (n.getNext()!=null) s = s + ", ";
        n = n.getNext();
    }
    return s+"]";

------------------------------------------------------------------------------------------------------

implements....

public class Node {
    // Instance variables:
    //element = data
    private E element;
    private Node next;
    /** Creates a node with null references to its element and next node. */
    public Node() {
        this(null, null);
    }
    /** Creates a node with the given element and next node. */
    public Node(E e, Node n) {
        element = e;
        next = n;
    }
    // Accessor methods:
    public E getElement() {
        return element;
    }
    public Node getNext() {
        return next;
    }
    // Modifier methods:
    public void setElement(E newElem) {
        element = newElem;
    }
    public void setNext(Node newNext) {
        next = newNext;
    }
}
 

In: Computer Science