StringBuffer

  

1) Explain the difference between the String class and the StringBuffer class. Describe when you would use one over the other. Show example code of each of them.
 

2) Design and implement a Java class to represent a cube class. The class should contain a constructor, appropriate data fields and methods to return the volume of the cube, and the surface area of the cube.
 

3) The project requirements include:
 

1. Design and implement a stringed musical instrument class using the following guidelines:
 

a. Data fields for your instrument should include number of strings, an array of string names representing string names (e.g. E,A,D,G), and boolean fields to determine if the instrument is tuned, and if the instrument is currently playing. You are welcome to add additional data fields if you like.
 

b. A constructor method that set the tuned and currently playing fields to false.
 

c. Other methods 1) to tune the instrument, 2) to start the instrument playing, and 3) to stop the instrument from playing.
 

d. Other methods as you see fit (Add at least one unique method).
 

2. Create a UML class diagram using a diagram tool (e.g. PPT, Visio) of your choice. Prepare the diagrams and place them in a word document along with a brief description of each of your classes.
 

3. Create Java classes for your instruments. Be sure that your code matches your design specifications and some minimal functionality is included. For example, if you called the violin.play() method, you should at least print that the violin is playing. Similar functionality should be supplied when you stop playing, tune or call any of your methods. For example:
 

public void playviolin() {
System.out.println(“The violin is now playing.”);
}
 

4. Write the output from your Instrument class methods to a text file that a user entered from the command line arguments (e.g. java Mynamep3tst myfilename.txt). This allows your program to accept filenames from the user via a command line argument.
 

5. Finally, create a Java test class that simulates using your instrument class. In your test class be you should at a minimum: a) Construct 10 instances of your instrument, b) tune your instruments, c) Start playing your instrument, d) Call your unique method, and e) Stop playing your instruments. (Hint: Arrays and Loops will make your job easier and result in more efficient code!)
 

6. Your programs should compile and run without errors.
 

7. Be sure to test your program carefully. Provide a list of comprehensive test cases used to validate your application and include these test cases in your word document containing your UML diagrams and descriptions. Similar to Project 1, your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test.

Write a function to compute the sum

 Write a function to compute the sum of the first k terms of the series expansion for the sine function (-1)” (2n +1)! 2n +1 sin(x) = TL 0 The first three terms (k = 3) of the expansion are: 1 1 73 + sin(x) = 2 ਕ 5 Function specification: Your function should be called series sine(x, k) where x is the argument of the sine function and a total of k number of terms from the expansion should be summed. You are not allowed to import a factorial function (or anything else) from any of Python’s libraries – you don’t need it and it’ll slow down your function significantly! For example: Test Result import numpy as np 1.571 # Uses your series_sine to calculate sin(pi/2) with 1 to 3 iterations. 0.925 ans_literation = series_sine (np.pi/2, 1) 1.005 print(f'{ans_literation:.3f}’) ans_2iterations – series_sine (np.pi/2, 2) print(f'{ans_2iterations:.3f}’) ans_3iterations = series_sine (np.pi/2, 3) print(f'{ans_3iterations:.3f}’) Correct! ans = series_sine (1.6, 11) if abs (ans – 0.9996) < le-4: print("Correct!") else: print("Wrong answer.") print(f"Your answer was: {ans}")
 

Plain View Doctrine

 Describe the plain view doctrine, and why it has such a significant impact on digital forensics? What are three approaches to determining whether the doctrine applies to a specific case? 2-3 pages APA format

Social Marketing Processes and Business Models

 

Today, social, mobile, and local marketing are the fastest-growing forms of online marketing. The assignment this week is to visit two of the social networks listed on page 438 (Facebook, Instagram, Twitter, LinkedIn, Pinterest, Snapchat, and Tumblr)  and describe their social marketing process, their business model, and how they are different from traditional marketing. If you owned a business, describe how you would use social, mobile, and local marketing in your business plan?

The requirements below must be met for your paper to be accepted and graded:

·  Write between 500-750 words (approximately 2-3 pages) using Microsoft Word.

·  Attempt APA style.  Use the APA Resources in your course for guidance.

·  Use font size 12 and 1″ margins.

·  Include a cover page and reference page.

·  At least 80% of your paper must be original content/writing.

·  No more than 20% of your content/information may come from references.

·  Use at least two references from outside the course material, preferably from EBSCOhost.  The textbook, lectures, and other materials in the course may be used, but are not counted toward the two reference requirement.

Reference material (data, dates, graphs, quotes, paraphrased words, values, etc.) must be identified in the paper and listed on a reference page.  Reference material must come from sources such as scholarly journals found in EBSCOhost, online newspapers such as The Wall Street Journal, government websites, etc.  Sources such as Wikis, Yahoo Answers, eHow, etc. are not acceptable.

Work

 See the attached file and message me for more information or instruction. 

Window Controller

  

Magic Squares – Alternative Rules for Building

• 2D arrays and initializing a ‘magic square’

• uses WindowController only to  

… step through magic squares of various size on terminal

In your textbook is a section which discusses how to build a ‘magic square’ worth of integers.

Here’s a link to a summary of both this method and the Dale ‘Variant Rules’.

You will use the ‘Variant Rules’ so… read instructions in download code and

do not get over-invested in trying to remember and recreate code from the

book! The code above is the starting code

Here is the Eventful’s Rules

One method for constructing magic squares of odd order involves placing the next number of the magic square 

diagonally down and to the right of the previous number, with the following caveats:

1. Begin by placing the number 1 in the middle of the bottom row.

2. Always assign the next number down and to the right from the current number.

3. UNLESS YOU CAN’T IN WHICH CASE:

a. One row “down” from the bottom row lands you in the top row.

b. One column “right” from the rightmost column lands you in the leftmost column.

c. If the desired cell is already occupied, then instead place the next 

number above the previous one.

But we need to do it in the Variant Rules

Switches up & down, bottom & top, above & below:

One method for constructing magic squares of odd order involves placing the next number of the magic square diagonally up and to the left of the previous number, with the following caveats:

1. Begin by placing the number 1 in the middle of the top row.

2. Always assign the next number up and to the left from the current number.

3. UNLESS YOU CAN’T IN WHICH CASE:

a. One row “up” from the top row lands you in the bottom row.

b. One column “left” from the leftmost column lands you in the rightmost column.

c. If the desired cell is already occupied, then instead place the next 

number below the previous one.

The expert’s code that needs to actually fit the other code:

package javatest;

Assignmnet

1. Discuss the key components of human resource management.  Pick at least four concepts from chapter nine and describe how these concepts interrelate to individual performance on a team.

2. Review table 9.2 and select one of the dimensions listed, note why it was chosen and how you relate to this behavior.  If you have a personal experience, please share.

3. How do leaders select the best talent? What are some tools they can use to select the best-talent?

Only 300 words of total   100 words each

Provide a reflection of at least 500 words (or 2 pages double spaced) of how the knowledge, skills, or theories of this course have been applied, or could be applied, in a practical manner to your current work environment. If you are not currently working, share times when you have or could observe these theories and knowledge could be applied to an employment opportunity in your field of study. 

Requirements:

Provide a 500 word (or 2 pages double spaced) minimum reflection.

Use of proper APA formatting and citations. If supporting evidence from outside resources is used those must be properly cited.

Share a personal connection that identifies specific knowledge and theories from this course.

Demonstrate a connection to your current work environment. If you are not employed, demonstrate a connection to your desired work environment. 

You should not, provide an overview of the assignments assigned in the course. The assignment asks that you reflect how the knowledge and skills obtained through meeting course objectives were applied or could be applied in the workplace. 

 Don’t forget that the grade also includes the quality of writing.

Problem 5- Planning the project

Earned-value analysis. A project budget calls for the following expenditures:TaskDateBudgeted AmountBuild formsApril 1$10,000Pour foundationApril 1$50,000May 1$100,000Frame wallsMay 1$30,000June 1$30,000Remaining tasksJuly 1 and beyond$500,000
Define each term in your own words, calculate these values for the above project, and show your work:

  1. Budgeted cost baseline (make a graph illustrating this one)
  2. Budget at completion (BAC)
  3. Planned value (PV) as of May 1
  4. Earned value (EV) as of May 1 if the foundation work is only two-thirds complete. Everything else is on schedule.
  5. SV as of May 1.
  6. Actual cost as of May 1 is $160,000. Calculate the cost variance (CV) as of May 1.
  7. Schedule performance index (SPI)
  8. Cost performance index (CPI)
  9. Estimate to complete (ETC), assuming that the previous cost variances will not affect future costs
  10. Estimate at completion (EAC)

Text-

Title: Project Management 

Subtitle: https://opentextbc.ca/projectmanagement/ 

ISBN: 978-1-77420-013-1 

Authors: Adrienne Watt 

Publisher: BCcampus 

Publication Date: August 14, 2014 

Edition: 2nd Edition

Sales Force Related

Two questions should be no longer than one page using no smaller than 11 point size

font and must restate and address the following questions.

1.What skills and experience qualify you for this Salesforce data analyst /developer?

Include your personal or professional accomplishments that have prepared you to

serve in the role as a Salesforce data analyst /developer.

2. What steps would you take to deal with frequently changing priorities and high

customer demands? Please include examples from your work history.

Internship Reflection

1. What have you learned on the job till now?
150 words

2. What process do you have for solving problems that you don’t know the answer to right away?
150 words

3. How might you suggest we alter our curriculum to better prepare you for work?
150 words

4. How will you use what you are learning to get a better job?
150 words