Questions
Describe/ explain how the teacher would differentiate the strategy to accommodate student need in identifying three...

Describe/ explain how the teacher would differentiate the strategy to accommodate student need in identifying three standard related to phonic and word recognition

In: Psychology

What do you do when you're stressed? How effective is your coping strategy? Word Count must...

What do you do when you're stressed? How effective is your coping strategy? Word Count must 150-200.

In: Psychology

Prepare a 350 word paper describing how the concept "compression of morbidity” may change the way...

Prepare a 350 word paper describing how the concept "compression of morbidity” may change the way in which health care for the elderly is delivered.

In: Psychology

What is the phonological similarity effect? How do both this effect and the word-length effect suggest...

  1. What is the phonological similarity effect? How do both this effect and the word-length effect suggest that rehearsal in the phonological loop is an articulatory process?

In: Psychology

Summarize the 2008 economic crisis while highlighting the causes, consequences, and the national as well as...

Summarize the 2008 economic crisis while highlighting the causes, consequences, and the national as well as international systemic risk. (2 pages – 400 word

In: Finance

Please answer the following question in 175 word response: Can you explain the gross profit ratio...

Please answer the following question in 175 word response:

Can you explain the gross profit ratio and why it is so important to organizations?

In: Accounting

Create a C program that solves the word search puzzle contained in the file 'WordSearchPuzzle.txt'. The...

Create a C program that solves the word search puzzle contained in the file 'WordSearchPuzzle.txt'. The words that need to be found are in the file 'WordList.txt'.

There are 100 words to be found. You must find the location of the first and last letter of each word as well as the cardinal direction that describes the word's orientation. The location of first and last letters are to be described in terms of row and column, with indexing starting at 0 and originating from the top left corner. See below for an example.

Example:

A Y U O E R
X D K N W N
G Q O T J S
H B I V M C

For the word 'BONE', the first letter, 'B', is in row 3, column 1; the last letter, 'E', is in row 0, column 4. The word is orientated in an ascending diagonal direction such that it is read starting at the bottom left and finishing at the top right; this word is said to be 'headed' in a 'North East' (NE) direction.

Directions:

North West(NW)
North (N)
North East (NE)
East (E)
South East (SE)
South (S)
South West (SW)
West (W)
You must print each found word in a new file (all results in same file, new line for each result). For the example above, below is the output that should be written to the results file:

BONE found @ (3, 1) - (0, 4) : NE

Note the capitalization of the word and cardinal direction, and the spacing between the rest of the words and other characters.

Requirements:

Create a set of functions and structures that solve the puzzle
Write results to a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GP
CUICBOGEYMANJPDXBZBXANUMSQQWIKGEBMJCMTHGPEDTELLRIJ
TASKXYZEXFNBCIZRYJCLEPLKRGDERUNVJJYFMPWAXIOVTTUZYL
ENNLSALXFGOGAGNOEWFAXPHIASCBMROFMOTNAHPIERUYLMOICQ
TWJDESPROCDISCKNJSCFNQUMTFXRKTETVSSYEHOMEKCWZTZRNO
MRPXYHWBVRIUJAUKOGZTDSJACKALOPEKRAKENZRAWJABROXDFQ
UMIOSMITEVLFIYLSYZYWVBUJLDWEDBKXBDYGGACLUASIGKVLRB
DUICMFAAJAPFFSZTTREATSCSDVCRLRQDHOXDGGKXAWBUIOIAUV
XHCTKQYNRRMAADUCYABPTYQIOUTHASANMHWOWUKWLANPFXFPFZ

WordList.txt

ABACUS
ALIEN
BANSHEE
BASILISK
BAT
BEAST
BEHEMOTH
BLOODYMARY
BOGEYMAN
BONE
BOO
CADAVER
CANDYMAN
CEMETERY
CHUD
CHUPACABRA
COBWEB
COFFIN
CORPSE
CRONENBERG
CRYPT
CTHULHU
DARK
DARKNESS
DEATH
DEMENTOR
DEMON
DEVIL
DUNGEON
EERIE
ELDONNA
ELF
FENRIR
FRIGHT
GHOST
GHOUL
GOBLIN
GORE
GRAVEYARD
HALLOWEEN
HAUNTED
HOMUNCULUS
HYOSUBE
IMP
JACKALOPE
JACKOLANTERN
JINN
KRAKEN
KRAMPUS
KRUEGER
LAMIA
LILIN
LLORONA
LYCAN
MACABRE
MARA
MEDUSA
MIDNIGHT
MORBID
MUMMY
NIGHT
NIGHTMARE
NYMPH
OCTOBER
OGRE
PHANTASM
PHANTOM
POLTERGEIST
PUCKWUDGIE
QAREEN
REAPER
RIP
ROACH
ROBOT
SCREAM
SKULL
SLENDERMAN
SPELL
SPIDER
SPOOKY
TARANTULA
THESTRAL
TOMBSTONE
TREAT
TRICK
TROLL
UNICORN
VAMPIRE
WAMPUS
WARLOCK
WENDIGO
WEREWOLVE
WHITELADY
WRAITH
WYVERN
XIAO
XINDHI
YOKAI
YUREI
ZOMBIE

In: Computer Science

In a recent survey​ conducted, a random sample of adults 18 years of age or older...

In a recent survey​ conducted, a random sample of adults 18 years of age or older living in a certain country were asked their reaction to the word socialism. In​ addition, the individuals were asked to disclose which political party they most associate with. Results of the survey are given in the table. Complete parts ​(a) through ​(c) below.

_ Democrats Independents Republicans
Positive 216 64 158
Negative 270 370 411

(a) Does the evidence suggest individuals within each political affiliation react differently to the word​ "socialism"? Use the

alpha equals 0.05

level of significance.

State the hypotheses.

A.Upper H 0: pSubscript Upper DequalspSubscript Upper RequalspSubscript Upper I

Upper H 1:At least one of the proportions is different from the others.

B.Upper H 0: Political party and reaction are independent.

Upper H 1:Political party and reaction are dependent.

C.Upper H 0:Political party and reaction are dependent.

Upper H 1:Political party and reaction are independent.

D.Upper H 0: OSubscript Upper D equalsESubscript Upper Dand OSubscript Upper R equalsESubscript Upper Rand OSubscript Upper I equalsESubscript Upper I

Upper H 1: At least one mean is different from what is expected.

Compute the​ P-value.

The​ P-value=?

Make the proper conclusion. Choose the correct answer below.

A.Yes​, there is evidence because the​ P-value is greater than alpha.

B.Yes​, there is evidence because the​ P-value is less than alpha.

C.No​, there is no evidence because the​ P-value is greater than alpha.

D.No​, there is no evidence because the​ P-value is less than alpha.

(b) Construct a conditional distribution of reaction by political party.

Democrats Independents Republicans
Positive
Negative

(c) Write a summary about the​ "partisan divide" regarding the reaction to the word​ "socialism."

A.Democrats, Independents, and Republicans all had a majority negative reaction. The proportions are likely to be equal.

B.Republicans and Independents are far more likely to react negatively to the word ​"socialism" than Democrats are. All groups had a majority negative reaction.

C.Democrats are far more likely to react negatively to the word​"socialism" than Independents and Republicans are. All groups had a majority negative reaction.

D.Republicans and Democrats are far more likely to react negatively to the word​ "socialism" than Independentsare. All groups had a majority negative reaction.

In: Statistics and Probability

2. Single step the instructions.s program through at least two exceptions. Make sure that you see...

2. Single step the instructions.s program through at least two exceptions. Make sure that you see how the flow of control is changed by comparing the source code with PCSpim windows, pay particular attention to all registers.

Question 2 (0.4): how do you recognise that the normal program flow has been interrupted?

Question 3 (0.5): how can you find out what exception condition has occurred and what caused it?

#--------------------instruction.s---------------------
# This program implements:
#       sum = 0;
#       i = 9;
#       do {
#               sum = sum + A[9-i]
#               B[9-i] = sum;
#               i--;
#       }
#       until (i = 0) 


                .globl main     
main:
                add     $t2, $0, $0     # sum = 0  (sum is in $t2)
                add     $t1, $0, $0     # Set $t1 to point to beginning of data
                lw      $t4, 84($t1)    # Constant 4 stored in $t4
                lw      $t0, 88($t1)    # Constant 9 stored in $t0 (i)
                lw      $t5, 92($t1)    # Constant -1 stored in $t5
                add     $t1, $t1,$t4    # A starts at 4 (move $t1 to point to A)
loop:
                lw      $t3, 0($t1)     # $t3 has A[k]
                add     $t2, $t2, $t3   # sum = sum + A[k]
                sw      $t2, 40($t1)    # B[k] = sum
                add     $t1, $t1, $t4   # update address pointer
                add     $t0, $t0, $t5   # i--
                beq     $t0, $0, done   # if i = 0 go to done
                j       loop            # if i > 0 go to loop
done:   
                add     $t1, $0, $0     # Set $t1 to point to beginning of data
                sw      $t2, 0($t1)     # sum is stored
                li      $v0, 4          # print_str
                la      $a0, message    # load address of string 
                syscall                 #
                li      $v0, 1          # print_int
                lw      $a0, sum        # load integer value
                syscall                 #
                jr      $ra             # return to the main program
                add     $0, $0, $0      # nop


                .data
sum:            .word   0
A:              .word   0, 1, 2, 3, 4, 5, 6, 7, 8, 9
B:              .word   0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Four:           .word   4
Nine:           .word   9
Minus1:         .word   -1
message:        .asciiz "\nThe value of sum is:  

In: Computer Science

c++ ///////////////////////////////////////////////////////////////////////// need to be named Subsequences.h and pass test cpp file SubsequenceTester.cpp at the end...

c++

/////////////////////////////////////////////////////////////////////////

need to be named Subsequences.h and pass test cpp file SubsequenceTester.cpp at the end of this question.

This assignment will help you solve a problem using recursion

Description

A subsequence is when all the letters of a word appear in the relative order of another word.

  • Pin is a subsequence of Programming
  • ace is a subsequence of abcde
  • bad is NOT a subsequence abcde as the letters are not in order

This assignment you will create a Subsequence class to do the following:

  • Add a constructor that takes only a single word argument
  • Add a bool isSubsequence(string sub); a method that will return true if sub is a subsequence of the original word.
  • Overload the operator<< using a friend function, such that information is given about the class. This will be used for your own debugging

Hints

Think about the following questions to help you set up the recursion...

  • What strings are subsequences of the empty string
  • What happens if the first character of the subsequence matches the first character of the text?
  • What happens if it doesn't

Submission

To get you thinking of data good test cases, only the example test cases have been provided for you in the SubsequenceTester.cpp. It is your responsibility to come up with several other test cases. Think of good ones

////////////////////////////////////////////////////

SubsequenceTester.cpp

#include <iostream>
#include "Subsequences.h"

using namespace std;

void checkCase(string, string, string, bool);

int main()
{
    /**
        Add several more test cases to thoroughly test your data
        checkCase takes the following parameters (name, word, possible subsequence, true/false it would be a subsequence)
    **/

    checkCase("Case 1: First Letter", "pin", "programming", true);
    checkCase("Case 2: Skipping Letters", "ace", "abcde", true);
    checkCase("Case 3: Out of order", "bad", "abcde", false);

    return 0;
}


void checkCase(string testCaseName, string sub, string sentence, bool correctResponse){
    Subsequences s(sentence);
    if(s.isSubsequence(sub) == correctResponse){
        cout << "Passed " << testCaseName << endl;
    }
    else{
        cout << "Failed " << testCaseName << ": " << sub << " is " << (correctResponse? "": "not ") << "a subsequence of " << sentence << endl;
    }
}

In: Computer Science