Questions
IN Java please 1. Define a class called ListExercise containing one data field: a list of...

IN Java please

1. Define a class called ListExercise containing one data field: a list of integer. Create two constructor methods, one accessor(getter) method and one mutator(setter) method for the ListExercise class.

2. Implement a reverse(int[] a) method to reverse the elements in the list. For example, reverse(Arrays.asList(new int[ ]{1,2,3})) should return {3,2,1}.

3. Implement a swapValue(List a, int i, int j) to swap the values in index i and j.

4. Implement a pickMost(int[] a) method to pick the most frequent value. For example pickMost(Arrays.asList(new int[] {1, 2, 3})) returns 1 or 2 or 3 and pickMost(Arrays.asList(new int[]{1,1,2})) returns 1.

5. Implement a checkPathenthesis(String exp) method to check if a string has matching pairs of parenthesis. For example, checkPathenthesis(“)))(((“) should return false and checkPathenthesis(“(())“) returns true.

In: Computer Science

1. Explain why the evaluation of the effect of a training program on earnings using a...

1. Explain why the evaluation of the effect of a training program on earnings using a non-experimental study is likely to suffer from selection bias.
2. Why is random assignment of participants to control and treatment group a central feature of lab, social and field experiments?
3. According to Falk and Fehr (2003), what are three objections to lab experiments?
4. What is attrition bias?






Answer those questions in few sentences Thank u so much

In: Math

Discuss why mangers must understand E-commerce? (25 marks) NB: Use APA referencing style.

Discuss why mangers must understand E-commerce?

NB: Use APA referencing style.

In: Computer Science

Instructions Write a program in C++ that create a LookupNames project. In the main function: Ask...

Instructions

Write a program in C++ that create a LookupNames project.

In the main function:
Ask the user to enter a number of names, X to quit input.
Store the names in an array.
Also use a counter variable to count the number of names entered.

Write a function displayNames to display the names.
The function must receive the array and the counter as parameters.

Write a function called lookupNames.
The function must receive the array and the counter as parameters.
Ask the user to enter a letter.
Display all the names with the letter that was entered as the first letter of the name.

Call the displayNames and lookupNames functions from the main function.


Tip: declare your functions above the main() function:

void displayNames(char array[][60], int count)
{
// function code here
}

int main()
{
// main code here
displayNames(names, number);
// possible more code here
}

Tip2: make sure your function parameter matches the data type you send as an argument to that function.
In the above example, names and array should have the same data type, and number and count should have the same data type.


Enter name (X to quit input): John Peterson
Enter name (X to quit input): Diane Lee
Enter name (X to quit input): James Smith
Enter name (X to quit input): Frank Xaba
Enter name (X to quit input): Jacky Mokabe
Enter name (X to quit input): x


List of Names

John Peterson
Diane Lee
James Smith
Frank Xaba
Jacky Mokabe

Enter a letter: J

Names starting with the letter J

John Peterson
James Smith
Jacky Mokabe

In: Computer Science

Assignment #1: Sorting with Binary Search Tree Through this programming assignment, the students will learn to...

Assignment #1: Sorting with Binary Search Tree Through this programming assignment, the students will learn to do the following: 1. Know how to process command line arguments. 2. Perform basic file I/O. 3. Use structs, pointers, and strings. 4. Use dynamic memory. This assignment asks you to sort the lines of an input file (or from standard input) and print the sorted lines to an output file (or standard output). Your program, called bstsort (binary search tree sort), will take the following command line arguments: % bstsort [-c] [-o output_file_name] [input_file_name] If -c is present, the program needs to compare the strings case sensitive; otherwise, it's case insensitive. If the output_file_name is given with the -o option, the program will output the sorted lines to the given output file; otherwise, the output shall be the standard output. Similarly, if the input_file_name is given, the program will read from the input file; otherwise, the input will be from the standard input. You must use getopt() to parse the command line arguments to determine the cases. All strings will be no more than 100 characters long. In addition to parsing and processing the command line arguments, your program needs to do the following: 1. You need to construct a binary search tree as you read from input. A binary search tree is a binary tree. Each node can have at most two child nodes (one on the left and one on the right), both or either one can be empty. If a child node exists, it's the root of a binary search tree (we call subtree). Each node contains a key (in our case, it's a string) and a count of how many of that string were included. If he left subtree of a node exists, it contains only nodes with keys less than the node's key. If the right subtree of a node exists, it contains only nodes with keys greater than the node's key. You can look up binary search tree on the web or in your Data Structure textbook. Note that you do not need to balance the binary search tree (that is, you can ignore all those rotation operations) in this assignment. 2. Initially the tree is empty (that is, the root is null). The program reads from the input file (or stdin) one line at a time; If the line is not an empty line and the line is not already in the tree, it should create a tree node that stores a pointer to the string and a count of 1 indicating this is the first occurrence of that string, and then insert the tree node to the binary search tree. An empty line would indicate the end of input for stdin, an empty line or end of file would indicate the end of input for an input file. If the line is not an empty line and the line is already in the tree, increase the count for that node indicating that there are multiple instances of that line. 3. You must develop two string comparison functions, one for case sensitive and the other for case insensitive. You must not use the strcmp() and strcasecmp() functions provided by the C library. You must implement your own version. You will be comparing the ASCII values. Note that using ASCII, all capital letters come before all lower case letters. 4. Once the program has read all the input (when EOF is returned or a blank line encountered), the program then performs an in-order traversal of the binary search tree to print out all the strings one line at a time to the output file or stdout. Next to the line include a count of how many times that line appeared. If the selection was for case insensitive then you should include either the first choice encountered, the last choice encountered or all capital letters. 5. Before the program ends, it must reclaim the tree! You can do this by performing a post-order traversal, i.e., reclaiming the children nodes before reclaiming the node itself. Make sure you also reclaim the memory occupied by the string as well. 6. It is required that you use getopt for processing the command line and use malloc or calloc and free functions for dynamically allocating and deallocating nodes and the buffers for the strings. It is required that you implement your own string comparison functions instead of using the corresponding libc functions. Here's an example: bash$ cat myfile bob is working. david is a new hire. Bob is working. alice is bob's boss. charles doesn't like bob. bash$ ./bstsort myfile 1 alice is bob's boss. 2 bob is working. 1 charles doesn't like bob. 1 david is a new hire. Please submit your work through the inbox as one zip file. Follow the instructions below carefully (to avoid unnecessary loss of grade): You should submit the source code and the Makefile in the zip file called FirstnameLastnameA1. One should be able to create the executable by simply 'make'. The Makefile should also contain a 'clean' target for cleaning up the directory (removing all temporary files and object files). Make sure you don't include intermediate files: *.o, executables, *~, etc., in your submission. (There'll be a penalty for including unnecessary intermediate files). Only two files should be included unless permission is given for more, those would be bstsort.c, and Makefile. If you feel a need to include a bstsort.h file, please send me a note asking for permission. Late submissions will have a deduction as per the syllabus. • If the program does not compile and do something useful when it runs it will not earn any credit. • If a program is plagiarized, it will not earn any credit. • If a program uses a bstsort.h file without permission it will not earn any credit.

In: Computer Science

How could the uses and gratifications theory and cultivation theory relate to your own life?

How could the uses and gratifications theory and cultivation theory relate to your own life?

In: Psychology

Write 5 paragraph Discussing a Movies or a Music or a Toys that you remember watching/playing/listening...

Write 5 paragraph Discussing a Movies or a Music or a Toys that you remember watching/playing/listening to as a kid and how these compare against socialized roles (whether it be male, female or both)

In: Operations Management

When you looking for the anxiety levels in males and females and are running a t...

When you looking for the anxiety levels in males and females and are running a t test for two categorical variables what type of T test would you run?

How do you write the Ho and Ha when the question asks if there is a significant difference in the means?

In: Math

FinCorp is a mid-size financial company. A couple of years ago FinCorp decided to establish a...

FinCorp is a mid-size financial company. A couple of years ago FinCorp decided to establish a fullfledged EA practice to accommodate with the growing problems around non-transparency of its IT investments and poor business and IT alignment in general. In order to boost its EA initiative, the company decided to purchase a specialized software tool for enterprise architecture. For this purpose, its IT leaders studied the available offerings on the EA tool market, contacted most promising vendors, organized meetings with vendor representatives and listened to their presentations. As a result, FinCorp had selected and acquired a rather powerful and expensive tool for enterprise architecture from a well-known vendor. Then, the company had installed and configured the tool, established a central repository for storing architectural information and sent its architecture team to a special training supplied by the tool vendor. After the training, architects had documented most areas of the organizational IT landscape and associated business processes in the EA repository and started to update this information to keep it current. Architects were also impressed with the modeling, visualization and analytical capabilities offered by their new EA tool. However, FinCorp’s CIO is pretty skeptical towards the chosen EA tool. He believes that the company is only wasting money on the tool as it is essentially nothing more than a sophisticated repository of Page | 8 Asia Pacific International College Pty Ltd. Trading as Asia Pacific International College 55 Regent Street, Chippendale, Sydney 2008: 02-9318 8111 PRV12007; CRICOS 03048D Approved: 14/02/2019, Version 1 current-state information. Furthermore, the tool is used by only 4-5 people in the entire organization (all architects), does not facilitate informed decision-making among business stakeholders in any sense and does not contribute to achieving the original objectives of the EA initiative to improve business and IT alignment.

Questions

1. What is wrong with the installed EA tool?

2. Is the tool adding value to FinCorp?

3. How can the tool be used to facilitate business and IT alignment?

4. What should be done to maximize the value of the tool for the company

In: Operations Management

(Determining the Operating Model of a Multi-Profile Company) MultiCorp is a diversified, multi-profile company. Essentially, it...

(Determining the Operating Model of a Multi-Profile Company) MultiCorp is a diversified, multi-profile company. Essentially, it is a conglomerate company consisting of three diverse strategic units acting as independent businesses under separate brands in different industry sectors: Unit Alpha, Unit Beta and Unit Gamma. MultiCorp is governed from the central head office, which oversights the three subsidiary business units and their financial performance indicators, though without any operational interventions. Each strategic business unit has its own managing director with full discretion and responsibility over its competitive strategy, investment priorities, budget allocation and ensuing yearly profits. Unit Alpha is in the food manufacturing business. The unit produces and distributes a variety of goods including, but not limited to, vegetables, groceries, meat and dairy products. Each of these product lines requires unique production processes, storage arrangements, transportation approaches and underlying equipment and is organizationally implemented by a separate specialized product department. However, these products are delivered largely to the same circle of customers, including both major retailers and local food shops. All product lines are also served by a number of common unit-wide functions, e.g. HR, finance, accounting, logistics, legal, marketing and sales support. Unit Beta competes in the restaurant business. Specifically, the unit controls a chain of small fastfood restaurants occupying the low-cost market niche. In total, the chain includes more than 80 restaurants located in different geographies and more restaurants are planned to be opened in the foreseeable future. All restaurants offer same interiors, menus, prices, meals and services to their customers and imply standardized policies, working procedures and supporting equipment. However, each restaurant is run separately by a chief manager responsible for its overall financial well-being and all necessary business processes, e.g. recruiting, training, procurement, cooking, servicing, cleaning and complaints management. With the exception of Unit Beta’s lean central office, where chain-wide branding, marketing and other strategic decisions are made, the Page | 7 Asia Pacific International College Pty Ltd. Trading as Asia Pacific International College 55 Regent Street, Chippendale, Sydney 2008: 02-9318 8111 PRV12007; CRICOS 03048D Approved: 14/02/2019, Version 1 restaurants operate independently from each other and even have their own profit and loss statements. Finally, Unit Gamma runs a chain of resort hotels. These hotels gravitate towards the high-end price segment and offer premium-quality services to their customers. Unit Gamma’s competitive strategy implies improving its brand recognition and achieving consistent customer experience. For this purpose, the unit’s leadership plans to standardize all customer-facing and, to a lesser extent, backoffice processes across all hotels of the chain as well as all its suppliers and service providers. Moreover, Unit Gamma also intends to become “closer” to its customers and build lifelong customer relationships. This strategy requires collecting more information about customers, their individual preferences and transaction histories, aggregating this information globally and leveraging it for providing customized services, launching loyalty programs, developing special offers and promoting personalized discounts.

Questions

1. What is an operating model of MultiCorp and each of its three strategic business units?

2. What particular business processes are standardized company-wide and within each of its business units?

3. What specific types of data are integrated across the whole company and each of its business units?

4. What is the highest-level structure of the IT landscape in the company and in each of its business units?

In: Operations Management

Which philosophical position(s) seem to be more aligned with the standards movement? Least? Is having a...

Which philosophical position(s) seem to be more aligned with the standards movement? Least? Is having a coherent personal educational philosophy more important at certain grade level(s) than others? In some content areas more than others? In some types of schools (e.g., urban vs. suburban) more than others?

Book: Intro to Teaching (6th)

In: Psychology

Exhibit: Vaccination. A public health official is planning for the supply of influenza vaccine needed for...

Exhibit: Vaccination.

A public health official is planning for the supply of influenza vaccine needed for the upcoming flu season. She took a poll of 280 local citizens and found that only 113 said they would be vaccinated.

(For this exhibit, avoid rounding intermediate steps and round your final solutions to 4 digits)

1. Assuming that the population of the city is very large, construct the 91% confidence interval for the true proportion of people who plan to get the vaccine and provide the lower and upper bound of the confidence interval below. (Give your solution as a decimal fraction)

2. Now, assume that the town’s population is 1,400. Construct the 91% confidence interval and provide the lower and upper bound of the confidence interval below. (Give your solution as a decimal fraction)

3. How would you be wrong if the town’s population was in fact 1,400 but you computed the confidence interval not taking into account the finite population correction factor? Explain.

In: Math

You have a choice of handling a binary classification task using number of misclassifications as the...

You have a choice of handling a binary classification task using number of misclassifications as the performance measure and maximizing the margin between the two classes as the performance measure. On what factors does your decision depend? Provide a formal explanation, supported by theorems and ideas

In: Computer Science

Identify and describe the forms of nonverbal communications which affect how we interpret verbal communications. Provide...

Identify and describe the forms of nonverbal communications which affect how we interpret verbal communications. Provide examples to support your response.

In: Operations Management

Question 1 (10 marks) With reference to the extract, explain workforce diversity and discuss four (4)...

Question 1
With reference to the extract, explain workforce diversity and discuss four (4) reasons why it
is necessary to increase workforce diversity in South Africa.

Question 2

According to the extract, it is only when the leadership embraces diversity and makes it an
organisational priority, will its true benefits be seen. Based on this, critically discus five (5)
organisational approaches to the management of diversity.

In: Operations Management