There are several methods for mounting a rail to form a track for the railway engineer. For the following methods, state the advantages and disadvantages and describe where they would most likely be used:
(i) Timber sleeper
(ii) Steel sleeper
(iii) Mono-bloc concrete sleeper
(iv) Twin-bloc concrete sleeper
(v) Slab track
In: Civil Engineering
In a three-phase circuit the balanced delta load of (36 +j54) ohms is fed by impedance conductors (5 +j70) ohms. If the generator voltage is 120 V angle 0° phase A, calculate a) the bc voltage on the load, b) the powers in the conductors, c) the bc voltage of the delta load and d) the power delta on the load.
In: Electrical Engineering
A ball of putty with mass 500 g and negligible size is moving at a speed of v = 3.2 m/s before it strikes a stationary rod of length L = 42 cm and mass 2 kg that is allowed to pivot around its center. What is angular speed of the putty and rod system if the putty sticks to the rod?
In: Physics
A solid disk with r = 1m and M = 1kg falls from unwinding string (as in a primitive yo-yo).
(a) use conservation of energy to find linear speed v once the disk lowers by h = 50cm.
(b) from h = v2/2a find the linear acceleration a
(c) find α, the angular acceleration
In: Physics
3. THE HOMINID PROGRESSION 7.0 -1.0 MYA (i) The Ape Human transition (ii) The first Hominid candidates (iii) The Rise of the genus Homo (iv) Early Homo Lifestyle (v) Who was Homo erectus? (vi) Is Homo floresiensis a distinct type of hominid and if so where do they fit in the hominid progression?
In: Other
please answer this in a simple python code
1. Write a Python program to construct the following pattern (with alphabets in the reverse order). It will print the following if input is 5 that is, print z one time, y two times … v five times. The maximum value of n is 26. z yy xxx wwww vvvvvv
In: Computer Science
Download the following zip file Bag and complete the program. You will need to complete files MyBag and .
MyBag uses the java API class ArrayList as the underline data structure. Using the class variables given, complete the methods of the MyBag class.
In your BagHand class you should
The given driver should run without change.
Classes:
Bag-
package bag;
public interface Bag<T> extends Iterable<T> {
public boolean isEmpty();
public int size();
public void add(T item);
}
MyBag-
package bag;
import java.util.ArrayList;
import java.util.Iterator;
public class MyBag<T> implements Bag<T> {
private int count;
private ArrayList<T> list = new
ArrayList<T>(count);
public Iterator<T> iterator() {
return null;
}
public boolean isEmpty() {
// for students to complete
return false;
}
public int size() {
// for students to complete
return 0;
}
public void add(T item) {
// for students to complete
}
public void print() {
// for students to complete
}
}
MyBagHand-
package cards;
import bag.MyBag;
public class BagHand implements HandOfCards {
private MyBag myHand = new MyBag();
private int value;
public BagHand() {
// for students to complete
}
public void add(PlayingCard c) {
// for students to complete
}
// returns the added value of a players dealt
cards
public int getValue() {
// for students to complete
return 0;
}
public void print() {
System.out.print("\tValue:");
if (value == 21)
System.out.print("BLACKJACK!\t");
else
System.out.print("\t" + value + " \t\t");
myHand.print();
}
}
Deck-
package cards;
import java.util.ArrayList;
import java.util.Random;
public class Deck {
private ArrayList<PlayingCard> cards;
private Random rand;
public Deck(int n) {
super();
rand = new Random();
cards = new
ArrayList<PlayingCard>(n);
for (int suite = 1; suite <= 4;
suite ++)
for (int rank =
1; rank <= 13; rank ++) {
if ((suite - 1) * 13 + rank <= n) {
cards.add(new PlayingCard(rank, suite));
}
}
}
public PlayingCard dealOne() {
return
cards.get(rand.nextInt(52));
}
public String toString(){
String ret = "";
for (PlayingCard card :
cards){
ret += card +
"\n";
}
return ret;
}
}
HandOfCards-
package cards;
import cards.PlayingCard;
public interface HandOfCards {
public void add(PlayingCard c);
public int getValue();
public void print();
}
PlayingCards-
package cards;
// Card class
// Constructor creates a joker, deal() method sets a rank &
suit.
import java.util.Random;
public class PlayingCard {
public final static String suits[] = {"None",
"Hearts", "Spades", "Diamonds", "Clubs"};
public final static String ranks[] = {"Joker", "Ace",
"2", "3", "4", "5", "6", "7", "8", "9",
"10", "Jack", "Queen",
"King"};
private int rank;
private int suit;
/**
* Default constructor sets the card to a random
value
*/
public PlayingCard ()
{
// Set each data member to a random
number between 1 and length-1
Random randNum = new
Random();
this.setRank(randNum.nextInt(ranks.length-1) + 1);
this.setSuit(randNum.nextInt(suits.length-1) + 1);
}
/**
* Constructor with String values
*
* @param rank the rank name
* @param suit the suit name
*/
public PlayingCard (String rank, String suit)
{
this.rank = find_entry(rank,
ranks);
this.suit = find_entry(suit,
suits);
}
/**
* Find the index of an entry in an array
*
* @param value the entry to search for
* @param values array to search
* @return index of the value in values (0
default)
*/
private static int find_entry(String value, String
values[])
{
int ret = 0;
for (int
ii=0;ii<values.length;ii++)
{
if
(value.toUpperCase() == values[ii].toUpperCase())
ret = ii;
}
return ret;
}
/**
* Constructor with int values
*
* @param rank the rank index
* @param suit the suit index
*/
public PlayingCard (int rank, int suit)
{
// Use setters instead of directly
assigning so that any logic
// validating the values can reside
in one place.
this.setRank(rank);
this.setSuit(suit);
}
// Getters & Setters
public int getRank() {
return rank;
}
public void setRank(int rank) {
this.rank = rank %
ranks.length;
}
public void setRank(String rank) {
this.rank = find_entry(rank,
ranks);
}
public int getSuit() {
return suit;
}
public void setSuit(int suit) {
this.suit = suit %
suits.length;
}
public void setSuit(String suit) {
this.suit = find_entry(suit,
suits);
}
/**
* Return string representation of the Card
*
* @return string in the form "rank of suit"
*/
public String toString ()
{
return (ranks[rank] + " of " +
suits[suit]);
}
}
bagDriver-
import cards.BagHand;
import cards.Deck;
public class bagDriver {
public static void main(String[] args) {
for(int i = 1; i <= 4; i++) { //
playing two rounds
System.out.println("Game : " + i);
Deck d = new
Deck(52);
for(int j = 1; j
<= 3; j++) { // three players
BagHand hand = new BagHand();
hand.add(d.dealOne());
hand.add(d.dealOne());
System.out.print("Hand : " + j);
hand.print();
}
System.out.print("\n\n");
}
}
}
In: Computer Science
In this problem, we will consider the following situation as depicted in the diagram: A block of mass m slides at a speed v along a horizontal, smooth table. It next slides down a smooth ramp, descending a height h, and then slides along a horizontal rough floor, stopping eventually. Assume that the block slides slowly enough so that it does not lose contact with the supporting surfaces (table, ramp, or floor). You will analyze the motion of the block at different moments using the law of conservation of energy.
Part A
Which word in the statement of this problem allows you to assume that the table is frictionless?
Part B
Suppose the potential energy of the block at the table is given by mgh/3. This implies that the chosen zero level of potential energy is __________.
Part C
If the zero level is a distance 2h/3 above the floor, what is the potential energy of the block on the floor?
Express your answer in terms of some or all the variables m, v, h and and any appropriate constants.
Part D
Considering that the potential energy of the block at the table is mgh/3 and that on the floor is -2mgh/3, what is the change in potential energy ΔU of the block if it is moved
from the table to the floor?
Part E
Which form of the law of conservation of energy describes the motion of the block when it slides from the top of the table to the bottom of the ramp?
Part F
As the block slides down the ramp, what happens to its kinetic energy K, potential energy U, and total mechanical energy E?
Part G
Using conservation of energy, find the speed vb of the block at the bottom of the ramp.
Express your answer in terms of some or all the variables m, v, h and and any appropriate constants.
Part H
Which form of the law of conservation of energy describes the motion of the block as it slides on the floor from the bottom of the ramp to the moment it stops?
Part I
As the block slides across the floor, what happens to its kinetic energy K, potential energy U, and total mechanical energy E?
Part J
What force is responsible for the decrease in the mechanical energy of the block?
Part K
Find the amount of energy E dissipated by friction by the time the block stops.
Express your answer in terms of some or all the variables m, v, h and and any appropriate constants.
In: Physics
List 5 largest segments of the hospitality industry. For each of these, name and describe 4 to 5 positions. In terms of number of people employed list and describe 2 segment of the hospitality industry that are declining and 2 segment that are growing.
In: Economics
List and defend at least three qualities that you, in the role of project manager, would look for in a vendor if a project you are managing chooses to outsource or purchase from the outside? List some suggested criteria for selecting a vendor.
In: Operations Management