Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The ladder of a fire truck can be elevated (increase of angle phi), rotated abou

ID: 3836184 • Letter: T

Question

The ladder of a fire truck can be elevated (increase of angle phi), rotated about the z-axis (increase angle theta), and extended (increase of r) Initially, the ladder rests on the truck (theta = 0, phi = 0, r = 6 meters) Then the ladder is moved to a new position by raising the ladder at a rate of 4 degree/sec, rotating at a rate of 7.5 degree/sec & extending the ladder at a rate of 0.35 m/s. Determine the position of the tip of the ladder for 12 seconds. Write a user-defined function, LASTNAMES_ladder_initial, speed, t) to create the trajectory plot of the end-effector. initial is a 1D array containing the initial positons [theta, phi, r], where the angles are in degrees and r in m. speed is a 1D array containing the speed of each degree of freedom e, o, and r, respectively. t is an scalar representing the total time. Use your function to create a 3D line plot of the tip position of the end-effector for 12 seconds Your plot must include proper title and axis labels that are coded in your program. Your function must check for invalid inputs.

Explanation / Answer

public class VideoPoker {

// default constant values
private static final int startingBalance=100;
private static final int numberOfCards=5;

// default constant payout value and playerHand types
private static final int[] multipliers={1,2,3,5,6,10,25,50,1000};
private static final String[] goodHandTypes={
   "One Pair" , "Two Pairs" , "Three of a Kind", "Straight", "Flush   ",
   "Full House", "Four of a Kind", "Straight Flush", "Royal Flush" };

// must use only one deck
private final Decks oneDeck;

// holding current poker 5-card hand, balance, bet
private List playerHand;
private int playerBalance;
private int playerBet;

/** default constructor, set balance = startingBalance */
public VideoPoker()
{
   this(startingBalance);
}

/** constructor, set given balance */
public VideoPoker(int balance)
{
   this.playerBalance= balance;
Decks(1, false);
}

/** This display the payout table based on multipliers and goodHandTypes arrays */
private void showPayoutTable()
{
   System.out.println(" ");
   System.out.println("Payout Table    Multiplier ");
   System.out.println("=======================================");
   int size = multipliers.length;
   for (int i=size-1; i >= 0; i--) {
       System.out.println(goodHandTypes[i]+" | "+multipliers[i]);
   }
   System.out.println(" ");
}

/** Check current playerHand using multipliers and goodHandTypes arrays
* Must print yourHandType (default is "Sorry, you lost") at the end of function.
* This can be checked by testCheckHands() and main() method.
*/
private void checkHands()
{
// implement this method!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote