Questions
Many professors have a policy that punishes individuals if the don’t come to class. Instead of...

Many professors have a policy that punishes individuals if the don’t come to class. Instead of punishing students who do not attend class, what could professors do to provide a positive incentive to come to class?

In: Psychology

Nine principles of successful nursing leadership Principle #4: Create and develop leaders An old adage is,...

Nine principles of successful nursing leadership

Principle #4: Create and develop leaders

An old adage is, “If your unit or department can run without you, you have done your job.” This is true, so develop your succession plan early. You can’t doo it all alone. Identify your informal and formal leaders and invest in them. Take them to meetings with you; have them provide presentations to the staff and senior-level leaders. Find opportunities to highlight their strengths and minimize their weaknesses. Train them to be the next leaders.

I need to write a response to why this would be a good leadership style for a discussion board

In: Nursing

At what levels are unemployment liabilities incurred? What are some additional employer-borne liabilities that exist with...

At what levels are unemployment liabilities incurred? What are some additional employer-borne liabilities that exist with having employees?

In: Accounting

Todd’s Direct, a major TV sales chain headquar-tered in New Orleans, is about to open its...

Todd’s Direct, a major TV sales chain headquar-tered in New Orleans, is about to open its first outlet in Mobile, Alabama, and wants to select a site that will place the new out-let in the center of Mobile’s population base. Todd examines the seven census tracts in Mobile, plots the coordinates of the center of each from a map, and looks up the population base in each to use as a weighting. The information gathered appears in the following table. CENSUS TRACT POPULATION IN CENSUS TRACT X, Y MAP COORDINATES 1. 101 2,000(25, 45) 2. 102 5,000 (25, 25) 3. 103 10,000 (55, 45) 4. 104 7,000 (50, 20) 5. 105 10,000 (80, 50) 6. 106 20,000 (70, 20) 7. 107 14,000 (90, 25) a) At what center-of-gravity coordinates should the new store be located? b) Census tracts 103 and 105 are each projected to grow by 20% in the next year. How will this influence the new store’s coordinates

In: Operations Management

Write a Python program to simulate a very simple game of 21 •Greet the user. •Deal...

Write a Python program to simulate a very simple game of 21
•Greet the user.
•Deal the user a card and display the card with an appropriate message.
•Deal the user another card and display the card
.•Ask the user if they would like a third card. If so, deal them another card and display the value with an appropriate message.
•Generate a random number between 10 and 21 representing the dealer’s hand. Display this value with an appropriate message.
•If the user’s total is greater than the dealer’s hand and the user’s total is NOT greater than 21, the user wins, otherwise the dealer wins. Display the player’s and the dealer’s totals along with an appropriate message indicating who won.

In: Computer Science

Question 1- Theories Examine the Moffitt Developmental Theory, Coercion Development Model and the Developmental Dual Systems...

Question 1- Theories

Examine the Moffitt Developmental Theory, Coercion Development Model and the Developmental Dual Systems Model of Adolescent Risk Taking.

Compare and contrast these three development theories.

Which do you agree with the strongest and why? Please bring in outside resources to support your rationale.

In: Psychology

•From the e-Activity, determine what you believe is the most critical component of BCP from FEMA’s...

•From the e-Activity, determine what you believe is the most critical component of BCP from FEMA’s implementation / suggestions for the BCP process. Justify your answer. •Determine whether or not you believe the BCP process would be successful without proper BIA processes being conducted. Explain why or why not

In: Computer Science

Pharmacists have, in the past, had a marketing problem. While this has improved over time, they...

Pharmacists have, in the past, had a marketing problem. While this has improved over time, they still have a long path ahead of them until they are effectively spreading the message about their skills and abilities to everyone who needs to know.

Reflect on your work over the past year. Identify a service that pharmacists are qualified to provide (ex: diabetes education). This truly can be anything within their scope of practice. (Recall: Under a collaborative practice agreement, their scope of practice is whatever the collaborating provider allows).

When you have identified this service, consider who needs to know that you are providing this service and how you will let them know. Answer the following questions regarding the service :

1) Explain the current situation from the point of view of all relevant stakeholders (patients, prescribers, pharmacy staff, etc.) What would you like the situation to look like for all the stakeholders when the service is fully implemented?

2) What strengths do you have that you would be able to use in implementing this service?

3) What are your weaknesses that will limit your ability to implement this service?

4) What are the major budget considerations for implementing this service? Specifically, a) what makes this profitable? b) what are the necessary inputs and resources needed to provide the service?  

5) Who is your target audience?

6) What do you intend to do to gain attention, interest, desire, and action to implement the campaign?

In: Operations Management

Describe your opinion of why some collaborative interfaces, such as email, are much more popular than...

Describe your opinion of why some collaborative interfaces, such as email, are much more popular than others, such as video-conferencing. Compare and contrast your method with at least two of your peers' responses.

In: Computer Science

Write C++ statements that will align the following three lines as printed in two 20 character...

Write C++ statements that will align the following three lines as printed in two 20 character columns.

Item                                                    Price

Banana Split                                                   8.90

Ice Cream Cake                                            12.99

In: Computer Science

CSIS 113A C++ Programming Level1 Rock, Paper, Scissors Introduction In this assignment you will create a...

CSIS 113A C++ Programming Level1

Rock, Paper, Scissors

Introduction

In this assignment you will create a program that will simulate the popular children’s game “Rock, Paper, Scissors”; using only Boolean logic and practice using the for-loop and logical operators as well as continue getting used to data of various types.

Skills: string input/output, data types, logical operators, and control structures

Rock-Paper-Scissors

Rock-Paper-Scissors is a game where two players, on the count of 3, show the rock/paper/scissors symbol with their hand. Rock smashes scissors, scissors cuts paper, and paper covers rock:

Once both players have played valid gestures, there are two ways to determine the winner: one using string comparison and Boolean logic and the other using modular arithmetic; you’ll write a solution using both approaches. For this assignment, only “rock”, “paper”, and “scissors” are considered valid gestures.

Definitions:

1. Valid game: a game in which both players select a valid gesture

2. Invalid game: a game in which a player selects a gesture that is not “rock”, “paper”, or “scissors”. (HINT: DeMorgan’s law will help negation of valid game)

main.cpp

Your program should use a for-loop to play 7 consecutive games (must be a variable) of Rock-PaperScissors determining the winner using only the four decision statements. For each game, your program should:

1) Prompt Player 1 for their selection. The inputs for each game are given below. a. If Player 1 enters an invalid selection you should update the count of invalid games and then begin a new game.

2) Prompt Player 2 for their selection. The inputs for each game are given below.

a) If Player 2 enters an invalid selection you should update the count of invalid games and then begin a new game.

3) If both players have selected a valid gesture determine the winner using string comparison and if/else logic.

4) For each valid game completed, update the count of the number of wins by Player 1, the number of wins by Player 2, or the number of ties as needed.

Test input:

• Game 1: Player one plays “scissors” and Player 2 plays “paper”

• Game 2: Player 1 plays “paper” and Player 2 plays “papers”

• Game 3: Player 1 plays “rock” and Player 2 plays “rock”

• Game 4: Player 1 plays “rocks”

• Game 5: Player 1 play “paper” and Player 2 plays “scissors”

• Game 6: Player 1 plays” scissors” and Player 2 plays “rock”

• Game 7: “Player 1 plays “paper” and Player 2 plays “rock”

Test Run: Your code should look exactly like the one below

Player 1 Enter Selection: scissors

Player 2 Enter Selection: paper

Player 1 Enter Selection: paper

Player 2 Enter Selection: papers

Player 1 Enter Selection: rock

Player 2 Enter Selection: rock

Player 1 Enter Selection: rocks

Player 1 Enter Selection: paper

Player 2 Enter Selection: scissors

Player 1 Enter Selection: scissors

Player 2 Enter Selection: rock

Player 1 Enter Selection: paper

Player 2Enter Selection: rock

=============================

Games Won

=============================

Player 1: 2

Player 2: 2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tie Games : 1

Invalid Games : 2

=============================

struct Player{
  String gesture;
  int wins{};
};

int main() {
  // TODO: (1) declare constant for the number of games to play
  
  // TOOO: (2) declare and initailize your other counters here (number of ties, invalid games)
  
  Player player_1;
  Player player_2;
  
  // TODO: (12) wrap in for-loop once working for 1 game. 
  
  // TODO: (3) get user input for player 1, commented out correct code for now, simulating with rock first
  player_1.gesture = "rock";
//   cout << "Player 1 enter selection: ";
//   getlline(cin, player_1.gesture);
  
  // TODO: (5) write a boolean proposition here, finish what it should be, notice how the name reads
  bool gesture_is_rock;
  bool gesture_is_paper;
  bool gesture_is_scissors;
  
  bool is_valid_gesture;
  
  // TDOO: (6) determine if player 1 entered invalid move
  if (!is_valid_gesture) {
    // TODO: (7) what should be done if invalid? How do you continue the loop
    
  }
  
  // TODO: (8) Do the exact same for Player 2 reusing the boolean variables 
  
  // TODO: (9) Determine if there was a tie, otherwise, there was a win
  bool is_tied_game;
  
  if (is_tied_game) {
    // TODO: (10) what should be done if tie?
    
  }
  else {
    // TODO: (11) consider how player one can win:
    bool player_1_wins;
    
    if (player_1_wins) {
    }
    else {
    }
  }
  
   // TODO: (4) Setup the way the output should be displayed based on the document

  return 0;
}

In: Computer Science

In this assignment, you will create a Java program to search recursively for a file in...

In this assignment, you will create a Java program to search recursively for a file in a directory.

• The program must take two command line parameters. First parameter is the folder to search for. The second parameter is the filename to look for, which may only be a partial name.

• If incorrect number of parameters are given, your program should print an error message and show the correct format.

• Your program must search recursively in the given directory for the files whose name contains the given filename. Once a match is found, your program should print the full path of the file, followed by a newline.

• You can implement everything in the main class. You need define a recursive method such as: public static search(File sourceFolder, String filename) For each folder in sourceFolder, you recursively call the method to search.

• A sample run of the program may look like this: //The following command line example searches any file with “Assignment” in its name

%java Assign7.Assignment6

C:\CIS 265 Assignment

C:\CIS 265\AS 2\Assignment2.class C:\CIS 265\AS 2\Assignment2.java C:\CIS 265\AS 3\CIS265\Assignment3.class C:\CIS 265\AS 3\CIS265\Assignment3.java C:\CIS 265\AS 4\Assignment4.gpj

Hi please tell me what to input exactly, thanks

In: Computer Science

Requirements: The company that needed the flowchart and pseudocode for calculating the final price of the...

Requirements: The company that needed the flowchart and pseudocode for calculating the final price of the TV set and sound bar has given you the responsibility of creating a program for that purpose. The requirements remain the same as those indicated for the flowchart: The program will be used to enter the price of the TV set and the sound bar, in that order. The place of residence will also be entered in order to calculate the sales tax Residents of New Jersey pay 6.625% sales tax Residents of New York City pay 8.875% sales tax. • Residents of New York State (outside New York City) pay 4.375% sales tax The place of residence will be entered as NJ, NYC or NYS After the calculation is performed, the final result will be displayed

In: Computer Science

Describe Connie’s attitude during the exposition of Where Are You Going, Where Have You Been? How...

Describe Connie’s attitude during the exposition of Where Are You Going, Where Have You Been? How does this this attitude contribute to the story's conflict?

In: Psychology

Benjamin Franklin once suggested that failure to plan is a plan to fail. Thus, is it...

Benjamin Franklin once suggested that failure to plan is a plan to fail. Thus, is it critical that business plans are developed that chart the future direction of the organization. Should the business plan remain static, or should it change over time? Should the personnel plan (aka HRM plan) remain consistent and static, or should it too change over time? Why or why not? Please support your response through research and example.

In: Operations Management