In: Economics
Andy is an instructor at a local community college in Texas.
Andy has worked in the military for 25 years, only recently
retiring. Students in his criminal justice courses comment that
he's very authoritative. He provides you with his experience and
his opinions even if they are unwanted. Andy is not open to
students' experiences, cultural differences, or opinions and that
is evident in his lecture.
Andy is white and his classroom is diverse. Last semester, the
majority of students gave Andy a poor assessment and his job was in
jeopardy. Larry is white and was also in the military for 10 years
and can relate to Andy's authoritarian set up in class and enjoys
this level of teaching, it's what he knows. The majority of
students are from bordering communities in Mexico.
How can Andy improve his teaching skills moving forward? Choose all
that apply.
Select one or more:
a. Andy can provide questionnaires (anonymous if need be) to his students on the first day of class about what they find to be important things to discuss
b. Andy can be more like a facilitator than a lecturer offering his students a way to express their cultural background in a nurturing environment
c. Embrace the diversity
d. Andy is exhibiting ethnocentrism and should be terminated
e. Nothing, Andy has worked too long in the military and is not capable of changing
Question text
Andy is an instructor at a local community college in Texas.
Andy has worked in the military for 25 years, only recently
retiring. Students in his criminal justice courses comment that
he's very authoritative. He provides you with his experience and
his opinions even if they are unwanted. Andy is not open to
students' experiences, cultural differences, or opinions and that
is evident in his lecture.
Andy is white and his classroom is diverse. Last semester, the
majority of students gave Andy a poor assessment and his job was in
jeopardy. Larry is white and was also in the military for 10 years
and can relate to Andy's authoritarian set up in class and enjoys
this level of teaching, it's what he knows. The majority of
students are from bordering communities in Mexico.
If you were Andy's supervisor, what would you suggest? Choose all
that apply.
Select one or more:
a. Sit in Andy's classroom to observe his lecturer or have another faculty member sit in
b. Provide Andy with additional training on cultural sensitivity as it relates to the classroom
c. Ask Andy more about his military background, maybe other classes would be better suited for him to teach
d. Nothing, let Andy go. There are plenty of qualified instructors in the employment pool.
Question text
Bill is a deputy director for a public-sector employer,
overseeing approximately 200 employees. He has been with the
company for 30 years. One of Bill's managers, Irene is having
difficulty with an employee, Danny, a white male in his 30s.
Irene is also white.
Danny has been saying inappropriate things to his all-female team
about their clothing. Bill is also white. The female coworkers are
Hispanic and African-American. Bill tells Irene to handle it. Irene
attempts to, but is looking to Bill for guidance. Bill says that he
is uncomfortable and instructs Irene to handle it, again. In the
meantime, the coworkers continue to feel harassed by Danny and his
use of offensive language.
Bill and Irene are uncomfortable. This is the very definition
of:
Select one:
a. Privilege
b. White privilege
c. Poor management skills
d. Lack of education
e. All of the above
In: Operations Management
I. General Description In this assignment, you will create a Java program to read undergraduate and graduate students from an input file, and write them in reverse order to an output file. 1. The input file name and the output file name are passed in as the first and second arguments at command line, respectively. For example, assume your package name is FuAssign5 and your main class name is FuAssignment5, and your executable files are in “C:\Users\2734848\eclipse-workspace\CIS 265 Assignments\bin”. The following command line will read from a local file “students.txt” and write to a local file “students_reversed.txt”: C:\Users\2734848\eclipse-workspace\CIS 265 Assignments\bin > java FuAssign5.FuAssignment5 students.txt students_reversed.txt 2. You need to specify the command line arguments if you use jGrasp or Eclipes. I will show you on jGrasp on Wed. during the lab. 3. The parameter String[] args in the main method contains the command line arguments, where args[0] contains the first argument. For example, in the previous command, args[0] contains students.txt, and args[1] contains students_reversed.txt. 4. If the program is run with incorrect number of arguments, your program must print an error message and exit. The error message must show correct format to run your program, e.g., “Usage: FuAssign5.FuAssignment5 input_file output_file” where FuAssign5 is the package and FuAssignment5 is the main class. 5. Each line in the input file represents a student. There are 5 fields in each line: name, id, gpa, “graduate” or “undergraduate”, isTransfer (for undergraduate) or college (for graduate). The fields are separated by comma, “,”. For example, the input file students.txt file may contain: Michelle Chang,200224,3.3,graduate,Cleveland State University Tayer Smoke,249843,2.4,undergraduate,false David Jones,265334,2.7,undergraduate,true Abby Wasch,294830,3.6,graduate,West Virginia 6. The program will read the lines and create undergraduate students or graduate students accordingly. The students are added to an ArrayList. 7. The program then writes the list of students in reserve order to the output file. 8. Given the previous input file students.txt, the output file, students_reserved.txt, will be: Abby Wasch,294830,3.6,graduate,West Virginia David Jones,265334,2.7,undergraduate,true Tayer Smoke,249843,2.4,undergraduate,false Michelle Chang,200224,3.3,graduate,Cleveland State University II. Implementation Requirements The program must implement a main class and three student classes (Student, UndergradStudent, GradStudent). • You may reuse the code from previous assignments. 2 • However, the Student class must be declared as an abstract class now. It must also have an overloaded printStudent(PrintWriter output) method. The method will write student’s information to the output file using the PrintWriter output. • Accordingly, the UnderGradStudent and GradStudent classes must also have an overloaded printStudent(PrintWriter output) method. They must use the superclass’ method to write student’s information. The UnderGradStudent’s printStudent(PrintWriter output) writes “undergraduate” and isTransfer after that. The GradStudent’s printStudent(PrintWriter output) writes “graduate” and college after that. • The UML class diagram should be as follows. • All classes must be in the same package. The package name must start with your last name. For example, if your last name is “Trump”, your package name must start with “Trump” such as “TrumpCIS265AS3”, “TrumpAS3”, etc. • You main class file name must start with your last name. For example, if your last name is “Fu”, your main class file name must start with “Fu” such as FuAssignment5.java. • Since I/O exceptions are checked exceptions, your program must handle exceptions. You may use the try/catch or throw IOException. To throw exceptions, you declare it as: public static void main(String[] args) throws IOException { • You must create an ArrayList of Students in the main class: import java.util.ArrayList; ArrayList students = new ArrayList<>(); The ArrayList students will store all Student objects created, both undergraduate students and graduate students. • The Student class must have a constructor that takes a name, an id, and a gpa, to create a Student object. • The UndergradStudent class must have a constructor that takes a name, an id, a gpa, and a transfer status to create an UndergradStudent object. The constructor must call the Student’s constructor using super. • The GradStudent class should must a constructor that takes a name, an id, a gpa, and a college to create a GradStudent object. The constructor must call the Student’s constructor using super. Student -name: String -id: int -gpa: float +Student() +Student(name,id,gpa) +pringStudent():void +getID():int +printStudent(PrintWriter output):void UndegradStudent -boolean: isTransfer +UndergradStudent(name,id,gpa,isTransfer) +pringStudent():void +printStudent(PrintWriter output):void GradStudent -college:String +GradStudent(name,id,gpa,college) +pringStudent():void +printStudent(PrintWriter output):void 3 • The Student class must have a public method printStudent(PrintWriter output) that writes the student’s name, id, and gpa to the PrintWriter output. • The UndergradStudent class must override the printStudent(PrintWriter output) method. It must write the student’s name, id, gpa, and transfer status to the PrintWriter output. It should call the Student’s printStudent(PrintWriter output) to write student’s name, id, and gpa. • The gradStudent class must override the printStudent(PrintWriter output) method. It must write the student’s name, id, gpa, and college to the PrintWriter output. It should call the Student’s printStudent(PrintWriter output) to write student’s name, id, and gpa. • Your program must use dynamic binding to invoke the correction printStudent(PrintWriter output) method. • Your program must close both input and output files after they are done. • You can assume that input file has the correct format. You will earn bonus points for handling incorrect input formats. III. Submission This is an individual assignment. Each student needs to submit the source code files of the Java program on Blackboard. 1. Put all you Java files in a folder. Please name the folder after your package name, for example, FuAssign5. Compress the folder into a .zip file and submit the .zip file. 2. You need to only submit the source code, i.e., the Java files. 3. You may submit multiple time. Your most recent submission before the deadline will be graded. IV. Grading 1. A program that does not run will receive 0 point. 2. There is a 10-20 points deduction for each major error, e.g., missing a student in the output. 3. There is a 1-9 points deduction for each minor error, e.g., a spelling error in printed message. 4. A program that does not follow the guidelines will lose 1-10 points. 5. Any type of cheating is not tolerated. You may be asked to explain your program in person. V. Bonus features (optional) If a line in the input file has incorrect format, your program will print an error message with the line, skip the line and continue. The following are possible formatting errors your program can handle: 1. (2 points) if the line does not have 5 fields; 2. (2 points) if the id is not an integer; 3. (2 points) if the gpa is not a float; 4. (2 points) if the 4th field is not “undergraduate” or “graduate”; 5. (2 points) if the 5th field for an undergraduate student is not true or false. For example, for the following lines in the input file, Sam Jackson,215.22,3.9,graduate,Ohio State University Sam Jackson,215443,22af,graduate,Ohio State University Sam Jackson,215443,3.9,graduate Sam Jackson,215443,3.9,graduate,Ohio State University,cleavland Sam Jackson,215443,3.9,nondegree,Ohio State University Lady Gaga,230940,3.1,undergraduate,unknown 4 You program will print : Invalid input: Sam Jackson,215.22,3.9,graduate,Ohio State University Invalid input: Sam Jackson,215443,22af,graduate,Ohio State University Invalid input: Sam Jackson,215443,3.9,graduate Invalid input: Sam Jackson,215443,3.9,graduate,Ohio State University,cleavland Invalid input: Sam Jackson,215443,3.9,nondegree,Ohio State University Invalid input: Lady Gaga,230940,3.1,undergraduate,unknown The incorrect lines will be ignored and not written to the output file. The corrected formatted lines should be
In: Computer Science
For the following two questions you need to provide a code in C 1. Build a double linked list with 5 in the first node following the instructions: Insert a node with 3 at the top of the list Insert a node with 10 at the bottom of the list Insert a node with 7 between nodes with 5 and 10 2. Start deleting nodes from the list in the following order; Delete the node with 7 Delete the node with 3 Delete the node with 10 3. Print the resulting list forward and backwards.
In: Computer Science
Write a program that removes a target item (a string) from a
list of strings, and
that will print out the list without the item. Do not use built-in
functions other than
input, print, and append. Instead, you may generate a new list that
does not
include the target item and you can use the append() function. Your
program
should read two inputs: the target and the list. For example, if
the input is “apple”
and the list is [‘berry’, ‘apple’, ‘pear’, ‘orange’], the outputs
should be [‘berry’,
‘pear’, ‘orange’] .
In: Computer Science
Given a csv file named “result_niwtawq.csv”, extract the data from it. Store the first column data to a list named time, second column data to a list named Turb_annual_avg, third column data to a list named Turb_min, fourth column data to a list named Turb_max, fifth column data to a list named Turb_mean. Calculate and write the average, maximumand minimumof Turb_min to a file named “lab3_output.txt”.
https://dropbox.cse.sc.edu/pluginfile.php/256369/mod_assign/introattachment/0/result_niwtawq.csv?forcedownload=1
In: Computer Science
I need to only cout "grocery list" if the user actually entered items. If they didnt enter any items it should just cout "No need for groceries!". Everything else in the program is fine.
#include <iostream>
#include <vector>
using namespace std;
// function prototypes
char chooseMenu();
vector <string> addItem(vector <string>);
void showGroceries(vector <string> list);
// 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;
}
void showGroceries(vector <string> list)
{
cout<<"Grocery list"<<endl;
for(int i=0; i<list.size();i++)
{
cout<<i+1<<"."<<list[i]<<endl;
}
while (list.empty())
{
cout<<"No need for groceries!";
break;
}
}
In: Computer Science
Question:
Rotate and sort the list:-
In this problem, you have to first implement a singly linked list whose each node should have the following attributes,
● key - a positive integer
● next - address/pointer/reference to the next node in the linked list You will receive Q1 queries of following types,
● 1 x - Append a node to the linked list whose key should be x. After appending, print, in a new line, the key of each node in the linked list separated by a single space.
● 2 x - Delete the node in the linked list whose key is x.If such a node is not present in the linked list, no changes should be made. After this, print, in a new line, the key of each node in the linked list separated by a single space. The deleted node, if any, should be added in another linked list. Then you will receive Q2 queries of the following type,
● k - The linked list should be rotated towards right by |k| steps if k > 0, otherwise the linked list should be rotated towards left by |k| steps. k will always be an integer. Once all of the above Q2 queries are done, print, in a new line, the key of each node in the linked list separated by a single space. Then you have to merge the two linked lists together after sorting (by key), each of them using the merge sort algorithm. Once done, print in a new line, the key of each node in the linked list separated by a single space. Note that the linked list in the end should also be sorted by key.
Input Format - The first line will contain a positive integer, Q1 , following which there will be Q1 lines containing queries as described above. Then the very next line will contain a positive integer Q2 following which will be Q2 lines containing queries as described above.
Output Format - Q1 + 2 lines with space separated values of the key of each node in the linked list as explained above.
Constraints ● 0 < Q1 < 1000
● 0 < Q2 < 10000
● 0 < key, x < 1000
● -100 < k < 100
In: Computer Science
Use Java programming to implement the following:
Implement the following methods in the UnorderedList class for managing a singly linked list that cannot contain duplicates.
Then write the program that accepts a sequence of commands and print out the number of successful insertions, the number of successful deletions, the number of successful searches (through the “find” command), the number of items remaining in the list after executing all commands and the final contents of the list.
There are 3 commands which are “insert”, “delete” and “find”.
Input
Line 1: The number of transactions m on the list, where 1 m 200.
Line 2 to m+1: A string command (“insert”, “delete”, “find”) followed by an integer n (separated by a space).
Output
Line 1: Display 4 integers (each number is separated by a space) which are:
Line 2: The final contents of the list
|
Sample Input |
Sample Output |
|
3 insert 1 delete 5 find 2 |
1 0 0 1 [ 1 ] |
|
8 find 10 insert 3 insert 2 insert 1 delete 4 delete 3 insert 1 find 2 |
3 1 1 2 [ 2 1 ] |
In: Computer Science
A group of deaf college students (approximately 10 male and female students, aged 19-23 years) has requested a speaker on birth control. You have been given the assignment. With your new found knowledge of people who are hearing impaired or deaf,describe the steps you would take to plan for this presentation. Be as specific as you can in answering this question. Construct three learning objective, and then select three or more appropriate presentation/health communication/instruction method related to contraception education that might be appropriate with this group. Give a brief justification as to why you selected a particular method, and explain how the method would facilitate achieving the objective. Please justify/explain your decision. Warming up activity Materials need Identify and discuss potential challenges to effective presentation/health communication. How can you address them?
In: Nursing