In 100 words Decide American Apparel. please type
In: Economics
Explain why the goal of criminal law is NOT 100% prevention
In: Economics
discuss the history of heron's fountain in 100-200 words
In: Physics
In a short essay ( 100 words ) answer the above the question.
In: Physics
4. In a normal distribution with ?(?) = 100 and ??(?) = 16, find the predicted a. 8th percentile. b. 22nd percentile. c. median. d. ?3. e. 95th percentile.
6 In a data set, ? = 38, ?̅= 110.4, and ? = 20.9. In a normal distribution having the same features, find a. the predicted 30th percentile. b. the predicted 70th percentile. c. the predicted percentile corresponding to the 20th ordered data value. d. the predicted percentile corresponding to the 6th ordered data value.
In: Math
Complete the following program. This program should do the following:
1. Creates a random integer in the range 10 to 15 for variable: allThreads, to create a number of threads.
2. Creates a random integer for the size of an ArrayList: size.
3. Each thread obtains a smallest number of a segment of the array. To give qual sized segment to each thread we make the size of the array divisible by the number of threads: while(size%allThreads != 0)size++
4. The program gives random integers to the ArrayList: a.
5. To make sure the smallest number of the entire array is the same of your output, I made a method named: sequentialSmallest(a)
6. The program creates a number of threads. Each thread obtains the smallest number of a segment.
7. You need to complete the method: run() below.
Note: If your answer depends to a variable location that two or more threads are writing to it (changing its value), you must synchronize the variable.
import java.util.*;
public class Main {
public static void main(String[] args) {
// This method is complete. Do not change it.
new Main();
}
public Main() {
Q1Threads();
}
private void Q1Threads(){
// This method is complete. Do not change it.
Random rand = new Random();
int allThreads = rand.nextInt(5) + 10;
int size = rand.nextInt(50) + 1;
while(size%allThreads != 0)size++;
ArrayList<Integer> a = new ArrayList<Integer>(size);
for(int i = 0; i < size; i++)
a.add(rand.nextInt(100) + 10);
sequentialSmallest(a);
MyThread[] thrds = new MyThread[allThreads];
int segment = size/allThreads;
for(int i = 0; i <allThreads ; i++) {
int firstIndex = i * segment;
int lastIndex = i * segment + segment -1;
thrds[i] = new MyThread(a, firstIndex, lastIndex);
}
for(int i = 0; i < allThreads; i++)
thrds[i].start();
try{
for(int i = 0; i < allThreads; i++)
thrds[i].join();
}catch(Exception e){
System.out.println("Error: " + e);
System.exit(0);
}
System.out.println("The smallest number is: " + Shared.result);
}
private static void sequentialSmallest(ArrayList<Integer> a) {
// This method is complete. Do not change it.
int smallest = a.get(0);
for(int i = 0; i < a.size(); i++)
if(a.get(i) < smallest)
smallest = a.get(i);
System.out.println("The list of random numbers is:");
for(int i = 0; i < a.size(); i++)
System.out.print(a.get(i) + ", ");
System.out.println("\nThe smallest number from the sequential list is: " + smallest);
}
}
class MyThread extends Thread{
private ArrayList<Integer> a;
private int from, too;
public MyThread(ArrayList<Integer> a, int from, int too) {
this.a = a;
this.from = from;
this.too = too;
}
public void run(){
// Complete this method
}
}
Answer:
In: Computer Science
Combine the following aggregates in the right proportions to produce a blend with the given target gradation.
|
Sieve size (mm) |
CA7 % Passing |
Washed Sand % Passing |
Dry Sand & Passing |
% Passing Target |
|
19.00 |
100 |
100 |
100 |
100.0 |
|
12.50 |
98.8 |
100 |
100 |
100.0 |
|
9.50 |
62.1 |
100 |
100 |
93.0 |
|
4.75 |
2.1 |
98.1 |
100 |
62.0 |
|
2.36 |
0 |
81 |
99 |
45.0 |
|
1.18 |
0 |
69.9 |
80.7 |
35.0 |
|
0.60 |
0 |
50.6 |
59.9 |
25.0 |
|
0.30 |
0 |
20.7 |
40 |
15.0 |
|
0.150 |
0 |
5.1 |
24.2 |
9.0 |
|
0.075 |
0 |
1.9 |
17.2 |
4.0 |
In: Civil Engineering
In: Economics
how do you read in a file in JAVA
Assume there is a file called "mydata". each line of the file contains two data items: hours and rate. hours is the represented by the number of hours the worker worked and rate is represented as hourly rate of pay. The first item of data is count indicating how many lines of data are to follow.
Methods
pay- accepts the number of hours worked and the rate of pay. returns the dollor and cents amount of the amount earned as follows. workers who worked 40 hours or less are paid at their regular rate and workers who worked more then 40 hours are paid their regular rate for the first 40 hours then 100% of their rate for hours in excess of 40.
Example
worker is paid at at rate of $11.00/hours. if worker works for 25 hours he will be paid 25*11=275. if work works for 60 hours he will be paid (40*11)+(20*10)=640
main method
read the count
for each line of data read the number of hours worked and the employee rate
compute the gross pay
data file
4
5 25.00
40 50.00
30 40.00
10 15.00
In: Computer Science
Pantanal, Inc., manufactures car seats in a local factory. For costing purposes, it uses a first-in, first-out (FIFO) process costing system. The factory has three departments: Molding, Assembling, and Finishing. Following is information on the beginning work-in-process inventory in the Assembling Department on August 1:
| Costs | Degree of Completion | |||||
| Work-in-process beginning inventory (11,000 units) | ||||||
| Transferred-in from Molding | $ | 99,000 | 100 | % | ||
| Direct materials costs | 165,200 | 60 | ||||
| Conversion costs | 62,000 | 40 | ||||
| Work-in-process balance (August 1) | $ | 326,200 | ||||
During August, 107,000 units were transferred in from the Molding Department at a cost of $2,107,900 and started in Assembling. The Assembling Department incurred other costs of $1,005,660 in August as follows:
| August Costs | |||
| Direct materials costs | $ | 805,120 | |
| Conversion costs | 200,540 | ||
| Total August costs | $ | 1,005,660 | |
At the end of August, 13,000 units remained in inventory that were 80 percent complete with respect to direct materials and 60 percent complete with respect to conversion.
Required:
Compute the cost of goods transferred out in August and the cost of work-in-process ending inventory. (Do not round intermediate calculations.)
In: Accounting