Programming
Write a program that initializes an array with 10 random integers between 0 and 100 and then prints exactly 5 lines of output. These 5 lines should contain:
Initially write your code so that you initialize the array in the main method. You will not ask the user for any input, but will use Math.random to generate 10 random numbers between 0 and 100 to put in the array.
As an example, if the array contained { 34, 82, 45, 92, 71, 1, 18, 20, 52, 99 }, the five lines would be:
Array: [ 34, 82, 45, 92, 71, 1, 18, 20, 52, 99 ]
Elements at even index: 34 45 71 18 52
Even elements: 34 82 92 18 20 52
Reverse order: 99 52 20 18 1 71 92 45 82 34
First: 34 and Last: 99
If you complete all the steps above, please go back and move your code that fills the array into a separate method within your class. The method will create the array, fill it with the random numbers, and then return it to the caller.
Remember to use good coding style, and javadoc comments where appropriate.
NOTE: Please read instruction and example carefully while writing java code. Please include JAVADOC too. Thank you in advance.
In: Computer Science
Are there gender differences in the time spent using on social media? A time-tracking software was used to determine the average time on social media websites in a random sample of 31 men and 31 women. Men, on average, spent 49 minutes per day on social media websites, with the standard deviation of 25. Women, on average, spent 52 minutes per day on social media websites, with a standard deviation of 18. Use α=0.05.
In: Math
Your task in this paper is to identify FIVE of the your most endearing important personal values and identify how they both guide you and hinder you in your critical thinking. So as you can tell there are two parts to this assignment (each with it's own heading to clearly identify you have completed this assignment): 1) identify your values, and then 2) identify how they both guide you and hinder you in your critical thinking.
In: Psychology
Calculate the Q value for each of the following reactions. You may need to look up some of the atomic masses on the web. You can find a good one by typing in ``atomic mass nist'' into Google. Express your answer in MeV.
In: Physics
Case Application : Training Better Managers…Now at Walmart
Walmart, the world’s largest retailer, is a mega-business with more than 11,700 retail units in 28 countries and approximately 2.3 million associates around the world. That’s a lot of employees to manage! Its most recent annual revenues were more than $485.3 billion with profits of more than $13.6 billion. Because of its position as the United States’s largest private employer, Walmart often finds itself at the center of controversy over employee-related issues, from sick day policies40 to wage concerns.41 However, in 2016, the company created its Walmart Academy training program, a program intended to help those employees in lower-level management positions be more successful in their careers. Currently, there are some 100 of these academies across the United States. Since its inception, more than 150,000 store supervisors and department managers have gone through the weeks-long training.42
What does the training include? Topics cover advanced retail skills, including merchandising, ordering, and inventory control, plus managerial skills, including better communication and motivating employees. All management training is designed with the goal of helping transform the in-store shopping experience into a consistently positive one. As the industry faces increasing competitive pressures from Amazon and other online sellers, brick-and-mortar retailers are being forced to provide customers with something that makes the customer want to come to their store again and again. For Walmart, this means that if the company wants to create a more pleasant in-store shopping experience, it needs a well-trained and engaged workforce. That starts with the managers who, in turn, take that focus back to training their employees to be attentive to customers. Walmart thinks this effort is so vital that it has spent $2.7 billion (yes, that’s billion!) on employee training and raising employee wages. That’s a significant investment. However, there are companies that evidently don’t focus on training managers as Walmart does. Here are some startling statistics43:
· 26 percent of new managers feel they’re unprepared to transition into management roles.
· 58 percent of new managers don’t receive any training to help them make the transition.
· 48 percent of first-time managers fail in that transition.
Considering the important role that managers play in employee motivation and engagement, investing in training like Walmart is doing, seems to be a good investment.
Discussion Questions
1. Why would a company want employees in lower-level management positions to be more successful in their careers? (Hint: Think efficiency/effectiveness and the four functions of management.)
2. What benefits and challenges do you see to a training program such as this?
3. Does an organization have an ethical responsibility to assist new managers’ transition into their positions? Why or why not?
In: Operations Management
P5. 34 Weighted average process costing: manufacturer
Tringle Zipper Company accumulates costs for its single product using process costing. Direct materials is added at the beginning of the production process and conversion activity occurs uniformity throughout the process. A partially completed production repost for May follows.
|
Production report, May |
||||
|
Physical units |
Percentage of completion with respect to conversion 40% |
Equivalent units |
||
|
Direct materials |
Conversion |
|||
|
Work in process, 1 May |
25000 |
40% |
||
|
Units started during May |
30000 |
|||
|
55000 |
||||
|
Units completed and transferred out during May |
35000 |
35000 |
35000 |
|
|
Work in Process, 31 May |
20000 |
80% |
||
|
Total units accounted for |
55000 |
|||
|
Direct Materials |
Conversions |
Total |
||
|
Work in process, 1 May |
$143,000 |
$474,700 |
$617,700 |
|
|
Costs incurred during May |
165000 |
2009000 |
2174000 |
|
|
Total costs to account for |
$308,000 |
$2,583,700 |
$2,791,700 |
|
Required
Prepare a journal entry to record the transfer of the cost of goods completed and transferred out during May
In: Accounting
A 62.5 kg skier is moving at 6.15 m/s on a frictionless, horizontal snow-covered plateau when she encounters a rough patch 4.00 m long. The coefficient of kinetic friction between this patch and her skis is 0.320. After crossing the rough patch and returning to friction-free snow, she skis down an icy, frictionless hill 3.35 m high.
A)How fast is the skier moving when she gets to the bottom of the hill?
BHow much internal energy was generated in crossing the rough patch?
In: Physics
1a. Draw a picture of what is happening molecularly with the latex agglutination test.
1b. Why, of all the proteins, does the latex agglutination test assess presence of PBP2a?
In: Biology
Based on the following job description and list of competencies for a software sales position, please create a performance appraisal form that contains the basic components as well as the desirable features of a performance appraisal form.
Job description: Responsible for selling company software programs to schools in designated districts. Individuals are responsible for project managing the preparation of customized sales material for each school in their districts. Salespeople are also responsible for preparing and giving sales presentations to relevant district employees. Finally, the salesperson is responsible for identifying and cultivating key relationships in his/her districts.
Competencies:
In: Operations Management
Experiment: Combinatorial Synthesis of Azo Dyes
Experiment Overview:
in this experiment parallel synthesis on two different kinds of dye molecules. the first dye is made usign aminobenzensulfonic acid and the other is 4-nitroaniline. Both molecules require a two step synthesis which involves diazotiation reaction combined with azo coupling to synthesize an azo dye.
1. Write the mechanism for diazonium salt and salicylic acid
2. What is green chemistry?
3. WHat solvents are considered green solvents?
In: Chemistry
1) A student performed this experiment with a watch glass that has a area of 956,667,666,076,834.6 nm2. If the area of a stearic acid molecule is 0.21 nm2 and it took 0.0000021 grams of stearic acid to form the monolayer, what is his approximate value for Avogadro's number? Molar mass of stearic acid is 282 g/mol.
2) A student calibrated a dropper and found that it delivered 1.00 ml of solution in 57 drops. If it took 5 drops to form his monolayer, and the stearic acidconcentration was 1.76 g/L, what mass (g) of stearic acid was in his monolayer?
3) If a watch glass has an area of 86.11 cm2, what is its area in nm2?
4) A watch glass has a radius of 5.35 cm. What is the area of the watch glass in cm2?
5) If a student has a crystal with 818,795,544,682,724,600,000,000 molecules of iodine, what mass (g) of iodine does she have?
6) A student massed 22.65 grams of elemental iron. How many moles (mol) of iron does this represent?
7) When converting from mass in grams to moles it is necessary to divide by what? a)atomic number b) molar mass c) Avogadro's number d) the number of atoms in a mole
8) A student fills a balloon with air, to a volume of 20.0L. If it took 529,841,802,202,048,000,000,000 molecules of air to fill the balloon how many moles (mol) of air does that equal?
9) Avogadro's number is equal to what, and it represents what? a) 6.022e23, atoms in a molecules b) 6.022x1023, atoms in a gram. c)6.022x1023, atoms and/or molecules in a mole. d)6.022x10-23, atoms and/or molecules in a mole.
In: Chemistry
Use Gauss's law to prove that the electric field outside any spherically symmetric charge distribution is the same as if all of the charge were concentrated into a point charge at the center of the sphere. Then use Gauss's law to prove that the electric field inside a spherically symmetric conductor carrying a net charge on its surface is zero.
In: Physics
Ok the question asks
Know the definitions for the following terms(writing the equation/formula only is not enough):
Magnetic Flux
Faraday's Law
Lenz's Law
It asks for all 3 and again just writing equation/formula is not enough.
In: Physics
In: Economics
Write a test program that prompts the user to enter 10 numbers and displays the mean and deviation, as shown in the following sample run:
Your program should contain the following functions:
// Compute the mean of an array of double values double mean(const double x[], int size) // Compute the deviation of double values double deviation(const double x[], int size)
Write a test program that prompts the user to enter 10 numbers and displays the mean and deviation, as shown in the following sample run:
ex:
Enter ten numbers: 1.9 2.5 3.7 2 1 6 3 4 5 2
The mean is 3.11
The standard deviation is 1.55738
So this what I have:
#include <iostream>
#include <cmath>
using namespace std;
void displayVals(int vals[], int numVals, int sum);
void getVals(int vals[], int numVals);
double average(int sum, int numVals);
double stanDev(int vals[], double mean, int numVals);
int main()
{
int numVals=10;
int sum = 0;
int vals[9];
getVals(vals, numVals);
cout << endl;
displayVals(vals, numVals, sum);
cout << endl;
}
void getVals(int vals[], int numVals)
{
int index;
cout << "Enter ten numbers :" <<
"\n";
for (index = 0; index < numVals; index++) {
cout << index + 1;
cin >> vals[index];
}
}
void displayVals(int vals[], int numVals, int sum)
{
int index;
for (index = 0; index < numVals; index++) {
cout << index + 1;
cout << vals[index] <<
".\n";
}
cout << endl;
cout << "The mean is ";
cout << average(vals, numVals, sum) <<
".\n";
cout << endl;
cout << "The standard deviation is: ";
cout << stanDev(vals, numVals, sum) <<
".\n";
}
double average(int sum, int numVals)
{
double dsum = (double)sum;
double dnumVals = (double)numVals;
return dsum / dnumVals;
}
double stanDev(int vals[], double mean, int numVals)
{
double sum = 0, dVals = 0, value = 0, variance =
0;
for (int i = 0; i < numVals; i++)
{
dVals = (double)vals[i];
value = (dVals - mean)*(dVals -
mean);
sum += value;
variance = sum / (numVals);
}
return sqrt(variance);
}
In: Computer Science