Questions
You have 625 mL of an 0.23 M acetic acid solution. What volume (V) of 2.10...

You have 625 mL of an 0.23 M acetic acid solution. What volume (V) of 2.10 M NaOH solution must you add in order to prepare an acetate buffer of pH = 5.03? (The pKa of acetic acid is 4.76.)

In: Chemistry

An empty parallel plate capacitor is connected between the terminals of a 10.7-V battery and charged...

An empty parallel plate capacitor is connected between the terminals of a 10.7-V battery and charged up. The capacitor is then disconnected from the battery, and the spacing between the capacitor plates is doubled. As a result of this change, what is the new voltage between the plates of the capacitor?

In: Physics

1.Understand how to interpret values, such as lambda, gamma, etc. 2.When is Phi appropriate? 3.When Cramer’s...

1.Understand how to interpret values, such as lambda, gamma, etc.

2.When is Phi appropriate?

3.When Cramer’s V appropriate?

4.What values can phi take on?

5.What if the table is larger than 2x2?

In: Math

What is the difference between the color-blind perspective on race and blatant bigotry? How does the...

What is the difference between the color-blind perspective on race and blatant bigotry? How does the color-blind ideology lead to racism evasiveness? Why is it often so difficult to recognize and address racial discrimination in the United States today? v

In: Psychology

2. Discuss the concepts of emotional expressions and relationships in early development (1-2 paragraphs) 6. Discuss...

2. Discuss the concepts of emotional expressions and relationships in early development (1-2 paragraphs)
6. Discuss the process of brain development in early childhood. How ford the concept of nature v. Nurture relate to this issue? (1-2 paragraphs)

In: Psychology

You have 875 mL of an 0.39 M acetic acid solution. What volume (V) of 1.70...

You have 875 mL of an 0.39 M acetic acid solution. What volume (V) of 1.70 M NaOH solution must you add in order to prepare an acetate buffer of pH = 4.36? (The pKa of acetic acid is 4.76.)

In: Chemistry

What is the potential of a cell made up of Zn|Zn2+ and Cu|Cu2+ half-cells at 25o...

What is the potential of a cell made up of Zn|Zn2+ and Cu|Cu2+ half-cells at 25o C if [Zn2+] = 0.25 M and [Cu2+] = 0.15 M?

(Answer should be E = +1.09 V but I need to know how to get to that)

In: Chemistry

QUESTION 1 Wisliv Ltd was incorporated on the 01/06/16. The opening balance sheet of the company...

QUESTION 1
Wisliv Ltd was incorporated on the 01/06/16. The opening balance sheet of the company was as follows: Cash at bank GHS984000, share capital (60,000 ordinary shares of GHS 16.40 each) GHS984,000.
During June the company intends to make payments of GHS 656,000 for a freehold property,            GHS 164,000 for equipment and GHS98,400 for a motor vehicle. The company will also purchase an initial trading stock costing GHS360,800 on credit.
    The company has produced the following estimates:
i. Sales for June will be GHS131,200 and will increase at the rate of GHS49,200 per month until September. In October, sales will rise to GHS360,800 and this will be maintained for the subsequent months.

ii. The gross profit margin on goods sold will be 25%.

iii. There is a risk that supplies of trading stock will be interrupted towards the end of the accounting year. The company, therefore, intends to build up initial level of stock (GHS 360,800) by purchasing GHS 16,400 of stock each month in addition to the monthly purchases necessary to satisfy monthly sales. All purchases of stock (including the initial stock will be on one month’s credit).

iv. Sales will be divided equally between cash and credit sales. Credit customers are expected to pay two months after the sale is agreed.

v. Wages and salaries will be GHS 14,760 per month. Other overheads will be GHS8,200 per month for first four months and GHS 10,660 thereafter. Both types of expenses will be payable when incurred.


vi. 80% of sales will be generated by sales people who will receive 5% commission on sales. The commission is payable one month after the sale is agreed. The company intends to purchase further equipment in November 2016 for GHS 11,480 cash.

vii. Depreciation is to be provided at the rate of 5% per annum on freehold property and 20% per annum on equipment. (Depreciation has not been included in the overheads mentioned above in (v) above.


Required
Prepare a cash budget for Wisliv Ltd. for the six month period to 30/11/16.


Question 2
The Sock company buys hiking socks for GHS6 per pair and sells them GHS10. Management budgets monthly fixed costs of GHS12,000 for sales volume between 0 and 12,000 pairs.

Required
Consider the following questions separately by using the foregoing information each time.
i. Calculate the breakeven point in units.

ii. The Sock Company reduces its sales price from GHS10 per pair to GHS8 per pair. Calculate the new breakeven point in units.


iii. The Sock Company finds a new supplier for the socks. Variable costs will decrease by GHS1 per pair. Calculate the breakeven point in units.

iv. The Sock Company plans to advertise in hiking magazines. The advertising campaign will increase total fixed costs by GHS2,000 per month. Calculate the new breakeven point in units.

v. In addition to selling hiking socks, the Sock Company would like to start selling sports socks. The Sock Company expects to sell one pair of hiking socks for every three pairs of sports socks. The Sock Company will buy the sports socks for GHS4 per pair and sell them for GHS8 per pair. Total fixed costs will stay at GHS12,000 per month. Calculate the breakeven point in units for both hiking socks and sports socks.

In: Accounting

A Java question. You are given a Student class. A Student has a name and an...

A Java question. You are given a Student class. A Student has a name and an ArrayList of grades (Doubles) as instance variables.

Write a class named Classroom which manages Student objects.

You will provide the following:

1. public Classroom() a no-argument constructor.
2. public void add(Student s) adds the student to this Classroom (to an ArrayList
3. public String hasAverageGreaterThan(double target) gets the name of the first student in the Classroom who has an average greater than the target or the empty string. Do not use break. Do not return from the middle of the loop. Use a boolean flag if you need to terminate early.
4. public ArrayList<String> getStudents() gets an ArrayList<String> containing the names of all the Students in this Classroom.
5. public Student bestStudent() gets the Student with the highest average in this classroom or null there are no students
6. public String toString() gets a string represent ion using ArrayList's toString method

Provide Javadoc

-------------------------------------------------------------------------------------------------

ClassroomTester.java

import java.util.ArrayList;

public class ClassroomTester
{
public static void main(String[] args)
    {
       ArrayList<Double> grades1 = new ArrayList<>();
       grades1.add(82.0);
       grades1.add(91.5);
       grades1.add(85.0);
       Student student1 = new Student("Srivani", grades1);
      
       ArrayList<Double> grades2 = new ArrayList<>();
       grades2.add(95.0);
       grades2.add(87.0);
       grades2.add(99.0);
       grades2.add(100.0);
       Student student2 = new Student("Carlos", grades2);
       
       ArrayList<Double> grades3 = new ArrayList<>();
       grades3.add(100.0);
       grades3.add(98.0);
       grades3.add(100.0);
       grades3.add(97.0);
       Student student3 = new Student("Maria", grades3);
       
       ArrayList<Double> grades4 = new ArrayList<>();
       grades4.add(80.0);
       grades4.add(70.0);
       grades4.add(82.0);
       grades4.add(75.0);
       Student student4 = new Student("Fred", grades4);
       
       Classroom myClass = new Classroom();
       myClass.add(student1);
       myClass.add(student2);
       myClass.add(student3);
       myClass.add(student4);
       
       System.out.println(myClass);
       System.out.println("Expected: [[Student:name=Srivani,grades=[82.0, 91.5, 85.0]], [Student:name=Carlos,grades=[95.0, 87.0, 99.0, 100.0]], [Student:name=Maria,grades=[100.0, 98.0, 100.0, 97.0]], [Student:name=Fred,grades=[80.0, 70.0, 82.0, 75.0]]]");
       
       System.out.println(">90 GPA: " + myClass.hasAverageGreaterThan(90.0));
       System.out.println("Expected: Carlos");
       
       System.out.println(">99 GPA: " + myClass.hasAverageGreaterThan(99));
       System.out.println("Expected: ");
       
       Student best = myClass.bestStudent();
       if (best != null)
       {
          System.out.println(best.getName());
          System.out.println("Expected: Maria");
       }
       
       System.out.println(myClass.getStudents());
       System.out.println("Expected: [Srivani, Carlos, Maria, Fred]");
       
       //test with an empty classroom
       myClass = new Classroom();
       System.out.println(myClass);
       System.out.println("Expected: []");
       
       System.out.println(">90 GPA: " + myClass.hasAverageGreaterThan(90.0));
       System.out.println("Expected: ");
       
      
       best = myClass.bestStudent();
       if (best != null)
       {
          System.out.println(best.getName());
          
       }
       
       System.out.println(myClass.getStudents());
       System.out.println("Expected: []");
        
    }
}

Student.java

import java.util.ArrayList;
/**
 * Models a student with a name and collection
 * pf grades
 */
public class Student
{
    private String name;
    private ArrayList<Double> grades;

    /**
     * Constructor for Student with name 
     * and list of grades
     * @param name the name of the student
     * @param list the list of grades
     */
    public Student(String name, ArrayList<Double> list)
    {
        this.name = name;
        this.grades = list;
    }
    
    /**
     * Gets the name of the student
     * @return the student's name
     */
    public String getName()
    {
        return name;
    }
    
    /**
     * Gets the average of this student's grades
     * @return the average or 0 if there are no grades
     */
    public double getAverage()
    {
        double sum = 0;
        for ( double g : grades)
        {
            sum = sum + g;
        }
        
        double average = 0;
        if (grades.size() > 0)
        {
            average = sum / grades.size();
        }
        
        return average;
    }
    
    /**
     * @overrides
     */
    public String toString()
    {
        String s = "[Student:name=" + name 
           + ",grades=" + grades.toString() +"]";

        return s;
    }

}

In: Computer Science

In Java. Modify the attached GameDriver2 to read characters in from a text file rather than...

In Java. Modify the attached GameDriver2 to read characters in from a text file rather than the user. You should use appropriate exception handling when reading from the file. The text file that you will read is provided.

-------------------- Modify GaveDriver2.java --------------------

-----GameDriver2.java -----

import java.io.File;
import java.util.ArrayList;
import java.util.Scanner;

/**
* Class: GameDriver
*
* This class provides the main method for Homework 2 which reads in a
* series of Wizards, Soldier and Civilian information from the user
* and creates the objects
*
*/
public class GameDriver2
{

/**
* Main method- Starting point of program
*
* @param args
*/
public static void main(String[] args)
{

// create needed variables
ArrayList characters = new ArrayList();

// YOU CHANGE THIS LINE to opening file Characters.txt - use appropriate exception handling
// don't
// just throw the exception
Scanner in = new Scanner(System.in);

// End first change

// HERE IS CODE THAT READS A LINE AND CREATES APPROPRIATE CHARACTER

while (in.hasNextLine())
{
// read in a line and parse into various attributes
String line = in.nextLine();

// parse based on comma
String[] data = line.split(", ");
String type = data[0];
String name = data[1];
int strength = Integer.parseInt(data[2]);
String weapon = data[3];
int magic = Integer.parseInt(data[4]);
  
// use this data to build appropriate GameCharacter based on type and add to ArrayList
// YOU ADD THIS CODE

}
// print array before hits or healing
for (GameCharacter g : characters)
{
System.out.println(g);
}

System.out.println();
System.out.println("After soldier takes a hit and civilian is healed");

// print contents of arrayList
for (int i = 0; i < characters.size(); i++)
{
GameCharacter g = characters.get(i);
// if a civilian - heal them
if (g instanceof Civilian)
{
g.heal(5);
}
// else if a soldier - takes a hit
else if (g instanceof Soldier)
{
g.takeHit(5);
}

System.out.println(g);
}

}

}

----- GameCharacter.java -----

  


/**
* Class: GameCharacter
*
* This class provides a parent class for characters to be created for
* our game.
*
*/
public class GameCharacter {
   // attributes for all GameCharacters
   private String name;
   private int strength;

   /**
   * Name Setter
   *
   * @param name the name to set
   */
   public void setName(String name) {
       this.name = name;
   }

   /**
   * Strength setter method
   *
   * Makes sure strength is a legit value. Ignores otherwise
   *
   * @param strength the strength to set
   */
   public void setStrength(int strength) {
       if (strength > 0 && strength <= 18) {
           this.strength = strength;
       } else {
           this.strength = 12; // default number I made up
       }
   }

   /**
   * All arg constructor
   *
   * @param name
   * @param strength
   */
   public GameCharacter(String name, int strength) {
       super();
       this.name = name;
       setStrength(strength);
   }

   /**
   * No-arg (default) constructor
   */
   public GameCharacter() {
       this.strength = 15;
       this.name = "TBD";
   }

   /**
   * Getter method for name
   *
   * @return the name
   */
   public String getName() {
       return name;
   }

   /**
   * Getter method for strength
   *
   * @return the strength
   */
   public int getStrength() {
       return strength;
   }

   /**
   * method: takeHit() Method called when character is attacked and has lost
   * strength
   *
   * @param int amount
   */
   public void takeHit(int amount) {
       strength = strength - amount;
       if (strength < 0) {
           strength = 0;
       }
   }

   /**
   * Method: heal()
   *
   * Method called as character heals from a hit
   *
   * @param int amount
   *
   */
   public void heal(int amount) {
       strength = strength + amount;
       if (strength > 18) {
           strength = 18;
       }
   }

}

----- Characters.txt -----

Soldier, Sol, 14, Sword, 50
Wizard, Wiz, 5, Staff, 444
Civilian, Civ, 18, Words, 3
Soldier, Joe, 3, Gun, 0
Wizard, Gandalf, 10, Wand, 500
Civilian, Frodo, 16, Money, 40

I can provide the 3 child classes (Soldier, Wizard, Civilian) if needed as the code exceed the text limits.

In: Computer Science