Questions
Programming language: Java If any more information is needed please let me know exactly what you...

Programming language: Java

If any more information is needed please let me know exactly what you need.

Though there are a bunch of files they are small and already done. Modify the driver file ,Starbuzz coffee, to be able to order each blend and be able to add each condiment to each of the blends. The price should be set accordingly. Be able to: order 1 of each type of beverage, add multiple toppings to each ordered beverage and use each condiment at least once.

Beverage.java:

public abstract class Beverage {
   String description = "Unknown Beverage";
  
   public String getDescription() {
       return description;
   }

   public abstract double cost();
}

CondimentDecorator.java:

public abstract class CondimentDecorator extends Beverage {
   public abstract String getDescription();
}

DarkRoast.java:

public class DarkRoast extends Beverage {
   public DarkRoast() {
       description = "Dark Roast Coffee";
   }

   public double cost() {
       return .99;
   }
}

Decaf.java:

public class Decaf extends Beverage {
   public Decaf() {
       description = "Decaf Coffee";
   }

   public double cost() {
       return 1.05;
   }
}

Espresso.java:

public class Espresso extends Beverage {
  
   public Espresso() {
       description = "Espresso";
   }
  
   public double cost() {
       return 1.99;
   }
}

HouseBlend.java:

public class HouseBlend extends Beverage {
   public HouseBlend() {
       description = "House Blend Coffee";
   }

   public double cost() {
       return .89;
   }
}

Caramel.java:

public class Caramel extends Beverage {
   public Caramel() {
       description = "Caramel Coffee";
   }

   public double cost() {
       return 1.35;
   }
}

Chocolate.java:

public class Chocolate extends CondimentDecorator {
   Beverage beverage;

   public Chocolate(Beverage beverage) {
       this.beverage = beverage;
   }

   public String getDescription() {
       return beverage.getDescription() + ", Chocolate";
   }

   public double cost() {
       return .20 + beverage.cost();
   }
}

Cinnamon.java:

public class Cinnamon extends CondimentDecorator {
   Beverage beverage;

   public Cinnamon(Beverage beverage) {
       this.beverage = beverage;
   }

   public String getDescription() {
       return beverage.getDescription() + ", Cinnamon";
   }

   public double cost() {
       return .15 + beverage.cost();
   }
}

Milk.java:

public class Milk extends CondimentDecorator {
   Beverage beverage;

   public Milk(Beverage beverage) {
       this.beverage = beverage;
   }

   public String getDescription() {
       return beverage.getDescription() + ", Milk";
   }

   public double cost() {
       return .10 + beverage.cost();
   }
}

Mint.java:

public class Mint extends CondimentDecorator {
   Beverage beverage;

   public Mint(Beverage beverage) {
       this.beverage = beverage;
   }

   public String getDescription() {
       return beverage.getDescription() + ", Mint";
   }

   public double cost() {
       return .15 + beverage.cost();
   }
}

Mocha.java:

public class Mocha extends CondimentDecorator {
   Beverage beverage;

   public Mocha(Beverage beverage) {
       this.beverage = beverage;
   }

   public String getDescription() {
       return beverage.getDescription() + ", Mocha";
   }

   public double cost() {
       return .20 + beverage.cost();
   }
}

Soy.java:

public class Soy extends CondimentDecorator {
   Beverage beverage;

   public Soy(Beverage beverage) {
       this.beverage = beverage;
   }

   public String getDescription() {
       return beverage.getDescription() + ", Soy";
   }

   public double cost() {
       return .15 + beverage.cost();
   }
}

Whip.java:

public class Whip extends CondimentDecorator {
   Beverage beverage;

   public Whip(Beverage beverage) {
       this.beverage = beverage;
   }

   public String getDescription() {
       return beverage.getDescription() + ", Whip";
   }

   public double cost() {
       return .10 + beverage.cost();
   }
}

StarbuzzCoffee.java:

public class StarbuzzCoffee {

   public static void main(String args[]) {
       Beverage beverage = new Espresso();
       System.out.println(beverage.getDescription()
               + " $" + beverage.cost());
              
       Beverage beverage1 = new Decaf();
       beverage1 = new Soy(beverage1);
       beverage1 = new Mocha(beverage1);
       beverage1 = new Whip(beverage1);
       beverage1 = new Cinnamon(beverage1);
       beverage1 = new Mint(beverage1);
       beverage1 = new Chocolate(beverage1);
       System.out.println(beverage1.getDescription()
               + " $" + beverage1.cost());

       Beverage beverage2 = new DarkRoast();
       beverage2 = new Soy(beverage2);
       beverage2 = new Mocha(beverage2);
       beverage2 = new Whip(beverage2);
       beverage2 = new Cinnamon(beverage2);
       beverage2 = new Mint(beverage2);
       beverage2 = new Chocolate(beverage2);
       System.out.println(beverage2.getDescription()
               + " $" + beverage2.cost());

       Beverage beverage3 = new HouseBlend();
       beverage3 = new Soy(beverage3);
       beverage3 = new Mocha(beverage3);
       beverage3 = new Whip(beverage3);
       beverage3 = new Cinnamon(beverage3);
       beverage3 = new Mint(beverage3);
       beverage3 = new Chocolate(beverage3);
       System.out.println(beverage3.getDescription()
               + " $" + beverage3.cost());
      
       Beverage beverage4 = new Hazelnut();
       beverage4 = new Soy(beverage4);
       beverage4 = new Mocha(beverage4);
       beverage4 = new Whip(beverage4);
       beverage4 = new Cinnamon(beverage4);
       beverage4 = new Mint(beverage4);
       beverage4 = new Chocolate(beverage4);
       System.out.println(beverage4.getDescription()
               + " $" + beverage4.cost());  

       Beverage beverage5 = new Caramel();
       beverage5 = new Soy(beverage5);
       beverage5 = new Mocha(beverage5);
       beverage5 = new Whip(beverage5);
       beverage2 = new Cinnamon(beverage5);
       beverage2 = new Mint(beverage5);
       beverage2 = new Chocolate(beverage5);
       System.out.println(beverage5.getDescription()
               + " $" + beverage5.cost());
   }
}

In: Computer Science

Name the two different kinds of friction and briefly describe them.          (6 marks) The data below...

  1. Name the two different kinds of friction and briefly describe them.         
  2. The data below for the instantaneous velocity v versus the time t were obtained in a level 300 student experiment. Perform a linear least square fit with v as the vertical axis and t as the horizontal axis.

v(m/s)

0.352

0.496

0.655

0.808

0.939

1.073

t(s)

0.200

0.400

0.600

0.800

1.000

1.200

Table 1: v versus t

Determine from the graph;

    1. Acceleration a
    2. Initial velocity vo - (Intercept)          
  1. Mention the equipment used to measure the following quantities in the laboratory and state their corresponding SI unit of measurements;
    1. Voltage
    2. Current

Magnetic flux density           

In: Physics

1. The estimated costs of producing 6,000 units of a component are: Per Unit Total Direct...

1. The estimated costs of producing 6,000 units of a component are:

Per Unit Total

Direct Material $10 $60,000

Direct Labor 8 48,000

Applied Variable Factory Overhead 9 54,000

Applied Fixed Factory Overhead 12 72,000

$1.5 per direct labor dollar

$39 $234,000

The same component can be purchased from market at a price of $29 per unit. If the component is purchased from market, some percentage of the fixed factory overhead will be saved.

a. Should the component be purchased from the market?

b. From the above, what is the relevant cost

2. What is relevant cost

a. What is management decision

b. Mention management decision tools

In: Accounting

8. What kind of sampling strategy would you use in the following situations? Take into consideration...

8. What kind of sampling strategy would you use in the following situations? Take into consideration the spatial and temporal variability you expect to encounter. What type of sampling would be preferred: grab sample, composite sample, or continuous monitoring?

a. To study the contamination of fish in a river where a chemical company has a waste water discharge outlet.

b. To identify accident release of chemicals by the industry mention above.

c. To implement strategies to reduce smog formation in your city.

d. To study the effect of auto exhaust on the air quality in your city.

e. To identify ground water contamination around an abandoned chemical factory.

f. To determine if apples from a sprayed orchard are contaminated with pesticides.

In: Chemistry

Your first patient this week has a problem of the genitourinary tract that has plagued him...

Your first patient this week has a problem of the genitourinary tract that has plagued him since birth. He has had many hospitalizations due to this problem and suffers repeatedly with difficulties of the genitourinary tract. Describe the problem using terms built from the genitourinary medical word elements in your text. Mention 3 tests or procedures that would help you understand or treat your patient.

The second patient for you this week is a woman with a problem involving the reproductive area. Describe the problem she has with words built from some of the reproductive medical word elements in your text. You need to include at least 3 tests or procedures needed to address her issue as well.

In: Nursing

Two friends are dividing a prize worth $10. Each of two players announces an integer a1...

Two friends are dividing a prize worth $10. Each of two players announces an integer a1 and a2 respectively between 0 and 10 both inclusive. If the sum of the numbers named is less than or equal to 10, they each get the number they named and the remainder is destroyed. If the sum a1 + a2 >10 and both claims are the same, then the prize is equally divided. If a1 + a2 >10 and the two integers named are different then minimum of the two claims gets the claimed amount and the other one gets the remainder if any.

Model as a strategic game

Does either player have any dominating strategy?

Is the game dominance solvable? If so, solve for the IEDS equilibrium to the game. If not, clearly mention the strategies that survive IEDS.

In: Economics

Suppose a small company that manufactures cereal bars own two scales that weigh their products (say...

Suppose a small company that manufactures cereal bars own two scales that weigh their products (say A and B). Quality control manager in this company is concerned that scale A is erroneous. He takes a sample of 20 cereal bars and weigh each of them using both scales A and B. Assume that you were given a spread sheet that include weights of the 20 cereal bars reported by two scales.

Explain how you would approach testing the QC managers’ concern. What type of tests/CI you would construct to help him make a decision? Mention of any assumptions you would check or any graphing techniques you would use to display the data.

In: Statistics and Probability

Your first patient this week has a problem of the genitourinary tract that has plagued him...

Your first patient this week has a problem of the genitourinary tract that has plagued him since birth. He has had many hospitalizations due to this problem and suffers repeatedly with difficulties of the genitourinary tract. Describe the problem using terms built from the genitourinary medical word elements in your text. Mention 3 tests or procedures that would help you understand or treat your patient.

The second patient for you this week is a woman with a problem involving the reproductive area. Describe the problem she has with words built from some of the reproductive medical word elements in your text. You need to include at least 3 tests or procedures needed to address her issue as well.

In: Nursing

Define and use clear health care facility finance examples A to H each term have to...

Define and use clear health care facility finance examples A to H each term have to write at least 150~ 200 words. -Important This is the essay question. Dont use exactly same as coursehero. APA format and dont do Plagiarism! 1. Define and use clear health care facility finance examples (You must include numbers as well as words) A. The difference between facility charges, payment and costs B. Payment to cost ratio C. Payer mix D. Global Managed Care E. Shifting Financial Risk F. The Forms of Shifted Financial Risk G. Benchmarks H. Operational Performance Indicators (mention at least 4)

In: Nursing

“Obtaining and documenting appropriate evidence of auditor’s opinion is one of the main objectives of auditing...

“Obtaining and documenting appropriate evidence of auditor’s opinion is one of the main objectives of

auditing financial statements” Based on the above statement, you are required to answer the following

questions in your own view:

a) Explain the concept of sufficient appropriate evidence in detail with five examples. (200 Words)

b) Mention and explain the financial statement assertions and audit objectives in the following cases.

1) Verifying inventories included in the balance sheet are physically existed.

2) Verifying that inventories listings are accurately compiled.

3) Verifying whether the transactions are recorded in the proper period.

4) Verifying the accounts receivable already sold out, does not belong to the entity

5) Verifying the pledge of material inventories is appropriately disclosed.

In: Accounting