In a program, write a method that accepts

  

In a program, write a method that accepts two arguments: an array and a number n. Assume that the array contains integers. The method should display all of the numbers in the array that are greater than the number n. Add javadoc and comments to your code. Be sure your code is formatted with proper indentation. Submit your one .java file here.

Computer 9

Objectives

The student will be able to analyze an organizational task/scenario and select the appropriate information system or application software to satisfy the organizational requirements. The student will be able to create basic Office Support System documents to satisfy some of those requirements. The student will also be able to demonstrate their skill with Internet based research methods and find relevant/reliable information for a variety of purposes.

Assignment Overview

  • Imagine you are employed as a Help Desk Support person working for “XYZ Company”. Today you are tasked with logging and resolving your first IT Support Ticket on your own.
  • You will need to record a variety of information about the issue and come up with a resolution based on your knowledge of Computer Information Systems learned in readings/videos throughout the course.

Case Background

Meet Pavan. Pavan is a new employee at “XYZ Company”. Pavan will be working in the Human Resources Department as an Human Resources (HR) Generalist. 

Pavan does not yet have any hardware or software to begin working and has contacted you at Help Desk Support to get set up. Pavan mentioned that each of the other HR Generalists have a laptop computer, a docking station, two monitors, a keyboard, and mouse.

You also know that Pavan will need access to Microsoft Office 365 for accessing company documents/emails and QuickBooks for recording employee hours and pay information.

Pavan would like to get his access set up as soon as possible because he already has employees reaching out to him for assistance with pay issues and his boss asking when he can get started.

Case Requirements

After reading the case background and class materials, fill in the IT Support Ticket Template provided with relevant information.

  1. Give the ticket issue a name/title and issue description.
  2. List the hardware, software, or other components that are part of this issue. Are there any items you think Pavan or you might be forgetting (maybe ERP access)? If so, feel free to use your imagination and to add your ideas to your ticket. Consider what you have learned in each chapter and how it can be helpful with this issue.
  3. Name the people and processes impacted by Pavan’s issue.
    1. Pavan is the one with the issue but consider others who might be impacted by him not being able to do his work with Payroll and what department they might be in. 
  4. Go do some internet research to price a few of the items Pavan needs and enter these numbers into the budget.
    1. Note that all answers will vary and there is no right or wrong number here. The important component of this part of the assignment is that you can identify hardware and software and do some basic research to find those resources.
  5. Once you have considered all the components that are a part of this issue and identified anything needed to set up Pavan, please write Pavan an email in the second tab of the template (Part 2 – Resolution).
    1. Ensure you let Pavan know that you have resolved his issue and are closing his ticket.
    2. Also let him know what you did to resolve his issue successfully.

Foundations of Emergency Management

  

What are the strengths and weaknesses of the National Response Framework (NRF)? Would disaster response be more efficient if the federal government had the authority to assume power over any disaster response, regardless of the ability of local response agencies? Why or why not?

Note:- Please find the instructions in the attached document.

Literature Review

A literature review should be written on my topic, I will be providing the data by uploading them here. I have already uploaded my research overview in which there is enough information and you can still add references and data if you want to.

I have uploaded the required format as a screenshot.

Exp19_Excel_Ch05_ML1_RealEstate

 

Exp19_Excel_Ch05_ML1_RealEstate

 

Project Description:

You are a real estate analyst who works for Mountain View Realty in the North Utah County area. You have consolidated a list of houses sold during the past few months and want to analyze the data. For a simple analysis, you will outline the data and use the Subtotal feature. You will then create two PivotTables and a PivotChart to perform more in-depth analysis.

Download Searches.java

1.

 Download Searches.java; this file defines a Searches class providing versions of  the

search algorithms linearSearch and binarySearch. Make sure

the Searches class compiles before continuing.

2. Make these algorithms generic, so that they will work on any object type. Using the

techniques described in Chapter 2, modify each method: change the types of  the

parameters, and (if  appropriate) local variables, to use the type specifier T for each

method.

Note: for static methods, Java requires us to add  after the keyword static.  So for

example: 

public static boolean contains( …etc…)

3. Next, because we want to search for any kind of  objects and not just ints, we have to be

careful about how we compare them (both for equality and greater than/less than). The

operators for primitive types will no longer work correctly. You know that every class

inherits or overrides the equals method from Object. This will work in place of  the

== operator for the linear searches.

For other comparisons, as in binarySearch, take advantage of 

the compareTo method provided by the Comparable interface. Use this method in

place of  greater than/less than operators.  

You can read up on this interface in the text, Chapter 5, page 314-315; the basic idea is

that we can compare any objects which implement the interface using the following

method:

public int compareTo(String anotherString) // this is the

version for the String class

This method returns the value 0 if  the strings are equal; a value less than 0

if this string is lexicographically less than anotherString; and a value greater

than 0 if this string is lexicographically greater than anotherString. 


Note that we will simply use this method and assume that it is defined for the types

used with our search methods. You do not have to implement your own!

4. Now we have three generic methods that will work on different types of  objects.  The

trouble is, if  I call these methods with an array of  objects that don’t

implement Comparable, this code will fail. We’d like to ensure that the type parameter

used by our generic methods “screens out” object types that aren’t searchable. We do that

by using this extended form of  generics:

>

What does all that mean?  For our purposes, focus in on the first part: here, T is just the

type parameter and  constrains that type parameter to

be one that provides a compareTo method, thereby implementing

the Comparable interface. If  you add this more complex form of  type parameter,

things that can’t be compared won’t compile if  someone tries to pass an array of  a noncomparable

type.

5.

 

6. Write a short program SearchTest.java to test your methods with two different array

types. Do 2 successful searches and 2 unsuccessful searches with each method and print

the results. Use these array declarations:

   Integer[] testInts = {-12, -7, -4, -2, 0, 3, 5, 9, 13,

18, 22, 45};

7.    String[] buildings = {“All Saints”, “Breslin”, “duPont”,

“Fulford”, “Gailor”, “Guerry”, “McClurg”, “Spencer”,

“Woods”};

java coding

A Fighter/Mage is one of the stronger multi-classes at the end of Baldur’s Gate 2, the seminal role-playing video game (cRPG) developed by BioWare. For character creation of a Fighter/Mage, the highest dice rolls should be allocated to strength (STR), intelligence (INT), dexterity (DEX), and constitution (CON) – in that order – and the lower statistics should go into wisdom (WIS) and charisma (CHA). Fill in code at the three (3) places marked YOUR CODE HERE. Upload your program.

 

import java.util.ArrayList;

import java.util.Collections;

import java.util.List;

import java.util.Random;

public class Main {

public static class dndCharacter {

private String name;

private int STR;

private int INT;

private int DEX;

private int CON;

private int WIS;

private int CHA;

public dndCharacter(String myName) {

name = myName;

List statList = new ArrayList();

// get 6 random stats

for (int i = 0; i < 6; i++) {

statList.add(characterStat());

}

// order statList low to high

Collections.sort(statList);

// access elements with statList.get(index) for index f

rom 0 to 5

// assign the character statistics high to low STR INT

DEX CON WIS CHA

// with values from the ordered statList

// YOUR CODE HERE

}

public String about() {

String aboutMe = “”;

aboutMe += “Hi! My name is ” + name+”n”;

aboutMe += “I am a Fighter/Mage”+”n”;

if (STR + INT + DEX + CON + WIS + CHA > 6 * 9) {

aboutMe += “I am rather good at questingn”;

aboutMe += “Strength: ” + STR+”n”;

aboutMe += “Intelligence: ” + INT+”n”;

aboutMe += “Dexterity: ” + DEX+”n”;

aboutMe += “Constitution: ” + CON+”n”;

aboutMe += “Wisdom: ” + WIS+”n”;

aboutMe += “Charisma: ” + CHA+”n”;

} else {

aboutMe += “But enough about me…”;

}

// create the correct return statement

// YOUR CODE HERE

}

static int characterStat() {

Random random = new Random();

int d1 = random.nextInt(5) + 1;

int d2 = random.nextInt(5) + 1;

int d3 = random.nextInt(5) + 1;

int d4 = random.nextInt(5) + 1;

int diceSum = d1 + d2 + d3 + d4;

int min = Math.min(d1, d2);

min = Math.min(min, d3);

min = Math.min(min, d4);

diceSum -= min;

return diceSum;

}

}

public static void main(String[] args) {

// YOUR CODE HERE

// modify myName to initialize dndCharacter

Main.dndCharacter FighterMage = new dndCharacter(“”);

System.out.println(FighterMage.about());

}

}