Discuss how the general adaptation syndrome may affect college students over the course of a stressful semester. Make reference to the Alarm, Resistance, and Exhaustion phases.
In: Psychology
Write 8-10 SEI strategies that can be used in a classroom with students for whom English is an additional Language as well as English only student to promote language?
In: Psychology
Using what you know about group differences, identify at least three possible reasons that minority-group students are not actively participating in classroom lessons.
In: Psychology
In: Psychology
A recent drug survey showed an increase in the use of drugs and
alcohol among local high school seniors as compared to the national
percent. Suppose that a survey of 100 local seniors and 100
national seniors is conducted to see if the proportion of drug and
alcohol use is higher locally than nationally. Locally, 67 seniors
reported using drugs or alcohol within the past month, while 63
national seniors reported using them. Conduct a hypothesis test at
the 5% level.
NOTE: If you are using a Student's t-distribution for the
problem, including for paired data, you may assume that the
underlying population is normally distributed. (In general, you
must first prove that assumption, though.)
Part (d)
State the distribution to use for the test. (Round your answers to four decimal places.)P'local − P'national
~Part (e)
What is the test statistic? (If using the z
distribution round your answer to two decimal places, and if using
the t distribution round your answer to three decimal
places.)
---Select---tz =
Part (f)
What is the p-value? (Round your answer to four decimal places.)Part (g)
Sketch a picture of this situation. Label and scale the horizontal axis and shade the region(s) corresponding to the p-value.Part (h)
Indicate the correct decision ("reject" or "do not reject" the null hypothesis), the reason for it, and write an appropriate conclusion.(i) Alpha (Enter an exact number as an integer, fraction, or decimal.)reject the null hypothesis
do not reject the null hypothesis
Since p-value > α, we do not reject the null hypothesis.
Since p-value > α, we reject the null hypothesis.
Since p-value < α, we reject the null hypothesis.
Since p-value < α, we do not reject the null hypothesis.
There is sufficient evidence to show that the proportion of local seniors using drugs and alcohol locally is higher than the proportion of seniors using drugs and alcohol nationally.
There is not sufficient evidence to show that the proportion of local seniors using drugs and alcohol locally is higher than the proportion of seniors using drugs and alcohol nationally.
Part (i)
Explain how you determined which distribution to use.The standard normal distribution will be used because the samples involve the difference in proportions.
The t-distribution will be used because the samples are independent and the population standard deviation is not known.
The t-distribution will be used because the samples are dependent.
The standard normal distribution will be used because the samples are independent and the population standard deviation is known.
In: Statistics and Probability
***IN JAVA***
Write a program contained a class Student which has firstName, lastName, mark, grade. The program should allow creation an array of object instances to assign firstName, lastName and mark from input user and perform and assign grade based on mark’s criteria displayed below.
|
MARKS INTERVAL |
95 - 100 |
90 - <95 |
85 - <90 |
80 - <85 |
75 - <80 |
70 - <75 |
65 - <70 |
60 - <65 |
0 - <60 |
|
LETTER GRADE |
A+ |
A |
B+ |
B |
C+ |
C |
D+ |
D |
F |
SAMPLE OF OUTPUT:
Enter section #: 1
How many students: 3
Enter student details:
First Name: John
Last Name: Kendall
Marks : 96
Enter student details:
First Name: Mary
Last Name: Kendall
Marks : 76
Enter student details:
First Name: Lucy
Last Name: Kendall
Marks : 76
Result for Section 1
-------------------------------------------------------------------
FirstName Last Name Grade
John Kendall A+
Mary Kendall C+
Lucy Kendall C+
Total students: 3
Average marks: 82.2 Average Grade: B
Highest: 96, by John Kendall
Location: 0
Another batch? (Yes – 1, No - 0) :> 1
Enter section #: 2
How many students: 6
Enter student details:
1)
First Name: John
Last Name: Kendall
Marks : 96
2)
First Name: Mary
Last Name: Kendall
Marks : 76
3)
First Name: Lucy
Last Name: Kendall
Marks : 76
4)
First Name: Martin
Last Name: Kendall
Marks : 86
5)
First Name: Mary
Last Name: Kendall
Marks : 76
6)
First Name: Lucy
Last Name: Kendall
Marks : 98
Result for Section 2
-------------------------------------------------------------------
FirstName Last Name Grade
John Kendall A+
Mary Kendall C+
Lucy Kendall C+
Martin Kendall B+
Mary Kendall C+
Lucy Kendall A+
Total students: 6
Average marks : 80.7 Average Grade: B
Highest: 98, by Lucy Kendall
Location: 6
Another batch? (Yes – 1, No - 0) :> 0
PROBLEM SOLVING TIPS:
|
Num |
Tips |
Grade |
|
a) |
Use class Student to create another class Students that will be built in the class implementing a Comparator. |
/1m |
|
b) |
Use for enhanced method to display the grade of student by each batches |
/1m |
|
c) |
In the main program, create sections of studlist, receive section number and number of students for each section. Use loop control structure to display output as shown in above and to assign input utilizing the studList structure. |
/3m |
|
d) |
For each section, program will control input firstname, lastname and marks received from user and add into StudList. |
/2m |
|
e) |
Use appropriate control structure to control input and program execution. |
/4m |
|
f) |
In main, use Arrays sort() method, to help find the maximum grade achieved by each class and display the name of the student. |
/3m |
|
g) |
In main, find the average performance (average section, mark and grade) of every batch and include in the output display. Formula : Average_mark = total/number of students; |
/2m |
|
h) |
Use solution for practical provided to extend the program to capable to process more than one sections of students to process. |
/ 4m |
|
TOTAL: |
/20m |
In: Computer Science
I'm Getting an "unindented error" Please fix the bolded codes. Because I don't know whats going on. Thank You.
# This program exercises lists.
# The following files must be in the same folder:
# abstractcollection.py
# abstractlist.py
# arraylist.py
# arrays.py
# linkedlist.py
# node.py
# input.txt - the input text file.
# Input: input.txt
# This file must be in the same folder.
# To keep things simple:
# This file contains no punctuation.
# This file contains only lowercase characters.
# Output: output.txt
# This file will be created in the same folder.
# All articles are removed.
# Certain prepositions are removed.
# Duplicate consecutive words are reduced to a single
occurrence.
# Note: The words "first" and "last" are not reduced.
# Certain misspelled words are flagged.
# Occurrences of "first" are moved to the front of a line.
# Occurrences of "last" are moved to the end of a line.
from arraylist import ArrayList
from linkedlist import LinkedList
# Data:
articles = ArrayList(["a", "the"])
prepositions = LinkedList(["after", "before", "from", "in", "off",
"on", "under", "out", "over", "to"])
misspellings = ["foriegn", "excede", "judgement", "occurrance",
"preceed", "rythm", "thier", ]
inputFile = open("input.txt", "r")
outputFile = open("output.txt", "w")
FIRST = "first"
FLAG = "FLAG:"
LAST = "last"
# Processing:
# Part 1:
# Removes all items from the words list that are found in the
removals list.
# Input:
# words - an ArrayList of words, no uppercase, no punctuation
# wordsIter - a list iterator for the words list
# removals - the list of words to remove
def removeItems(words, wordsIter, removals):
wordsIter.first()
while(words.hasNext()):
word = words.next()
if word in removals:
wordsIter.remove()
# Part 2:
# Removes extra occurrances of consecutive duplicate words from the
words list.
# Note: It does not reduce the words "first" and "last".
# Input:
# words - an ArrayList of words, no uppercase, no punctuation
# wordsIter - a list iterator for the words list
def reduceDuplicates(words, wordsIter):
previousWord=""
wordsIter.first()
while(words.hasNext()):
word=words.next()
if(word=="first" or word=="last"):
previousWord=word
continue
if(word==previousWord):
wordsIter.remove()
previousWord=word
# Part 3:
# Flags certain misspelled words in the words list by inserting
"FLAG:" before them.
# Input:
# words - an ArrayList of words, no uppercase, no punctuation
# wordsIter - a list iterator for the words list
# misspellings - the list of misspelled words to flag
def flagMisspelled(words, wordsIter, misspellings):
wordsIter.first()
while(wordsIter.hasNext()):
word=words.next()
if word in misspellings:
wordsIter.insert(FLAG)
wordsIter.next()
# Part 4:
# Move all occurrences of "first" to the front of the words
list.
# Input:
# words - an ArrayList of words, no uppercase, no punctuation
# wordsIter - a list iterator for the words list
def moveFirstLit(words, wordsIter):
countFirst = 0
wordsIter.first()
while (wordsIter.hasNext()):
word = wordsIter.next()
if (word == FIRST):
wordsIter.remove()
countFirst += 1
for count in range(countFirst):
wordsIter.first()
if (wordsIter.hasNext()):
wordsIter.next()
wordsIter.insert(FIRST)
# Part 5:
# Move all occurrences of "last" to the end of the words
list.
# Input:
# words - an ArrayList of words, no uppercase, no punctuation
# wordsIter - a list iterator for the words list
def moveLastLit(words, wordsIter):
countLast = 0
wordsIter.last()
while (wordsIter.hasNext()):
word = wordsIter.next()
if (word == LAST):
wordsIter.remove()
countLast += 1
for count in range(countLast):
wordsIter.last()
if (wordsIter.hasNext()):
wordsIter.next()
wordsIter.insert(LAST)
def writeOutputLine(words):
outputLine = " ".join(words)
outputLine = outputLine + "\n"
print(outputLine, end="")
outputFile.write(outputLine)
# Main processing loop:
for line in inputFile:
words = ArrayList(line.split())
wordsIter = words.listIterator()
# Make no changes to blank lines:
if (len(words) == 0):
writeOutputLine(words)
continue
# Make no changes to comment lines:
if (words[0] == "#"):
writeOutputLine(words)
continue
# Remove articles:
removeItems(words, wordsIter, articles)
# Remove prepositions:
removeItems(words, wordsIter, prepositions)
# Reduce duplicate consecutive words to a single
occurrence:
reduceDuplicates(words, wordsIter)
# Insert "FLAG:" before certain misspelled words:
flagMisspelled(words, wordsIter, misspellings)
# Move all occurrences of "first" to the front of the line:
moveFirstLit(words, wordsIter)
# Move all occurrences of "last" to the end of the line:
moveLastLit(words, wordsIter)
# Write output line:
writeOutputLine(words)
# Wrap-up
inputFile.close()
outputFile.close()
In: Computer Science
• Asthma
1. Presentation & Diagnosis • o What are the subjective findings (symptoms that the patient reports, ex: SOB) associated with the condition? List a minimum of 3. o What are the objective findings (exam findings that you can measure, ex: tachypnea) associated with the condition? List a minimum of 3. o How is the diagnosis determined or confirmed? o What factors do you need to consider in selecting the best medication for the patient with the condition?
2. Treatment • o List 3 medication treatment options for the condition in the OUTPATIENT setting (cite with appropriate guidelines or scholarly, peer-reviewed journals). o List the mechanism of action for each drug. o List 3 potential adverse responses associated with each drug. o List 3 medication teaching points for each drug prescribed.
3. Scholarly Support & Interactive Dialogue • o Discussion post is supported with appropriate sources*^ o Source is published within the last 5 years o Reference list is provided and in-text citations match o Student provides a substantive** response to at least one topic-related post of a peer o Student responds to all direct faculty questions OR if student was not asked a direct question student responds to either a 2nd peer post or a faculty question directed towards another student
In: Nursing
I have the function call showGroceries(list); I need to create a new prototype above int main that provides:
return type
function name
parameter(s) type(s)
Then copy-and-paste the prototype below int main. Give the parameter a name and then implement the function so that it takes the vector of strings and displays it so that a vector with the values:
{"milk", "bread", "corn"}
would display as:
Grocery list
1. milk
2. bread
3. corn
However, if there is nothing in the vector, instead it should display:
No need for groceries!
I have the following code
#include <iostream>
#include <vector>
using namespace std;
// function prototypes
char chooseMenu();
vector <string> addItem(vector <string>);
// main program
int main() {
vector <string> list;
char choice;
cout << "Welcome to Grocery List Manager\n";
cout << "===============================\n";
do{
choice = chooseMenu();
if( choice == 'a' || choice == 'A' ){
list = addItem(list);
}
}while( choice != 'q' && choice != 'Q' );
showGroceries(list);
return 0;
}
// function definitions
char chooseMenu()
{
char input;
// Menu input/output
cout << "Menu\n----\n";
cout << "(A)dd item\n";
cout << "(Q)uit\n";
cin >> input;
cin.ignore();
return input;
}
vector <string> addItem(vector <string>A)
{
string input;
// item input/output
cout << "Enter item:\n";
getline(cin,input);
A.push_back(input);
return A;
}
In: Computer Science
1) Write a python program that opens a file, reads
all of the lines into a list of strings, and closes the file. Use
the Readlines() method. Test your programing using the names.txt
file provided.
2) Convert the program into a function called loadFile, that
receives the file name as a parameter and returns a list of
strings.
3) Write a main routine that calls loadFIle three times to load the
three data files given into three lists. Then choose a random
element from the title list, two from the name list, and one from
the descriptor list to generate a name. Print the name be in the
form shown (you have to add the "the"):
title name name the descriptor
For example:
King Ludovicus Botolf the Bowman
Print the name to the screen.
Submit your python file (.py) to Sakai
Part 2: Writing Files (Optional Extra Credit 20 pts)
Modify the program to generate 10 names and store them in a
list.
Write a function, dumpFile that writes the list to a file called
"CharacterNames.txt" There should be one Character Name on each
line in the file.
Test the program to be sure it works
Im stumped at number 2
here is what i have for number 1
f = open('names.txt', 'r')
lines = f.readlines()
for line in range(len(lines)):
lines[line] = lines[line].rstrip()
print(lines)
f.close()
In: Computer Science