Questions
Java Write a valid Java method called printReverse that takes a String as a parameter and...

Java

Write a valid Java method called printReverse that takes a String as a parameter and prints out the reverse of the String. Your method should not return anything. Make sure you use the appropriate return type.

In: Computer Science

How do you plan to design your own workshop​? Ellaborate with examples. (500 words)

How do you plan to design your own workshop​? Ellaborate with examples. (500 words)

In: Psychology

Economic 315: Money, Banking and Financial Market 1. Is there any relationship between increase in corporate...

Economic 315: Money, Banking and Financial Market

1. Is there any relationship between increase in corporate debt and corporate investing? Explain.

2. What is the alternative to investing that money in their corporations?

3. What is the purpose of stock buybacks?

4. Do you think stock buybacks are the good for the economy? Why or why not?

In: Economics

Please find error and fill the blank and send as I can copy and paste like...

Please find error and fill the blank and send as I can copy and paste like file or just codes if you can ?
1)
#include <stdio.h>
#include <stdlib.h>

#define Error( Str ) FatalError( Str )
#define FatalError( Str ) fprintf( stderr, "%s ", Str ), exit( 1 )
2) #include "list.h"
#include <stdlib.h>
#include "fatal.h"

/* Place in the interface file */

int Equal(ElementType x, ElementType y)
{
return x==y;
}
void Print(ElementType x)
{
printf("%2d", x);
}

List
CreateList( void )
{
List L;

L = ________________________________;
if( L == NULL )
Error( "Out of memory!" );
L->Next = NULL;
return L;
}

void
MakeEmpty( List L )
{
Position P, Tmp;

/* 1*/ P = L->Next; /* Header assumed */
/* 2*/ L->Next = NULL;
/* 3*/ while( P != NULL )
{
/* 4*/ Tmp = P->Next;
/* 5*/ free( P );
/* 6*/ P = Tmp;
}
}


/* START: fig3_8.txt */
/* Return true if L is empty */

int
IsEmpty( List L )
{
return L->Next == NULL;
}
/* END */

/* START: fig3_9.txt */
/* Return true if P is the last position in list L */
/* Parameter L is unused in this implementation */

int IsLast( Position P, List L )
{
return P->Next == NULL;
}
/* END */

/* START: fig3_10.txt */
/* Return Position of X in L; NULL if not found */

Position
Find( ElementType X, List L )
{
Position P;

/* 1*/ P = L->Next;
/* 2*/ while( P != NULL && !Equal(P->Element, X))
/* 3*/ P = P->Next;

/* 4*/ return _______;
}
/* END */

/* START: fig3_11.txt */
/* Delete (after legal position P) */
/* Assume use of a header node */
void
Delete(List L, Position P )
{
Position TmpCell;

TmpCell = P->Next;
P->Next = TmpCell->Next; /* Bypass deleted cell */
free( TmpCell );
}

/* END */

/* START: fig3_12.txt */
/* If X is not found, then Next field of returned value is NULL */
/* Assumes a header */

Position
FindPrevious( ElementType X, List L )
{
Position P;

/* 1*/ P = L;
/* 2*/ while( P->Next != NULL && !Equal(P->Next->Element, X) )
/* 3*/ P = P->Next;

/* 4*/ return P;
}
/* END */

/* START: fig3_13.txt */
/* Insert (after legal position P) */
/* Header implementation assumed */
/* Parameter L is unused in this implementation */

void
Insert( ElementType X, List L, Position P )
{
Position TmpCell;

/* 1*/ TmpCell = (Position)malloc( sizeof( struct Node ) );
/* 2*/ if( TmpCell == NULL )
/* 3*/ Error( "Out of space!!!" );

/* 4*/ TmpCell->Element = X;
/* 5*/ ____________________;
/* 6*/ P->Next = TmpCell;
}
/* END */

/* START: fig3_15.txt */
/* Correct DeleteList algorithm */

void
DeleteList( List L )
{
PtrToNode P, Tmp;

P = L;
while( P != NULL )
{
Tmp = P->Next;
free( P );
____________;
}
}
/* END */

Position
Header( List L )
{
return ________;
}

Position
First( List L )
{
return _________;
}

Position
Advance( Position P )
{
return ___________;
}

ElementType
Retrieve( Position P )
{
return ____________;
}

void Modify( ElementType X, Position P )
{
P->Element = X;
}

void PrintList(List L)
{
Position pL;
ElementType e;

pL = First(L);
while (pL) {
e = Retrieve(pL);
Print(e);
pL = Advance(pL);
}
printf(" ");
}

3)

#ifndef _List_H
#define _List_H



typedef int ElementType;
struct Node {
ElementType Element;
struct Node *Next;
};
typedef struct Node
*PtrToNode, *List, *Position;


void MakeEmpty( List L );
List CreateList( void );
int IsEmpty( List L );
int IsLast( Position P, List L );
Position Find( ElementType X, List L );
void Delete( List L, Position P );
Position FindPrevious( ElementType X, List L );
void Insert( ElementType X, List L, Position P );
void DeleteList( List L );
Position Header( List L );
Position First( List L );
Position Advance( Position P );
ElementType Retrieve( Position P );
void Modify( ElementType X, Position P );
void PrintList(List L);

#endif /* _List_H */
/* END */

4)

#include "stdio.h"
#include "list.h"
#include "fatal.h"


List Union(List A, List B) {
List C;
Position pA, pB, pC;
ElementType e;

C = CreateList();
pC = Header(C);

pA = First(A);
while (pA) {
e = Retrieve(pA);
Insert(e, C, pC);
pA = Advance(pA);
}

pB = First(B);
while (pB) {
e = Retrieve(pB);
if (!Find(e, A))
Insert(e, C, pC);
pB = Advance(pB);
}
return C;
}


int main() {
List A, B, C;
int j;


A = CreateList(); B = CreateList();

printf("Please input set A(finished with -1): ");
scanf("%d", &j);
while (j != -1){
Insert(j, A, Header(A));
scanf("%d", &j);
}
printf("A:"); PrintList(A);

printf("Please input set B(finished with -1): ");
scanf("%d", &j);
while (j != -1){
Insert(j, B, Header(B));
scanf("%d", &j);
}
printf("B:"); PrintList(B);

C = Union(A, B);
printf("C:"); PrintList(C);

DeleteList(A); DeleteList(B); DeleteList(C);

return 1;
}

In: Computer Science

When discussing CFCs (chlorofluorocarbons), what are the properties of that chemical (such as water solubility, vapor...

When discussing CFCs (chlorofluorocarbons), what are the properties of that chemical (such as water solubility, vapor pressure, etc.) that determines its migration in our environment?

In: Chemistry

The Path to Good Ethics Starts in Human Resources. Do you agree or disagree with this...

The Path to Good Ethics Starts in Human Resources. Do you agree or disagree with this statement? Please explain in detail and provide examples.

In: Operations Management

Suppose that each day, Northern, Central, and Southern California each use 100 billion gallons of water....

  1. Suppose that each day, Northern, Central, and Southern California each use 100 billion gallons of water. Also assume that Northern California and Central California have available 120 billion gallons of water, whereas Southern California has 40 billion gallons of water available. The cost of shipping 1 billion gallons of water between the three regions is as follows. Also, you will not be able to meet all the demand for water, so assume that each billion gallons of unmet demand incurs the following shortage costs:

Northern

Central

Southern

Northern

$5,000.00

$7,000.00

$10,000.00

Central

$7,000.00

$5,000.00

$6,000.00

Southern

$10,000.00

$6,000.00

$5,000.00

Shortage

$6,000.00

$5,500.00

$9,000.00

How should California’s water be distributed to minimize the sum of shipping and shortage costs and what is the total cost?

In: Computer Science

1. You are to do a preliminary design study for a small demonstration steam turbine power...

1. You are to do a preliminary design study for a small demonstration steam turbine power plant.
- Steam will be provided by a small steam generator fired by natural gas.   - Your system will take in steam at 30 bar and 400 oC.
- The steam passes through a two stage turbine. At a pressure of 10 bars, the steam leaves the first stage of the turbine and will pass through a reheat loop in the steam generator which will boost the temperature back up to 400 oC at this pressure. The steam will then enter the second stage of the turbine.
- When the steam leaves the turbine, the quality should be at least 95% at the turbine exit / condenser inlet.
- The design condenser pressure is 0.70 bar.   
- Heat is removed from the condenser and rejected to the environment through a cooling tower.
a) Assuming isentropic expansion, what are the temperature, enthalpy, and entropy of the steam when it leaves the first stage of the turbine? (5 pts)

b) What are the enthalpy and the entropy of the steam as it leaves the reheater and enters the second stage of the turbine? How much heat (kJ/kg) goes into the steam in the reheat process? (10 pts)

c) Based on an isentropic expansion, what will the quality be at the exit? Will it meet this design limit? (10 pts)
For the following parts use the design turbine power output of 2.5 kW.
d) What mass flow rate is required? (10 pts)

e) At what rate must heat be produced by natural gas burners in the steam generator to produce the steam at the turbine inlet, and how much heat must be produced to reheat the steam between the stages? For a heating rate range of 950-1150 BTU/scf and a cost of $8 per 100 cubic feet, what is the fuel cost per hour to run this unit? (10 pts)

f) What is the feed water pump power demand, and what is the BWR? (10 pts)

In: Mechanical Engineering

source: /** * A class to model an item (or set of items) in an *...

source: /** * A class to model an item (or set of items) in an * auction: a batch. */ public class BeerBatch { // A unique identifying number. private final int number; // A description of the batch. private String description; // The current highest offer for this batch. private Offer highestOffer; /** * Construct a BeerBatch, setting its number and description. * @param number The batch number. * @param description A description of this batch. */ public BeerBatch(int number, String description) { this.number = number; this.description = description; this.highestOffer = null; } /** * Attempt an offer for this batch. A successful offer * must have a value higher than any existing offer. * @param offer A new offer. * @return true if successful, false otherwise */ public boolean bidFor(Offer offer) { if(highestOffer == null) { // There is no previous bid. highestOffer = offer; return true; } else if(offer.getAmount() > highestOffer.getAmount()) { // The bid is better than the previous one. highestOffer = offer; return true; } else { // The bid is not better. return false; } } /** * @return A string representation of this batch's details. */ public String batchDetail() { return "TO DO"; } /** * @return The batch's number. */ public int getNumber() { return number; } /** * @return The batch's description. */ public String getDescription() { return description; } /** * @return The highest offer for this lot. * This could be null if there is * no current bid. */ public Offer getHighestOffer() { return highestOffer; } } Question: Implement the method batchDetail() in the BeerBatch class. Below you see the details of the first three batches created in the BearAuction constructor. For your string use the same format as below! 1: 1892 Traditional Bid: 14 by Juliet (female, 27) 2: Iceberg Lager No bid 3: Rhinegold Altbier Bid: 17 by William (male, 22).

In: Computer Science

Nickel metal will react with CO gas to form a compound called nickel tetracarbonyl (Ni(CO4)) which...

Nickel metal will react with CO gas to form a compound called nickel tetracarbonyl (Ni(CO4)) which is gas at temperatures above ~45C.

A 1.50 L glass bulb is filled with CO gas to a pressure of 1.20 atm at 73C and then 0.5869 g is pure Ni is added. If the reaction described above occurs and goes to completion at constant temperature, what will the final total pressure in the bulb be?

In: Chemistry

Explain white labeling and drop shipping along with the challenges

Explain white labeling and drop shipping along with the challenges

In: Computer Science

About 6 mlns people lost their jobs now because of the Coronavirus COVID-19. When will approximately...

About 6 mlns people lost their jobs now because of the Coronavirus COVID-19.

When will approximately economic stability go back to normal and jobs will be retained once again based on the Government Labor and Capital predictability?

In: Operations Management

what challenges leadership teams face? Provide Sources and examples.

what challenges leadership teams face? Provide Sources and examples.

In: Psychology

In what follows use any of the following tests/procedures: Regression, confidence intervals, one-sided t-test, or two-sided...

In what follows use any of the following tests/procedures: Regression, confidence intervals, one-sided t-test, or two-sided t-test. All the procedures should be done with 5% P-value or 95% confidence interval.

Use the Weight_vs_IQ data. SETUP: Common sense dictates that a person’s IQ and Weight should not be related. However, one never knows until one examines the data. Given the data (IQ and weight for 29 students) your job is to check if the common sense assumption is reasonable or maybe it is not.

13. What test/procedure did you perform?

  • a. One-sided t-test
  • b. Two-sided t-test
  • c. Regression
  • d. Confidence interval

14. What is the P-value/margin of error?

  • a. 0.749971
  • b. 8.2E-06
  • c. 0.711936
  • d. 0.355968

15. Statistical interpretation

  • a. Since the P-value is very small, we can confirm the common sense assumption that IQ and Weight are not related.
  • b. Since the P-value is large, we cannot claim that averages are different.
  • c. Since the P-value is large, we cannot claim that IQ and Weight are related.
  • d. None of these.

16. Conclusion

  • a. I have no statistical evidence to claim that IQ and Weight are related.
  • b. I am confident that IQ and Weight are related.
  • c. I am confident that IQ and Weight are not related.

DATA:

Weight  IQ
88      99
112     103
107     97
112     99
80      100
86      90
103     118
121     79
116     80
82      88
65      82
107     103
100     116
91      112
110     92
113     115
105     100
108     94
90      118
73      106
102     126
99      95
80      119
114     116
90      79
95      92
106     78
86      111
106     80

In: Math

1. Consider the implications of two recent headlines: "Fiat Chrysler Shares Crash by a Fifth as...

1. Consider the implications of two recent headlines: "Fiat Chrysler Shares Crash by a Fifth as it is Drawn into Emissions Scandal by US Regulators" and "FBI Arrests Volkswagen Executive emissions Scandal." it appears that Fiat Chrysler and Volkswagen not only failed to act responsibly to comply with emissions regulations but they also committed fraud to make government officials and the public believe they were in compliance. Do you think Fiat Chrysler and Volkswagen are regretting the decisions they made in the past to avoid compliance costs? What costs are they paying now?

2. "The single most important and pervasive moral obligation facing mankind is to ensure survival of a healthy planet for our grandchildren and theirs". Do you agree? Why or Why not?

In: Operations Management