C PROGRAMMING LANGUAGE
PROBLEM TITLE : ARRAY
usually, if people want to input number into an array, they will put it from index 0 until N - 1 using for. But, Bibi is bored to code like that. So, she didin't want to input the number that way.
So Bibi challenged you to make a program that will read a sequence (represent index) that she made, then input the number to an array but input it with the same sequence as sequence that Bibi gave.
Format Input
The first line represent integer N the size of Bibi's Array. The next line consist N integers Ai represent the sequence that Bibi want, it is guaranteed that the number is distinct. The next line consist N integers represent the value that she want to put inside array with index Ai.
Format Output
N integers represent the array that Bibi has starting from index 0.
Constraints
• 1 ≤ N ≤ 1, 000
• 0 ≤ Ai < N
Sample Input 1 (standard input)
5
0 1 2 3 4
1 2 3 4 5
Sample Output 1 (standard output)
1 2 3 4 5
Sample Input 2 (standard input)
5
4 3 2 1 0
1 2 3 4 5
Sample Output 2 (standard output)
5 4 3 2 1
sample Input 3 (standard input)
5
0 4 3 1 2
1 2 3 4 5
Sample Output 3 (standard output)
1 4 5 3 2
NOTES
• There isn’t any space after the last number.
• In the third sample Bibi want to input the number to array index 0 then 4 then 3 then 1 then 2
(MAKE THE COMPILER UNTIL SAMPLE 3)
In: Computer Science
Discuss the advantages and disadvantages of job specialization. Give examples of each. Does job specialization provide organizations a net benefit or a net loss? Explain.
In: Operations Management
Create a class of DSA with two pointer objects of Employee and Customer. These objects will represent the head pointer of corresponding linkedlists.
Add new data member functions searchCustomer & searchEmployee, to search for customers and employees separately in DSA.
In: Computer Science
According to the Gospel of Matthew, what was Jesus’s Message and what was his relationship to that message?
In: Psychology
A new company is planning to build a new database system for holding information about customers and salesmen. ‘Customers’, ‘Salesmen’ and ‘Customers_Salesmen’ are part of the information that the new company wants to store in the new database. These tables are shown below in figure 1, figure 2 and figure 3. The new company intends to use MySQL for building the new database.
|
Customer_ID |
Customer_Name |
Customer_City |
Customer_Grade |
|
3002 |
Ahmad Salman |
New York |
100 |
|
3007 |
Mazen Ali |
New York |
200 |
|
3005 |
Sami Khalil |
California |
200 |
|
3008 |
Ashraf Ahmad |
London |
300 |
|
3004 |
Manal Faris |
Paris |
300 |
|
3009 |
Tahani Mahdi |
Berlin |
100 |
|
3003 |
Fawzi Jama |
Moscow |
200 |
|
3001 |
Tareq Mohsen |
London |
100 |
Figure 1: Customers table
|
Salesman_ID |
Salesman_Name |
Salesman_City |
Salesman_Commission |
|
5001 |
Naser Hamad |
New York |
0.15 |
|
5002 |
Rami Farhan |
Paris |
0.13 |
|
5006 |
Salem Alawi |
Paris |
0.14 |
|
5003 |
Faten Morad |
San Jose |
0.12 |
|
5007 |
Turkey Fahad |
Rome |
0.13 |
|
5005 |
Juma Khalaf |
London |
0.11 |
Figure 2: Salesmen table
|
Customer_ID |
Salesman_ID |
|
3002 |
5001 |
|
3007 |
5001 |
|
3005 |
5002 |
|
3008 |
5002 |
|
3004 |
5006 |
|
3009 |
5003 |
|
3003 |
5007 |
|
3001 |
5005 |
Figure 3: Customers_Salesmen table
Based on the above three tables, answer the following 6 questions:
In: Computer Science
Read/ answer questions below:
Why a Focus on Diversity and Inclusion Is Vital to Health Care Companies
Corporate America is learning that our responsibilities to our stakeholders are multifaceted and interconnected. When we strive for a diverse and inclusive workplace, it benefits everyone — workforce, clients, shareholders, vendors, and communities local and global.
This may be most important in the health care industry, where the workforce needs to be both clinically adept and socially empathetic to serve their increasingly diverse communities.
Focusing on diversity and inclusion is absolutely necessary to access and engage the very best talent available. As everybody should know by now, a company’s workforce is the most critical ingredient in its ability to succeed.
We can’t possibly have the very best team unless we are tapping into the widest and deepest pool of workers available. If any group is not engaged or left out, excellent job candidates with unique experiences and opinions are lost. That means we must be deliberately inclusive to find, hire and retain the top quality workers.
As the leading health care staffing and workforce solutions company, AMN provides a wide variety of health care professionals to clients in all 50 states, from major urban medical centers to home health care companies to rural clinics, while also delivering complex and advanced services ranging from predictive analytics to mid-revenue cycle management. To provide the greatest support to health care organizations, so that they in turn can provide the highest quality patient care, we must have the very best team.
The health care industry we serve is very diverse. Among the overall workforce, 76 percent of people who work at hospitals are women and about 35 percent are black, Asian or Latino, according to the U.S. Bureau of Labor Statistics. The percentage of women in health care is higher than any other industry and our team should reflect the clients we serve.
External stakeholders, like vendors, partners and investors, are looking for value and performance, which are directly dependent on a company building the very best team possible. These stakeholders are also looking for companies that they can be proud of — companies that share their values. Many stakeholders today want to know a company’s diversity numbers up front, to ascertain both the company’s value and its values.
For our team members to do their very best work, they must be engaged. Many women, people of various races and ethnicities, and LGBTQ individuals have been excluded or undervalued in business for a long time.
Inclusion must be an action verb. Diversity and inclusion must be actively interwoven into the fabric of company culture so that all people feel like they belong in the workplace — and that they can succeed there. This effort has to start at the top. It can’t just be a few programs; it must be a fundamental part of the corporate framework.
To be able to track your progression it is important to establish the demographic metrics of your team and regularly check your numbers. Diversity and inclusion are not abstract concepts. They are quantifiable, and a company must keep track to know whether they are making progress.
AMN Healthcare has been striving for gender equality for decades, and more recently has been working harder on other areas of inclusion. In the spirit of transparency, here are the AMN numbers as of April 2018:
- 66 percent of our entire team companywide is women.
- 62 percent of our supervisors and senior managers are women.
- Our executive team includes women as CEO, general counsel, chief clinical officer, chief talent officer, and divisional or brand presidents.
- 34 percent of our entire team is nonwhite.
- Our team is 56 percent Millennials, 34 percent Generation X and 11 percent baby boomers.
We’re pretty proud of our gender diversity. But we know we can improve in other areas. And we need to enhance the culture and spirit of inclusion companywide. So here are some of the things we are doing:
- Talent acquisition strategy for diversity, including metrics on diverse candidate slates.
- Employee resource groups to support a variety of groups and to help the company become a better place for everybody to work.
- Diversity champions and committees.
- Companywide engagement survey that includes questions about diversity and inclusion.
- Unconscious bias training.
- Support for and membership in the Gender Equality Index and Human Rights Campaign Index.
- Increasing diversity among our suppliers.
- Promoting a commitment to diversity externally, particularly in the communities where our team members live.
Diversity and inclusion are the right thing for our team members, our communities and our country. And for our company value and performance. The growing commitment to diversity and inclusion in corporate America is making the workplace a better place.
Answer questions:
1. What key questions or problems does the author raise and why?
2. What information, data, or evidence does the author present to support the purpose of the article?
3. What key conclusion(s) is the author coming to?
4. How is/are the conclusion(s) justified?
In: Psychology
Describe, discuss, and give examples of the differences between normal work groups and teams.
In: Operations Management
Explain each of the following (in your own words):
a. The 3 fundamental rules of subprograms
b. Subprogram
c. Subprogram call
d. Subprogram Header
e. Parameter profile/Protocol
f. Formal Parameter–v-Actual Parameter
g. Procedure –v-Function
h. Design issues for subprograms
i. Stack dynamic –v-static variables
j. Parameter passing
i. In-mode
ii. Out-mode
iii. In-Out mode
1.Pass by result
2.Pass by reference
3.Pass by name
k. Design issues for parameter passing
l. Overloaded subprogram
m. Generic subprogram
n. Design issues for functions
In: Computer Science
Discuss the primary conditions that foster the development of groupthink. Outline at least four symptoms of a group in which groupthink has taken hold.
In: Operations Management
Can anyone explain all the answers?
In: Physics
Beech Corporation is a merchandising company that is preparing a master budget for the third quarter of the calendar year. The company’s balance sheet as of June 30th is shown below:
| Beech Corporation Balance Sheet June 30 |
|
| Assets | |
| Cash | $ 86,000 |
| Accounts receivable | 138,000 |
| Inventory | 75,000 |
| Plant and equipment, net of depreciation | 229,000 |
| Total assets | $ 528,000 |
| Liabilities and Stockholders’ Equity | |
| Accounts payable | $ 90,000 |
| Common stock | 351,000 |
| Retained earnings | 87,000 |
| Total liabilities and stockholders’ equity | $ 528,000 |
1.
value:
1.00 points
Required information
Beech’s managers have made the following additional assumptions and estimates:
1. Estimated sales for July, August, September, and October will be $400,000, $420,000, $410,000, and $430,000, respectively.
2. All sales are on credit and all credit sales are collected. Each month’s credit sales are collected 35% in the month of sale and 65% in the month following the sale. All of the accounts receivable at June 30 will be collected in July.
3. Each month’s ending inventory must equal 25% of the cost of next month’s sales. The cost of goods sold is 75% of sales. The company pays for 40% of its merchandise purchases in the month of the purchase and the remaining 60% in the month following the purchase. All of the accounts payable at June 30 will be paid in July.
4. Monthly selling and administrative expenses are always $56,000. Each month $8,000 of this total amount is depreciation expense and the remaining $48,000 relates to expenses that are paid in the month they are incurred.
5. The company does not plan to borrow money or pay or declare dividends during the quarter ended September 30. The company does not plan to issue any common stock or repurchase its own stock during the quarter ended September 30.
Required:
1. Prepare a schedule of expected cash collections for July, August, and September. Also compute total cash collections for the quarter ended September 30.
2-a. Prepare a merchandise purchases budget for July, August, and September. Also compute total merchandise purchases for the quarter ended September 30.
2-b. Prepare a schedule of expected cash disbursements for merchandise purchases for July, August, and September. Also compute total cash disbursements for merchandise purchases for the quarter ended September 30.
3. Prepare an income statement for the quarter ended September 30.
4. Prepare a balance sheet as of September 30.
In: Accounting
Given the following data set N =9
12 3 78 89 22 31 5 20 14
a ) sort the data using: Insertion and Selection sorts
Determine thee number of comparisons and the number of moved for every sort.
b) Sort the data using Heap and bubble sort, show all steps
In: Computer Science
The lengths of a particular animal's pregnancies are approximately normally distributed, with mean μ equals=271
days and standard deviation σ equals=20days.
(a) What proportion of pregnancies lasts more than 286 days?
(Round to four decimal places as needed.)
(b) What proportion of pregnancies lasts between 256 and 281 days?
(Round to four decimal places as needed.)
(c) What is the probability that a randomly selected pregnancy lasts no more than 266 days?
(Round to four decimal places as needed.)
(d) A "very preterm" baby is one whose gestation period is less than 226 days. Are very preterm babies unusual?
(Round to four decimal places as needed.)
The probability of this event is _____ so it _____ be unusual because the probability is _______ than 0.05.
(Round to four decimal places as needed.)
In: Math
Argue for and against the trait theory of leadership. give examples.
In: Operations Management