A mass of 3 kg of saturated liquid-vapor mixture of water is contained in a piston-cylinder device at 175 kPa. Initially, 2 kg of the water is in the liquid phase and the rest is in the vapor phase. An electrical heater is in operation, and the piston rises until it hits a set of stops, which are set at double the initial volume. Electrical heating continues until the pressure reaches 500 kPa. Determine (a) the initial and final temperatures, (b) the mass of liquid water when the piston first hits the stops, and (c) the electrical work done during this process. Show all equations.
In: Mechanical Engineering
A piston-cylinder assembly has initially a volume of 0.3 m3 of air at 25 oC. Mass of the air is 1 kg. Weights are put on the piston until the air reaches to 0.1 m3 and 1,000 oC, in which the air undergoes a polytropic process (PVn = const). Assume that heat loss from the cylinder, friction of piston, kinetic and potential effects are negligible. 1) Determine the polytropic constant n. 2) Determine the work transfer in kJ for this process, and discuss its direction. 3) Sketch the process in T-V (temperature-volume) diagram.
In: Mechanical Engineering
(a) Find the force P that must be applied to a
piston of area 12.10 cm2 to produce sufficient fluid
pressure to support a car weighing 11,851 N by means of a column of
fluid of cross sectional area 250 cm2 as seen in the
figure below.
(b) Find the increase in the car's gravitational potential energy
when it is raised 1.00 m.
(c) How far must the smaller piston move in order for the larger
one to move 1.00 m?
(d) Calculate the work done by P in moving the
smaller piston.
Compare your answer with the answer to part b.
In: Physics
4. Which food you predict will… a. have the highest number of bacteria? And why? b. have the lowest number of bacteria and why? c. have the highest number of fungi (yeasts or molds)? Why? (The “why” is, in effect, your hypothesis.) The foods are raw ground beef, potato salad, and fresh salsa
In: Biology
Write a program that prompts the user to enter the number of
students and each student’s name and score, and finally displays
the student with the highest score and the student with the
second-highest score. Use the next() method in the Scanner class to
read a name rather using the nextLine() method.
This is my code , but i get this error Enter the number of
students: Exception in thread "main"
java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:871)
at java.util.Scanner.next(Scanner.java:1494)
at java.util.Scanner.nextInt(Scanner.java:2139)
at java.util.Scanner.nextInt(Scanner.java:2095)
at Exercise05_09.main(Exercise05_09.java:16)
import java.util.Scanner;
public class Exercise05_09 {
public static void main(String[] args) {
// Create a Scanner
Scanner input = new
Scanner(System.in);
// Prompt the user to enter the
number of students
System.out.print("Enter the number
of students: ");
int numberOfStudents =
input.nextInt();
int score,
// Holds students' score
highest = 0,
// Highest
score
secondHigest =
0; // Second highest score
String name = "",
// Holds students' name
student1 = "", // Highest scoring
student name
student2 = ""; // Second highest
scoring student name
// Prompt the user to enter each
students' name and score
System.out.println("Enter each
students' name and score:");
for (int i = 0; i <
numberOfStudents; i++) {
System.out.print(
"Student: " + (i + 1) + "\n Name: ");
name =
input.next();
System.out.print(" Score: ");
score =
input.nextInt();
if (i == 0)
{
// Make the first student the highest scoring
student so far
highest = score;
student1 = name;
}
else if (i == 1
&& score > highest) {
// Second student entered scored
// higher than first student
secondHigest = highest;
highest = score;
student2 = student1;
student1 = name;
}
else if (i == 1)
{
// Second student entered scored
// lower than first student
secondHigest = score;
student2 = name;
}
else if (i >
1 && score > highest && score > secondHigest)
{
// Last student entered has the highest
score
secondHigest = highest;
student2 = student1;
highest = score;
student1 = name;
}
else if (i >
1 && score > secondHigest) {
// Last student entered has the second highest
score
student2 = name;
secondHigest = score;
}
}
// Display the student with the
hightest score
// and the student with the
second-hightest score.
System.out.println(
"Higest scoring
student: " + student1 +
"\nSecond Higest
scoring student: " + student2);
}
}
In: Computer Science
The Melville Corporation produces a single product called a Pong. Melville has the capacity to produce 60,000 Pongs each year. If Melville produces at capacity, the per unit costs to produce and sell one Pong are as follows:
| Direct materials | $ | 15 |
| Direct labor | $ | 12 |
| Variable manufacturing overhead | $ | 8 |
| Fixed manufacturing overhead | $ | 9 |
| Variable selling expense | $ | 8 |
| Fixed selling expense | $ | 3 |
The regular selling price for one Pong is $80. A special order has been received by Melville from Mowen Corporation to purchase 6,000 Pongs next year. If this special order is accepted, the variable selling expense will be reduced by 75%. However, Melville will have to purchase a specialized machine to engrave the Mowen name on each Pong in the special order. This machine will cost $9,000 and it will have no use after the special order is filled. The total fixed manufacturing overhead and selling expenses would be unaffected by this special order. Assume that direct labor is a variable cost.
Assume Melville anticipates selling only 50,000 units of Pong to regular customers next year. At what selling price for the 6,000 special order units would Melville be financially indifferent between accepting or rejecting the special order from Mowen?
-
-
-
-
Kerekes Manufacturing Corporation has prepared the following overhead budget for next month.
| Activity level | 2,500 | machine-hours | |
| Variable overhead costs: | |||
| Supplies | $ | 11,250 | |
| Indirect labor | 21,000 | ||
| Fixed overhead costs: | |||
| Supervision | 15,700 | ||
| Utilities | 5,900 | ||
| Depreciation | 6,900 | ||
| Total overhead cost | $ | 60,750 | |
The company's variable overhead costs are driven by machine-hours.
What would be the total budgeted overhead cost for next month if the activity level is 2,400 machine-hours rather than 2,500 machine-hours? (Round your intermediate calculations to 2 decimal places.)
-
-
-
-
-
-
Bramble Corporation is a small wholesaler of gourmet food products. Data regarding the store's operations follow:
| Balance Sheet October 31 |
||||||
| Assets | ||||||
| Cash | $ | 20,800 | ||||
| Accounts receivable | 70,800 | |||||
| Merchandise inventory | 176,400 | |||||
| Property, plant and equipment, net of $572,800 accumulated depreciation | 1,094,800 | |||||
| Total assets | $ | 1,362,800 | ||||
| Liabilities and Stockholders' Equity | ||||||
| Accounts payable | $ | 254,800 | ||||
| Common stock | 820,800 | |||||
| Retained earnings | 287,200 | |||||
| Total liabilities and stockholders' equity | $ | 1,362,800 | ||||
Expected cash collections in December are:
In: Accounting
1) The waiting time at an elevator is uniformly distributed between 30 and 200 seconds. What is the probability a rider waits less than two minutes?
A) 0.4706
B) 0.5294
C) 0.6000
D) 0.7059
2) For any normally distributed random variable with mean μ and standard deviation σ, the percent of the observations that fall between [μ - 2σ, μ + 2σ] is the closest to ________.
A) 68%
B) 68.26%
C) 95%
D) 99.73%
3) Which of the following can be represented by a continuous random variable?
A) The time of a flight between Chicago and New York
B) The number of defective light bulbs in a sample of five
C) The number of arrivals to a drive-through bank window in a four-hour period
D) The score of a randomly selected student on a five-question multiple-choice quiz
4) An analyst believes that a stock's return depends on the state of the economy, for which she has estimated the following probabilities:
|
State of the Economy |
Probability |
Return |
||
|
Good |
0.10 |
15 |
% |
|
|
Normal |
0.60 |
13 |
% |
|
|
Poor |
0.30 |
7 |
% |
|
According to the analyst's estimates, the expected return of the stock is ________.
A) 7.8%
B) 11.4%
C) 11.7%
D) 13.0%
5) How would you characterize a consumer who is risk loving?
A) A consumer who may accept a risky prospect even if the expected gain is negative.
B) A consumer who demands a positive expected gain as compensation for taking risk.
C) A consumer who completely ignores risk and makes his or her decisions solely on the basis of expected values.
D) None of the above.
In: Statistics and Probability
The League with DMA
Rewrite your League program from Assignment 8 so that it uses Dynamic Memory Allocation (DMA) to create the team names and scores arrays.
This is a good test of the modularity of your program. You will only need to make slight modifications to your main() function if you wrote your original program using functions similar to the following:
void initializeData(string names[], int wins[], int size) void sort(string names[], int wins[], int size) void display(string names[], int wins[], int size)
Your modified league program should start out by asking the user how many teams will be entered. It should then dynamically allocate two appropriate arrays, and proceed just like the original League assignment, calling the above three functions. When your program is done using the arrays, don't forget to use delete [] to return their memory to the system.
Note: you must use dynamic memory allocation for your arrays, i.e. the new and delete [] operators, to receive credit.
The output from your program should look approximately like this (user input in orange bold):
How many teams will you enter?: 4 Enter team #1: Padres Enter the wins for team #1: 75 Enter team #2: Dodgers Enter the wins for team #2: 91 Enter team #3: Giants Enter the wins for team #3: 92 Enter team #4: Cubs Enter the wins for team #4: 65 League Standings: Giants: 92 Dodgers: 91 Padres: 75 Cubs: 65
THE CODE FOR ASSIGNMENT 8:
#include <iostream>
using namespace std;
void initializeArrays(string names[],int wins[],int size){
int i=0;
while(i<5){
cout<<"Enter team #"<<i+1<<":";
cin>>names[i];
cout<<"Enter wins for team #"<<i+1<<":";
cin>>wins[i];
i++;
}
}
void sortData(string names[],int wins[],int size){
int max=0;
for(int i=0;i<size-1;i++){
for(int j=0;j<size-i-1;j++){
if(wins[j]<wins[j+1]){
int temp = wins[j];
wins[j] = wins[j+1];
wins[j+1] = temp;
string t = names[j];
names[j] = names[j+1];
names[j+1] = t;
}
}
}
}
void displayData(string names[],int wins[],int size){
cout<<"\nLeague Standings:\n";
int num=0;
while(num<size){
cout<<names[num]<<": "<<wins[num]<<"\n";
num++;
}
}
int main() {
string names[5];
int wins[5];
initializeArrays(names,wins,5);
sortData(names,wins,5);
displayData(names,wins,5);
}
In: Computer Science
An one page "elevator pitch" about Cell cycle
In: Biology
draw a PLC ladder diagram for 5 floor elevator
In: Electrical Engineering