Questions
Compare and contrast the theme of disillusionment in Martin Eden by Jack London and The Flivver...

Compare and contrast the theme of disillusionment in Martin Eden by Jack London and The Flivver King by Upton Sinclair.

In: Psychology

JAVA Input a phrase from the keyboard, if the phrase contains "red" or "RED" print out...

JAVA Input a phrase from the keyboard, if the phrase contains "red" or "RED" print out "red" . if the phrase contains "blue" or "BLUE" output "blue" In all other cases print "No Color" For example: If the input was "Violets are BLUE" your output should be "blue" If the input was "Singing the blues" output "blue" If the input was "I have a pure bred puppy" your output should be "red" If the input was "Today is Monday" output "No color". If the input was "My shirt is Blue" output "No color". (because you are only looking for "blue", "BLUE", "red", "RED")

In: Computer Science

Daniel is a new employee looking at contributing to a 401(k) offered through the company. How...

Daniel is a new employee looking at contributing to a 401(k) offered through the company. How will his contributions affect his tax liability?

Lower federal income tax

No change to tax liability

No change to FICA tax liability

Increase tax liability

In: Accounting

In your opinion, should young offenders have their names published in the media? Should the restriction...

In your opinion, should young offenders have their names published in the media? Should the restriction be removed? (answer should be yes)

In: Operations Management

Please make all appropriate journal entries for the following operations related to a manufacturing firm for...

  1. Please make all appropriate journal entries for the following operations related to a

manufacturing firm for the month of June.

Assume Beginning WIP for Job A & B are $300 & $500, respectively. Assume Ending WIP for Job A & B are $475 & $650, respectively.

  • The company purchased $1,200 of materials (on account)
  • The company used direct materials
    • Job A - $350
    • Job B - $200
  • The company allocated their employee efforts towards direct labor on two jobs
    • Job A - $2,300
    • Job B – $3,100
  • The company estimates a total of $240,000 in O/H over the next year. The company uses

machine hours to allocate O/H and estimates 1,600 machine hours over the next year.

  • In June, the company had the following machine hours
    • Job A – 20 hours
    • Job B – 10 hours
  • The company used $400 indirect materials & $2,000 indirect labor
  • The company incurred $1,200 depreciation on factory equipment, $500 depreciation on

office space & $300 of factory utilities

  • Be sure to record the completion of Work in Process Inventory
  • Be sure to record your end of period adjustment to address under or over applied overhead

In: Accounting

The use of sedative medications to control behaviours is controversial and has been described as being...

The use of sedative medications to control behaviours is controversial and has been described as being highly coercive and having significant effects on a person (MuirCochrane & Grace, 2017). In this essay you are required to critically discuss:

• the controversy of the use of psychotropic medications to control behaviours and manage symptoms for people who experience mental illness.

• Identify the challenging aspects for registered nurses who administer psychotropic medication to the consumer who poses significant risk of harm to self and/or others, in promoting recovery-oriented practice.

Your essay must utilise a range of national and international contemporary literature, to create an argument that identifies the complexities of this issue.

In: Nursing

what are the effective loads acting to the structure?

what are the effective loads acting to the structure?

In: Civil Engineering

In the book "The Goal" Comment on the interactions between the Marketing function and Alex Rogo's...

In the book "The Goal" Comment on the interactions between the Marketing function and Alex Rogo's plant. How did they help and hurt each other?

In: Operations Management

1. What is a transactional leader? What is a transformational leader? Explain how the two types...

1. What is a transactional leader? What is a transformational leader? Explain how the two types of leadership differ.

2. Provide three suggestions to help a person become a good listener.

In: Operations Management

Discuss why self-regulation should be thought of as occurring in a cybernetic system

Discuss why self-regulation should be thought of as occurring in a cybernetic system

In: Psychology

You are required to solve the problem on Terrain Navigation. Terrain navigation is a key component...

You are required to solve the problem on Terrain Navigation.

Terrain navigation is a key component in the design of unmanned aerial vehicles (UAVs). Vehichles such as a robot or a car, can travel on land; and vehiches such as a drone or a plane can fly above the land. A UAV system contains an on board computer that has stored the terrain information for the area in which it is to be operated, Because it knows where it is at all times (often using a global positioning system (GPS) receiver), the vehicle can then select the best path to get to a designed spot. If the destination changes, the vehicle can refer to its internal maps and recompute the new path. The computer software that guides these vechicles must be tested over a variety of land formations and topologies. Elevvation information for large grids of land is available in computer databases. One way of measuring the "difficulty" of a lanad grid with respect to terrain navigation is to determine the number of peaks in the grid, where a peak is a point that has lower elevations all around it. For this problem, we want to determine whether the value in grid position [m] [n] is peak. Assume that the values in the four positions shown are adjacent to grid position [m] [n]:

grid [m-1] [n]
grid [m][n-1] grid [m][n]    grid [m][n+1]
grid [m+1] [n]

Write a program that reads elevation data from a data file named grid1. txt. (this file you have to create and name it as grid 1.txt.) data as shown below which represent elevation for a grid that has 6 points along the side and seven points along the top ( the peaks have been highlighted and underlined):

5039 5127 5238 5259 5248 5310 5299

5150 5392 5410 5401 5352 5820 5321

5290   5560    5490 5421 5530 5831    5210

5110 5429 5430 5411 5459 5630 5319

4920 5129 4921   5821 4722 4921 5129

5023 5129 4822 4872 4794 4862 4245

Then prints the number of peaks and their locations. Assume that the first line of the data file contains the number of rows and the number of columns for the grid of information. These values are then followed by the elevation values, in row order. The maximum size of the grid is 25 rows by 25 columns.

Hints:

  1. Define and print the number of peaks and their locations in an elevation grid.
  2. input is a file containing the elevation data and the output is a listing of the location of the peaks.
  3. to specify the location of the peaks, you need to assign an addressing scheme to the data because you are going to implement this solution in c. Therefore, choose its 2D array subscripting notation.
  4. assume the top left corner is position [0][0], the row numbers increase by 1 as move down the page and the column numbers increase by 1 as move to the right.
  5. These peaks then occur at position[2][1], [2][5], and [4][3].
  6. To determine the peaks, compare a potential peak with its four neighbouring points.
  7. if all four neighboring points are less that the potential peak, then the potential peak is a real peak.
  8. the points on the edges of the array or grid cannot be potential peaks because do not have elevation information on all four sides of the points.

In: Computer Science

Should Transgender athletes be allowed to compete in the gender of their identification? Does it alter...

Should Transgender athletes be allowed to compete in the gender of their identification? Does it alter the notion of a level playing field?
1.Each side of the argument must be presented with legal and factual support and clear references to text and outside sources.
2. The essay must be presented in legal brief format. Please check textbook for an example or go to NY courts, legal forms. Findlaw.com would also be helpful.
3. The paper should be three to five pages only.
4.There are some newspaper articles on this. The Justice Department has filed paper in court last week arguing against Transgender women competing with non transgender women.

In: Operations Management

course: Applications of mobile application development What are web services and how do mobile and web...

course: Applications of mobile application development

  • What are web services and how do mobile and web applications utilize them.
  • Research and describe SOAP web services. Are they still commonplace?
  • What are REST web services and how are they used? Please provide examples.
  • What are Websockets and how are they used? Please provide examples.
  • Research GraphQL; how does using this differ from REST?

Complete the tasks listed and submit in a word document with 3 pages length

In: Computer Science

Consider all of the psychological conditions from the sections we have read, and then choose one...

Consider all of the psychological conditions from the sections we have read, and then choose one that interests you the most. Describe the psychological condition (use outside resources for a more in-depth description - remember to include your reference) and then, from the section "Therapeutic Orientations," "Psychopharmacology," or another source, choose a therapy that you think might be effective with the disorder or condition you chose. Explain your reason for "using" that therapy. (Be sure to include references for full credit)

In: Psychology

The file pokedex.txt contains partial information about 31 Pokémon that mostly come from this Pokédex. Assignment...

  • The file pokedex.txt contains partial information about 31 Pokémon that mostly come from this Pokédex.

Assignment

  • Using pokedex.py as a starting point, supply the missing functions such that interaction with a user could produce this transcript.

Pokedex.py:

1,bulbasaur,318,grass,poison
2,ivysaur,405,grass,poison
3,venusaur,525,grass,poison
4,charmander,309,fire
5,charmeleon,405,fire
6,charizard,534,fire,flying
7,squirtle,314,water
8,wartortle,405,water
9,blastoise,530,water
10,caterpie,195,bug
11,metapod,205,bug
12,butterfree,395,bug,flying
13,weedle,195,bug,poison
14,kakuna,205,bug,poison
15,beedrill,395,bug,poison
16,pidgey,251,normal,flying
17,pidgeotto,349,normal,flying
18,pidgeot,479,normal,flying
19,rattata,253,normal
20,raticate,413,normal
21,spearow,262,normal,flying
22,fearow,442,normal,flying
23,ekans,288,poison
24,arbok,448,poison
25,pikachu,320,electric
26,raichu,485,electric,psychic
27,sandshrew,300,ground
28,sandslash,450,ground
29,nidoran,275,poison
30,nidorina,365,poison
810,yeet,777,steel,fire,water,grass,electric,psychic,ice,dragon,dark,fairy,???

Transcript:

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 1

The Pokedex
-----------
Number: 1, Name: Bulbasaur, CP: 318: Type: grass and poison
Number: 2, Name: Ivysaur, CP: 405: Type: grass and poison
Number: 3, Name: Venusaur, CP: 525: Type: grass and poison
Number: 4, Name: Charmander, CP: 309: Type: fire
Number: 5, Name: Charmeleon, CP: 405: Type: fire
Number: 6, Name: Charizard, CP: 534: Type: fire and flying
Number: 7, Name: Squirtle, CP: 314: Type: water
Number: 8, Name: Wartortle, CP: 405: Type: water
Number: 9, Name: Blastoise, CP: 530: Type: water
Number: 10, Name: Caterpie, CP: 195: Type: bug
Number: 11, Name: Metapod, CP: 205: Type: bug
Number: 12, Name: Butterfree, CP: 395: Type: bug and flying
Number: 13, Name: Weedle, CP: 195: Type: bug and poison
Number: 14, Name: Kakuna, CP: 205: Type: bug and poison
Number: 15, Name: Beedrill, CP: 395: Type: bug and poison
Number: 16, Name: Pidgey, CP: 251: Type: normal and flying
Number: 17, Name: Pidgeotto, CP: 349: Type: normal and flying
Number: 18, Name: Pidgeot, CP: 479: Type: normal and flying
Number: 19, Name: Rattata, CP: 253: Type: normal
Number: 20, Name: Raticate, CP: 413: Type: normal
Number: 21, Name: Spearow, CP: 262: Type: normal and flying
Number: 22, Name: Fearow, CP: 442: Type: normal and flying
Number: 23, Name: Ekans, CP: 288: Type: poison
Number: 24, Name: Arbok, CP: 448: Type: poison
Number: 25, Name: Pikachu, CP: 320: Type: electric
Number: 26, Name: Raichu, CP: 485: Type: electric and psychic
Number: 27, Name: Sandshrew, CP: 300: Type: ground
Number: 28, Name: Sandslash, CP: 450: Type: ground
Number: 29, Name: Nidoran, CP: 275: Type: poison
Number: 30, Name: Nidorina, CP: 365: Type: poison
Number: 810, Name: Yeet, CP: 777: Type: steel and fire and water and grass and electric and psychic and ice and dragon and dark and fairy and ???

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 2
Enter a Pokemon name: RAICHU
Number: 26, Name: Raichu, CP: 485: Type: electric and psychic

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 2
Enter a Pokemon name: raichump
There is no Pokemon named raichump

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 3
Enter a Pokemon number: 26
Number: 26, Name: Raichu, CP: 485: Type: electric and psychic

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 3
Enter a Pokemon number: 34
There is no Pokemon number 34

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 4
Enter a Pokemon type: Normal
Number of Pokemon that contain type normal = 7

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 4
Enter a Pokemon type: ???
Number of Pokemon that contain type ??? = 1

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 4
Enter a Pokemon type: unknown
Number of Pokemon that contain type unknown = 0

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 5
Average Pokemon combat points = 370.71

1. Print Pokedex
2. Print Pokemon by Name
3. Print Pokemon by Number
4. Count Pokemon with Type
5. Print Average Pokemon Combat Points
6. Quit

Enter a menu option: 6
Thank you.  Goodbye!

Grading - 100 points

  • 20 points. The class Pokemon is defined (2 points) with the appropriate six methods (3 points each).
  • 5 points. The function print_menu is correct.
  • 10 points. The function print_pokedex is correct.
  • 10 points. The function lookup_by_name is correct when the Pokémon is present (7 points) and absent (3 points).
  • 10 points. The function lookup_by_number is correct when the number is present (7 points) and absent (3 points).
  • 10 points. The function total_by_type is correct when the type is present (7 points) and absent (3 points).
  • 10 points. The function average_hit_points is correct.
  • 10 points. The format of the output matches the format of the output in the transcript exactly. (2 points for each type of difference up to 10 points.)
  • 15 points - The Python solution is properly commented, easy to understand and does not contain unnecessary code. (3 points for each type of improvement up to 15 points.)

In: Computer Science