Object oriented with java

 

This assignment is for you to gain hands-on experiences of our weekly (week 9) covered topics including Queue, Heap, and Priority Queue. In this assignment, you need to write Java programs that meet the following requirements:

=== Basic Requirements (100 ‘pts) ===

1) (50 ‘pts) Implement a MyQueue class that supports the following interfaces within O(1) time:

1.1) int size(); //return the total number of stored elements
1.2) boolean isEmpty(); //return if the queue is empty
1.3) void offer(E val); //enqueue an element val for generic type E
1.4) E poll(); //remove head and return the removed value, return null if isEmpty()
1.5) E peek(); //return head, return null if isEmpty()

2) (50 ‘pts) Based on our class demonstration of MinHeap implementation, write a MaxHeap class that at least supports all the queue interfaces stated above as in 1).

=== Bonus (20 ‘pts) ===

a) (10 ‘pts) In the above requirement 2) MaxHeap, can you implement a class method: heapify(E[] arr) that takes in an array input, and transfer that array into a max heap?

b) (10 ‘pts) Inspired by the above practices, now revisite Leetcode 912. Sort An Array, this time use heap sort to conquer this coding challenge. Make sure your submission passes all Leetcode test cases. 

Rules of Engagement

   

Centralia Security Lab has been hired by Haverbrook Investment Group to perform penetration testing on its systems. As a pen tester, you have been assigned to write the plan for what Centralia will do in the testing.

Your proposal should include the “rules of engagement” (agreement outlining the framework for the penetration testing) and outline how you would go through the five phases of hacking.

  

  • How will      you identify Haverbrook Investment Group’s network characteristics,      expectations, constraints, critical systems, and other relevant      information?
  • What are      your preliminary engagement activities with regard to scheduling, scope,      and key stakeholders?
  • What will      you use to establish a binding agreement between Centralia Security Lab      and Haverbrook Investment Group?
  • How will      you determine the services, targets, expectations, and other logistics      that will be covered during the Rules of Engagement section?
  • How will      you explain to Haverbrook that the tools and techniques to be used in the      penetration test will not corrupt data, violate privacy, and are in      compliance with industry standards and any applicable laws and      regulations?

Format below

Rules of Engagement

Overview

Include a brief description of the penetration test project. 

Scope

Discuss the scope of the penetration test (pen test). 

Checklist

Provide a list of the testing requirements. 

Ethical Considerations 

Describe how you will apply appropriate ethical principles throughout the penetration testing process

References

Activity-Based Costing (ABC) and Master Budgeting

Read at least 2 academically reviewed articles on ABC and 2 articles on Master Budgeting and complete the following:

A. Write an annotated bibliography of each article.

B. Based on the articles you reviewed, discuss what you learned

C. In addition, discuss how a manager would use the concepts in the articles you reviewed in managerial decisions.