Questions
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

Discuss internal audit’s role for detecting and preventing corrupt practices within an organization, as well as...

  1. Discuss internal audit’s role for detecting and preventing corrupt practices within an organization, as well as the importance of ensuring that management has effective systems in place to detect and prevent corrupt practices.

In: Accounting

In Python write a function with prototype “def wordfreq(filename = "somefile.txt"):” that will read a given...

In Python write a function with prototype “def wordfreq(filename = "somefile.txt"):” that will read a given file that contains words separated by spaces (perhaps multiple words on a line) and will create a dictionary whose keys are the words and the value is the number of times the word appears. Convert each word to lower case before processing.

In: Computer Science

Please solve me this question and send me the video clip how to do it This...

Please solve me this question and send me the video clip how to do it

This problem contains loops, sorting arrays, random generation, and variable matching.

Include an analysis (data requirements) and algorithm in your reply.

Write a “lottery engine” program to simulate drawing lottery numbers. You will draw 7 numbers, randomly selected from 1 to 16.

a) Allow the user to enter their own selection of numbers first,

Example numbers: 2 3 7 9 10 11 15

b) then run your “lottery engine” to select the “winning numbers”. Numbers are drawn randomly.

Use the clock as the seed value for your random function (Hint: use “srand(clock());” ).

c) Be sure to remove duplicate entries.

d) Print out the draw result as it was generated (unsorted), then sort the array and print out the sorted numbers.

Example output:

Draw unsorted: 2 12 16 14 7 13 1

Draw sorted: 1 2 7 12 13 14 16

e) Then print out the matching numbers selected by the user:

f) Also print the sorted user selection and draw results and matching numbers to a TXT file called “Results.txt”.

Example output

Draw sorted: 1 2 7 12 13 14 16

User’s sorted: 2 3 7 9 10 11 15

Matching numbers: 2 – 7

In: Computer Science

a piece of solid lead weighing 6.5 kg at 327 degrees celsius receives 150000 joules of...

a piece of solid lead weighing 6.5 kg at 327 degrees celsius receives 150000 joules of heat.. in what state is the lead after this occurs? the latent heat of fusion for lead is 23200 J/kg

In: Physics

Johnson Company leases computer equipment to customers under sales-type leases. The equipment has no residual value...

Johnson Company leases computer equipment to customers under sales-type leases. The equipment has no residual value at the end of the lease and the leases do not contain purchase options. Johnson desires a return of 8% interest on a five-year lease of equipment with a fair value of $970,425.

(The present value of an annuity due of $1 at 8% for five years is 4.313.) OR

(Hint: Change the calculator setting to BGN for the annuity due.)

What is the annual lease payment?

)What is the total amount of interest revenue that Johnson will earn over the life of the lease?

In: Accounting