Questions
Using Java Although the long data type can store large integers, it cannot store extremely large...

Using Java

Although the long data type can store large integers, it cannot store extremely large values such as an integer with 100 digits. Create a HugeNumber class that uses a linked list of single digits to represent non-negative integers of arbitrary length. The class should include a method to add a new most significant digit to the existing number so that longer and longer numbers can be created. Also add methods to reset the number and to return the value of the huge integer as a String (is this toString?) along with appropriate constructor and accessor methods.

In addition to the requirements given above, implement an inner class iterator which will allow you to sequence through the digits of the HugeNumber one at a time.

Decide if the HugeNumber contains no digits, then converting it to a String should return a “-1” or an empty string and document your decision.

Submit program files for your HugeNumber class and of your class containing main. Include at least test cases for 3 huge numbers, each with 12 or more digits. Make sure to demonstrate the methods to reset the HugeNumber, to return the number as a String, and to iterate through the digits of the HugeNumber one at a time.

In: Computer Science

, the PESTEL and the FIVE FORCES models to analyze the situation and structuring the  Amazon’s rise...

  1. , the PESTEL and the FIVE FORCES models to analyze the situation and structuring the  Amazon’s rise is forcing laundry detergents to shrink.

In: Operations Management

Describe the layout design of walmart 's facilities . I need refernce as well for your...

Describe the layout design of walmart 's facilities .

I need refernce as well for your answer .

In: Operations Management

Hallmark Cards, Inc. v. Murley When a former Hallmark employee breaches a term in her severance...

Hallmark Cards, Inc. v. Murley

When a former Hallmark employee breaches a term in her severance contract, how much can Hallmark recover as damages?

iStockPhoto.com/RiverNorthPhotography

BACKGROUND AND FACTS Janet Murley was the vice president of marketing at Hallmark Cards, Inc., until Hallmark eliminated her position as part of a corporate restructuring. As a vice president, Murley had access to Hallmark’s confidential information, including its business plans, market research, and financial statements. In 2002, Murley and the company entered into a separation agreement. Murley agreed not to work in the greeting card or gift industry for a period of eighteen months and not to disclose any confidential information or retain any business records or documents relating to Hallmark. In exchange, Hallmark paid $735,000 to Murley as part of her severance package.

After the expiration of her noncompete agreement, Murley accepted a consulting position with Recycled Paper Greetings (RPG) for $125,000 and disclosed confidential Hallmark information to RPG. Hallmark filed a suit in a federal district court against Murley, alleging breach of contract. A jury returned a verdict in Hallmark’s favor and awarded $860,000 in compensatory damages (the $735,000 severance payment and $125,000 that Murley received from RPG). Murley appealed.

IN THE WORDS OF THE COURT …

BYE, Circuit Judge.

* * * *

With respect to the $735,000, Murley contends Hallmark was not entitled to a return of its full payment under the parties’ separation agreement because Murley fulfilled several material terms of that agreement (e.g., the * * * non-compete provisions). Under the circumstances, we cannot characterize the jury’s reimbursement of Hallmark’s original payment under the separation agreement as grossly excessive or glaringly unwarranted by the evidence. Hallmark’s terms under the separation agreement clearly indicated its priority in preserving confidentiality. At trial, Hallmark presented ample evidence that Murley not only retained but disclosed Hallmark’s confidential materials to a competitor in violation of the terms and primary purpose of that agreement. Thus, the jury’s determination that Hallmark was entitled to a full refund of its $735,000 is not against the weight of the evidence.

With respect to the remaining $125,000 of the jury award, Murley argues Hallmark can claim no entitlement to her compensation by RPG for consulting services unrelated to Hallmark. We agree. In an action for breach of contract, a plaintiff may recover the benefit of his or her bargain as well as damages naturally and proximately caused by the breach and damages that could have been reasonably contemplated by the defendant at the time of the agreement. Moreover, the law cannot elevate the non-breaching party to a better position than she would have enjoyed had the contract been completed on both sides. By awarding Hallmark more than its $735,000 severance payment, the jury award placed Hallmark in a better position than it would find itself had Murley not breached the agreement. The jury’s award of the $125,000 payment by RPG was, therefore, improper. [Emphasis added.]

DECISION AND REMEDY The U.S. Court of Appeals for the Eighth Circuit vacated the award of damages but otherwise affirmed the judgment in Hallmark’s favor. The appellate court remanded the case to the lower court to reduce the award of damages to include only the amount of Hallmark’s severance payment.

Question: Do you agree or disagree with the Court's decision and how would you have ruled? Fully explain.

In: Operations Management

Thirty small communities in Connecticut (population near 10,000 each) gave an average of x = 138.5...

Thirty small communities in Connecticut (population near 10,000 each) gave an average of x = 138.5 reported cases of larceny per year. Assume that σ is known to be 44.5 cases per year. (a) Find a 90% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)

lower limit    
upper limit    
margin of error    


(b) Find a 95% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)

lower limit    
upper limit    
margin of error    


(c) Find a 99% confidence interval for the population mean annual number of reported larceny cases in such communities. What is the margin of error? (Round your answers to one decimal place.)

lower limit    
upper limit    
margin of error    


(d) Compare the margins of error for parts (a) through (c). As the confidence levels increase, do the margins of error increase?

As the confidence level increases, the margin of error decreases. As the confidence level increases, the margin of error increases.     As the confidence level increases, the margin of error remains the same.


(e) Compare the lengths of the confidence intervals for parts (a) through (c). As the confidence levels increase, do the confidence intervals increase in length?

As the confidence level increases, the confidence interval remains the same length. As the confidence level increases, the confidence interval decreases in length.     As the confidence level increases, the confidence interval increases in length.

In: Math

Bank Three currently has $600 million in transaction deposits on its balance sheet. The Federal Reserve...

Bank Three currently has $600 million in transaction deposits on its balance sheet. The Federal Reserve has currently set the reserve requirement at 10 percent of transaction depositors

If the Federal Reserve decreases the reserve requirement to 8 percent, show the balance sheet of Bank Three and the Federal Reserve System just before and after the full effect of the reserve requirement change. Assume Bank Three withdraws all excess reserves and gives out loans and that borrowers eventually return all of these funds to Bank Three in the form of transaction deposits.

Redo part (a) using a 12 percent reserve requirement.

In: Finance

FINANCIAL LEVERAGE EFFECTS The Neal Company wants to estimate next year's return on equity (ROE) under...

FINANCIAL LEVERAGE EFFECTS

The Neal Company wants to estimate next year's return on equity (ROE) under different financial leverage ratios. Neal's total capital is $17 million, it currently uses only common equity, it has no future plans to use preferred stock in its capital structure, and its federal-plus-state tax rate is 40%. The CFO has estimated next year's EBIT for three possible states of the world: $4.2 million with a 0.2 probability, $2 million with a 0.5 probability, and $0.9 million with a 0.3 probability. Calculate Neal's expected ROE, standard deviation, and coefficient of variation for each of the following debt-to-capital ratios. Do not round intermediate calculations. Round your answers to two decimal places at the end of the calculations.

Debt/Capital ratio is 0.

RÔE = %

σ = %

CV =

Debt/Capital ratio is 10%, interest rate is 9%.

RÔE = %

σ = %

CV =

In: Finance

Pros/Cons of preventative therapy What do you think are the pros and cons of preventative therapy?

Pros/Cons of preventative therapy What do you think are the pros and cons of preventative therapy?

In: Psychology

Europeans Consume 45% of all gasoline produced worldwide - With the law of demand, you would...

Europeans Consume 45% of all gasoline produced worldwide
- With the law of demand, you would expect that when gas prices continue to rise, the demand would fall, but this isn’t necessarily the case, especially in the short term. (10% increase in gas is associated with a 1-2% decrease in quantity of gas purchased.
- In 2004-2005, avg gas price went from up 55% ($1.87 -> 2.90), but consumption only went down 3.5% (9.15 mill barrels to 8.83 mill barrels)
- From 1998 to 2004, average gas went up 53%, but consumption also went up 10% when you would normally think it would go down by 26-53%.

a) The above are estimates of 1 year and 6 year response of gas quantities purchased to changes in gas prices. Utilizing the above data, what are the estimates (expressed in rages) for the 1 year (short term) and 6 year (long term) price elasticities of demand for European Gasoline.
b) Using your answer from a), what will happen in the short run to European consumer’s total expenditures on gas as the price of gasoline rises. Will it stay the same, increase or decrease?
c) The figures from 2004-05 may overstate the drop in consumption because the head of energy in Europe measures gas before it reaches the retailer, and retailers may have used more of their inventories when there was a disruption in the supply chain. This implies a different short run price elasticity of demand for European gas than earlier studies estimate. What is this short run price elasticity?

In: Economics

“Companies should focus on financial measures of quality because these are the only measures of quality...

“Companies should focus on financial measures of quality because these are the only measures of quality that can be linked to bottom-line performance.” Do you agree? Explain. How are financial measures and quality related? What other factors should be considered?

In: Operations Management

How might the shift of interstitial fluid be impacted if a patient was dehydrated?

How might the shift of interstitial fluid be impacted if a patient was dehydrated?

In: Nursing

Define the occupational stress and list common occupational stressors. List the diseases associated with occupational stress...

Define the occupational stress and list common occupational stressors. List the
diseases associated with occupational stress and as manager of human resource,
describe the management of occupational stress.

In: Operations Management

In a short paper describe the four different types of analytics needed to create insights and...

In a short paper describe the four different types of analytics needed to create insights and make decisions from big data.

In: Operations Management

*// 1- Add JavaDoc to This classes 2- Mak a UML */ import java.util.*; public class...

*//
1- Add JavaDoc to This classes 
2- Mak a UML
*/
import java.util.*;
public class Display
{
   public static void main(String[] args)
   {
       altEnerCar car1 = new altEnerCar(20000, 2001, 20000);
       altEnerCar car2 = new HydrogenCar(0, 2012, 50000, 100, false);
       altEnerCar car3 = new ElectricCar(0, 2014, 30000, 10, 50);
       altEnerCar car4 = new NaturalGasCar(0, 2000, 60000, 5, 20);
       altEnerCar car5 = new PropaneCar(0, 2011, 45000, 10, true);
      
       ArrayList<altEnerCar> cars = new ArrayList<altEnerCar>();
      
       cars.add(car1);
       cars.add(car2);
       cars.add(car3);
       cars.add(car4);
       cars.add(car5);
       Collections.sort(cars);
       System.out.println(cars);
      
   }


}




/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author charl
 */






public class ElectricCar extends NoEmissionsCar
{
   private double batterycharge;
   public ElectricCar()
   {
       this.batterycharge = 200;
   }
   public ElectricCar(double miles, int yearmade, double price, double fuelcost, double batterycharge)
   {
       super(miles, yearmade, price, fuelcost);
       this.batterycharge = batterycharge;
   }
   @Override
   public void setFuelCost(double fuelcost)
   {
       this.fuelcost = fuelcost;
   }
   @Override
   public double getFuelCost()
   {
       return this.fuelcost;
   }
   public void setBatteryCharge(double batterycharge)
   {
       this.batterycharge = batterycharge;
   }
   public double getBatteryCharge()
   {
       return this.batterycharge;
   }
   @Override
   public String toString()
   {
       return "\tMiles: "+miles+"\tMake year: "+yearmade+"\tPrice: "+price+"\tFuel cost: "+fuelcost+"\tBatery Charge: "+batterycharge;
   }


}


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author charl
 */




public abstract class EmissionsCar extends altEnerCar
{
   protected double emissions;
   public EmissionsCar()
   {
       this.emissions = 60;
   }
   public EmissionsCar(double miles, int yearmade, double price, double emissions)
   {
       super(miles, yearmade, price);
       this.emissions = emissions;
   }
   public abstract void setEmissions(double emissions);
   public abstract double getEmissions();
}


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author charl
 */


public class HydrogenCar extends NoEmissionsCar
{
   private boolean infastructure;
   public HydrogenCar()
   {
       this.infastructure = false;
   }
   public HydrogenCar(double miles, int yearmade, double price, double fuelcost, boolean infastructure)
   {
       super(miles, yearmade, price, fuelcost);
       this.infastructure = infastructure;
   }


   
   @Override
   public void setFuelCost(double fuelcost)
   {
       this.fuelcost = fuelcost;
   }
   @Override
   public double getFuelCost()
   {
       return this.fuelcost;
   }
   public void setInfastructure(boolean infastructure)
   {
       this.infastructure = infastructure;
   }
   public boolean getInfastructure(boolean infastructure)
   {
       return this.infastructure;
   }
   @Override
   public String toString()
   {
       return "\tMiles: "+miles+"\tMake Year: "+yearmade+"\tPrice: "+price+"\tFuel Cost: "+fuelcost+"\tInfrastructure: "+infastructure;
   }
}


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author charl
 */


public class NaturalGasCar extends EmissionsCar
{
   private double methaneemissions;
   public NaturalGasCar()
   {
       this.methaneemissions = 15;
   }
   public NaturalGasCar(double miles, int yearmade, double price, double emissions, double methaneemissions)
   {
       super(miles, yearmade, price, emissions);
       this.methaneemissions = methaneemissions;
   }


    
   @Override
   public void setEmissions(double emissions)
   {
       this.emissions = emissions;
      
   }
   @Override
   public double getEmissions()
   {
       return this.emissions;
   }
   public void setMethaneEmissions(double methaneemissions)
   {
       this.methaneemissions = methaneemissions;
      
   }
   public double getMethaneEmissions()
   {
       return this.methaneemissions;
   }
   @Override
   public String toString()
   {
       return "\tMiles: "+miles+"\tMake Year: "+yearmade+"\tPrice: "+price+"\tEmission: "+emissions+"\tMethane Emission: "+methaneemissions;
   }


}
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author charl
 */




public abstract class NoEmissionsCar extends altEnerCar
{
   protected double fuelcost;
   public NoEmissionsCar()
   {
       this.fuelcost = 30;
   }
   public NoEmissionsCar(double miles, int yearmade, double price, double fuelcost)
   {
       super(miles, yearmade, price);
       this.fuelcost = fuelcost;
   }
   public abstract void setFuelCost(double fuelcost);
   public abstract double getFuelCost();
}


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author charl
 */


public class PropaneCar extends EmissionsCar
{
   private boolean infastructure;
   public PropaneCar()
   {
       this.infastructure = true;
   }
   public PropaneCar(double miles, int yearmade, double price, double emissions, boolean infastructure)
   {
       super(miles, yearmade, price, emissions);
       this.infastructure = infastructure;
   }
   @Override
   public void setEmissions(double emissions)
   {
       this.emissions = emissions;
      
   }
   @Override
   public double getEmissions()
   {
       return this.emissions;
   }
   public void setMethaneEmissions(boolean infastructure)
   {
       this.infastructure = infastructure;
      
   }
   public boolean getMethaneEmissions()
   {
       return this.infastructure;
   }
   @Override
   public String toString()
   {
       return "\tMiles: "+miles+"\tMake Year: "+yearmade+"\tPrice: "+price+"\tEmissions: "+emissions+"\t Infrastructure: "+infastructure;
   }


}
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author charl
 */
public class altEnerCar implements Comparable<altEnerCar>
{
   protected double miles;
   protected int yearmade;
   protected double price;
  
   public altEnerCar()
   {
       this.miles = 0;
       this.yearmade = 2019;
       this.price = 50000;
   }
   public altEnerCar(double miles, int yearmade, double price)
   {
       this.miles = miles;
       this.yearmade = yearmade;
       this.price = price;
   }
   public void setMiles(double miles)
   {
       this.miles = miles;
   }
   public void setYearMade(int yearmade)
   {
       this.yearmade = yearmade;
   }
   public void setPrice(double price)
   {
       this.price = price;
   }
   public double getMiles()
   {
       return this.miles;
   }
   public int getYearMade(int yearmade)
   {
       return this.yearmade;
   }
   public double getPrice()
   {
       return this.price;
   }
   public String toString()
   {
       return "\nmiles: "+miles+"\nyear made: "+yearmade+"\nprice: "+price;
   }
   public int compareTo(altEnerCar otherAECar)
   {
       return -1*(Double.valueOf(otherAECar.getPrice()).compareTo(this.price));
   }
  
}

In: Computer Science

​(Proforma balance sheet construction​)Use the following​ industry-average ratios to construct a pro forma balance sheet for​...

​(Proforma balance sheet construction​)Use the following​ industry-average ratios to construct a pro forma balance sheet for​ Karen's Beauty​ Products, Inc

Total asset turnover 1.5 times

Average collection period (assume 365-day year) 16 days

Fixed asset turnover 6 times

Inventory turnover (based on cost of goods sold) 2 times

Current ratio 1.8 times

Sales (all on credit) 3,000,000

Cost of goods sold 75% of sales

Debt ratio 50%

Fill in the assets section of the pro forma balance sheet.  ​(Round all items to the nearest​ dollar.)

Cash

​$nothing

Accounts receivable

nothing

Inventories

nothing

Net fixed assets

nothing

Total assets

​$nothing

In: Finance