Java Programming

 Submit copies of any Java source code files you created or modified:

  • PizzaOrder.java
  • DiceSimulation.java

Submit the word processing document that contains the screen shots showing you have successfully executed the DiceSimulation.java program for the three cases: once where you used a while loop, a second time where you used a do-while loop, and a third time where you used a for loop.Name the word processing document containing the screen shots that demonstrate successful execution of the DiceSimulation.java program in a file named ” XYLab2.docx“, where ” X” and ” Y” are your first and last initials.Include a comment containing your full name in all Java source code files that you create or modify. 

Lab exercise

   

Payroll Lab

You will be taking in a file (payroll.txt) which details a number of departments (at least 1) and in each department are a set of employees (each department will have at least 1 employee or it would not appear on the payroll sheet). Your job is to read the file in separate out each employee and calculate the total values (hours, salary, number of employees) for each department and in each category (F1, F2, F3, F4). In your final submission please include the .cpp file which should work for any kind of payroll file I supply (which will naturally match the format of the examples below). Be sure to indicate in your submission text if you have attempted any of the bonus points .

   

An example file:

The IT Department
Bill 8 7 8 9 7 F1
Bob 205103 0.08 F3
Betty 8 8 7 8 8 F2
Brandon 10 10 9 6 9 F2
Brad 9 8 10 9 9 4 1 F4

The Sales Department
Kyle 88840 0.105 F3
Tyler 105203 0.085 F3
Konner 8 6 7 6 9 F2
Sam 309011 0.045 F3
Kent 9 8 9 9 9 0 0 F4
EOF

An additional example file:

The Sales Department
Mike 5 6 1 3 5 F1
Mark 98103 0.115 F3
Jill 8 8 8 8 8 F2

Frank 106101 0.095 F3

Mark 76881 0.091 F3

Department of Records
Konner 8 6 7 6 9 F2
Tammy 7 3 7 2 8 F1

Anika 8 8 8 8 8 F2

Marta 1 0 0 5 2 F1
Kent 9 8 9 9 9 0 0 F4
EOF

   

Last in the row after the hours comes the pay grade (F1, F2, F3, F4). The number of hours recorded is based on the pay grade of the employee. F1 and F2s will have 5 numbers for their hours. F3s are commission based where a sales amount and a commission percentage is given. F3s are also assumed to work 30 hours if their commission is 10% or below and 40 hours if their commission is above 10%. F4s will have 7 numbers (as they are on-call during the weekend). Each of the pay grades will also have different pay calculations which are as follows:

F1 = The total number of hours * 11.25
F2 = (The total number of hours – 35) * 18.95 + 400
F3 = The total sales amount * the commission rate
F4 = The first 5 hourly totals * 22.55 + Any weekend hourly totals (the last 2) * 48.75

Your output to the screen should start with the department name, followed by the total pay for all of the employees, then the total number of hours, and the total number of employees. After that you should have a breakdown of each category of employee: F1 total pay and total hours, F2 total pay and total hours…

Each department will have at least 1 employee and each department will contain the word “Department.”

The IT Department
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##
Roster: Bill, Bob, Betty, Brandon, Brad 

   

F1:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

F2:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

F3:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

F4:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

   

The Sales Department
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##
Roster: Kyle, Tyler, Konner, Sam, Kent

   

F1:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

F2:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

F3:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

F4:
Total Salary: $##.##
Total Hours: ###
Total Number of Employees: ##

   

Before coding your solution, take the time to design the program. What are the possible things that the file can have that you need to anticipate? What are the actions that you need to take (read the file, add up hours…)? Are those actions things that could be placed in separate functions? What about the function – can you guess some of the things that will happen? Such as, using substring to pull out part of a line in the file maybe using stoi to convert a string to an integer to add it to the total or creating variables to hold the employee type you find before passing it to another function. Finally, how are these functions called, what is the order and what information is passed to and from? 

Scoring Breakdown

25% program compiles and runs
30% program reads in and calculates the figures for output
10% the program is appropriately commented
35% outputs the correct information in a clear format 

5% bonus to those who can output the F# responses in a columned output like that shown above.

5% order the employees in the roster according to their F status, F1’s first, then F2’s and so on.
5% bonus to those who do a chart comparing the data at the end to show the relation between the pay grades and the amount of salary spent in each (they style of chart is up to you and more points may be given for more difficult charts (like a line chart):

   

B Department
F1 – 00000000
F2 – 000000
F3 – 00000
F4 – 000000000000 

K Department
F1 – 0
F2 – 0000
F3 – 0000000000
F4 – 0000000 

  

Or event something like this instead:

0
0 0
0 0 0
0 0 0 0
0 0 0 0
F1 F2 F3 F4

Help Help

 

In this assignment, we will address risk tolerance and planning for risk. Project managers are responsible for collaborating with teams to create mitigation and contingency plans for certain risks in a project proposal. This assignment explores the differences between risks that can be mitigated and those that need to have a contingency plan. Risks are constant in any projects you will be on; understanding how to manage them will be a key factor to your success in the role of project manager.

In your Risk Management Plan (RMP), include the following:

  1. Risk analysis: Develop and provide support for the acceptable level of risk that your project is willing to absorb.

  1. Risk identification: Identify the project team members and stakeholders that are involved in the decision process and why each decision maker is critical to the process.

  1. Probability of Risk: Review the RAID log created in Topic 4. Rank each risk in one of three rankings: high, medium, or low, for both impact to the project if the risk is realized and the probability of the risk being realized during the project. Using this information, create a probability matrix to depict the different levels of risk and fill it out during the final step of this assignment.

  1. Risk response planning: Create a contingency or mitigation plan depending upon the risk levels identified. Any risks ranked as “medium” or “high” that lack a risk management plan will require justification as to why no plan is needed.

Submit your assignment using the following format as one Word document for this assignment:

  1. RMP

  1. Embed or insert the updated RAID log for the project as an appendix to the RMP

Prepare this assignment according to the guidelines found in the APA Style Guide

See attach Rubric and Topic 4 document that would help complete the assignment 100%

Need help in Homework

 Threat Modeling 

A new medium-sized health care facility just opened and you are hired as the CIO. The CEO is somewhat technical and has tasked you with creating a threat model. The CEO needs to decide from 3 selected models but needs your recommendation. Review this week’s readings, conduct your own research, then choose a model to recommend with proper justifications. Items to include (at a minimum) are:

  • User authentication and credentials with third-party applications
  • 3 common security risks with ratings: low, medium or high
  • Justification of your threat model (why it was chosen over the other two: compare and contrast)

You will research several threat models as it applies to the health care industry, summarize three models and choose one as a recommendation to the CEO in a summary with a model using UML Diagrams  

Week 5 DQ

Research what transformational management/leadership is and how it differs from transactional leadership. Briefly explain when each of these styles of management might be appropriate. 

Note: 250 words with intext citations and 2 references needed.

Discussion topics

 

There are TWO tasks that you would need to do( they are separate): 

Task 1 (Minimum 250 words): 

Using the MLB steroids case as an example, explain how unethical choices by some players harms players who comply with the rules. 

– Minimum two references. 

TASK 2:

Write a reply to the two responses in the attached document ( Response 1 and Response 2) with 250 words for each. 

There should be no plagiarism. Attach a plagiarism report with 0 % similarity index.

Discuss the risks of avoiding confrontation of a problem employee.

Discuss the risks of avoiding confrontation of a problem employee.

Primary/Initial post to Discussion Question: 

Your initial post/response to each module’s discussion forum question(s) should be at least 200 words. 

Secondary Responses/Posts to Peer Posts: 

Respond to at least 2 other postings with 100 words each, attached student question, Your primary posting can end with a “tagline” or a related question of your own. Your secondary postings can either answer another student’s question, or comment on their answering my question. In addition, please ensure that you answer all of my questions.

homework 1 / python

  

PART 1

Describe the difference between objects and values using the terms “equivalent” and “identical”. Illustrate the difference using your own examples with Python lists and the “is” operator.  

Describe the relationship between objects, references, and aliasing. Again, create your own examples with Python lists.

Finally, create your own example of a function that modifies a list passed in as an argument. Describe what your function does in terms of arguments, parameters, objects, and references

Create your own unique examples for this assignment. Do not copy them from the textbook or any other source.

Part 2

Write a Python program that does the following. 

· Create a string that is a long series of words separated by spaces. The string is your own creative choice. It can be names, favorite foods, animals, anything. Just make it up yourself. Do not copy the string from another source. 

· Turn the string into a list of words using split

· Delete three words from the list, but delete each one using a different kind of Python operation. 

· Sort the list. 

· Add new words to the list (three or more) using three different kinds of Python operation. 

· Turn the list of words back into a single string using join

· Print the string. 

 Part 3

Provide your own examples of the following using Python lists. Create your own examples. Do not copy them from another source. 

· Nested lists 

· The “*” operator 

· List slices 

· The “+=” operator 

· A list filter 

· A list operation that is legal but does the “wrong” thing, not what the programmer expects 

Provide the Python code and output for your program and all your examples.

Computer network and Telecommunication

In a 3-5-page, APA-formatted paper, describe three approaches to detecting errors, including how the approaches work, the probability of detecting an error, and any other benefits or limitations. Make sure to support your thoughts and ideas with the reliable outside, academic, and peer-reviewed resources that are properly identified, cited, and referenced.