Plot the unemployment rate in the US from 1980-2016 (Hint: Use the FRED web site). What is the average unemployment rate in this period? What is the most recent unemployment rate in the US?
Plot the percentage change (yearly) in the unemployment rate and the percentage change (yearly) in the real GDP from 1980-2016. What is the relationship between the fluctuations in the unemployment rate and the fluctuations in the real GDP?
In: Economics
You purchased a commercial building and land for $305,000 on February 1st, 2016. The land itself was valued at $82,000 when purchased. You sold the land and building for $480,000 on March 27th of 2018. (a) What is the allowable tax depreciation amount for the year 2016? (b) What is the allowable tax depreciation amount for the year 2017? (c) What is the allowable tax depreciation amount for the year 2018?
In: Economics
I am having an issue with the code. The issue I am having removing the part when it asks the tuter if he would like to do teach more. I want the program to stop when the tuter reaches 40 hours. I believe the issue I am having is coming from the driver.
Source Code:
Person .java File:
public abstract class Person {
private String name;
/**
* Constructor
* @param name
*/
public Person(String name) {
super();
this.name = name;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return "Name: " + name;
}
}
**************************************************************************************
Student .java File:
public class Student extends Person {
private int age;
private Tuter tuter;
/**
* @param name
* @param age
* @param tuter
*/
public Student(String name, int age, Tuter tuter) {
super(name);
this.age = age;
this.tuter = tuter;
}
/**
* @return the age
*/
public int getAge() {
return age;
}
/**
* @param age the age to set
*/
public void setAge(int age) {
this.age = age;
}
/**
* @return the tuter
*/
public Tuter getTuter() {
return tuter;
}
/**
* @param tuter the tuter to set
*/
public void setTuter(Tuter tuter) {
this.tuter = tuter;
}
private double getDiscountAmount() {
// Calculate discount rate
double discountRate = 0;
if(this.age < 10) {
discountRate = 20;
}
return tuter.getTotalDue() * discountRate / 100;
}
@Override
public String toString() {
return "Student Name: " + super.getName() + "\nAge: " + age;
}
public void printInvoice() {
// Print student info
System.out.println(this.toString());
// Print tuter information
System.out.println(tuter.toString());
// print the invoices details
System.out.printf("Rate per Hour: $%.2f\n",
tuter.getRatePerHour());
System.out.println("Hours of Instruction: " +
tuter.getHoursOfInstrction());
//Print the discount applied
System.out.printf("Discount applied: $%.2f\n",
this.getDiscountAmount());
System.out.printf("Total Due : $%.2f\n", (tuter.getTotalDue() -
this.getDiscountAmount()));
}
}
**************************************************************************************
Tuter.java File:
public class Tuter extends Person{
private int hoursOfInstrction;
private double ratePerHour;
private final static int MAX_HOURS = 30;
public Tuter(String name) {
super(name);
this.hoursOfInstrction = 0;
this.ratePerHour = 10.00;
}
/**
* @return the hoursOfInstrction
*/
public int getHoursOfInstrction() {
return hoursOfInstrction;
}
/**
* @param hours the hoursOfInstrction to set
*/
public boolean addHoursOfInstrction(int hours) {
if(this.hoursOfInstrction + hours <= MAX_HOURS) {
this.hoursOfInstrction+= hours;
return true;
}else
return false;
}
public double getRatePerHour() {
return ratePerHour;
}
public void setRatePerHour(double ratePerHour) {
this.ratePerHour = ratePerHour;
}
public double getTotalDue() {
return this.getRatePerHour() * this.getHoursOfInstrction();
}
@Override
public String toString() {
return "Tuter Name: " + super.getName();
}
}
**************************************************************************************
Driver .java File
public class Driver {
public static void main(String[] args) {
//Create a Tuter object
Tuter tuter = new Tuter("Sara");
// Create a Student object and assign the tuter
Student student = new Student("Mai Do", 19, tuter);
int hours;
Scanner scan = new Scanner(System.in);
String choice;
do {
System.out.println("Enter the amount of hours:");
hours = scan.nextInt();
//If tuter can teach more
if(tuter.addHoursOfInstrction(hours)) {
System.out.println("Do you want to teach more? yes/no");
choice = scan.next();
}else
break;
}while(choice.equals("yes"));
student.printInvoice();
System.out.println("Another tuter:");
}
}
**************************************************************************************
In: Computer Science
Question 2:
Translation is another name for protein synthesis. There are three steps that take place repeatedly during elongation.
a) Give the name and a short description of what happens during the first step of elongation during translation?
b) Give the name and a short description of what happens during the second step of elongation during translation?
C) Give the name and a short description of what happens during the third step of elongation during translation?
Please help! Thanks
In: Biology
1. Which chemical is formed upon the addition of HCl to methyl orange? Name (not IUPAC) and draw it.
2. Which chemical is formed upon the addition of NaOH to methyl orange? Name (not IUPAC) and draw it. Explain how you know.
3. Which chemical is formed upon the addition of HCl to phenolphthalein? Name (not IUPAC) and draw it.
4. Which chemical is formed upon the addition of NaOH to phenolphthalein? Name (not IUPAC) and draw it. Explain how you know.
In: Chemistry
Problem 8-35A (Part Level Submission)
The Daniels Tool & Die Corporation has been in existence
for a little over three years. The company’s sales have been
increasing each year as it builds a reputation. The company
manufactures dies to its customers’ specifications and therefore
uses a job-order cost system. Factory overhead is applied to the
jobs based on direct labour hours—the absorption-costing (full)
method. Overapplied or underapplied overhead is treated as an
adjustment to Cost of Goods Sold. The company’s income statements
and other data for the last two years are as follows:
Daniels used the same predetermined overhead rate in applying overhead to its production orders in both 2015 and 2016. The rate was based on the following estimates:
In 2015 and 2016, the actual direct labour hours used were 20,300 and 23,100, respectively. Raw materials put into production were $291,900 in 2015 and $370,200 in 2016. The actual fixed overhead was $42,300 for 2015 and $33,980 for 2016, and the planned direct labour rate was the direct labour achieved. For both years, all of the administrative costs were fixed. The variable portion of the selling expenses results from a 5% commission that is paid as a percentage of the sales revenue. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
*(a) For the year ended December 31, 2016, prepare a revised income statement for Daniels Tool & Die Corporation using the variable-costing method. (Round answers to 0 decimal places, e.g. 5,275.) |
In: Accounting
Question 2
In 2015, Corbus Co., a Canadian company, created a foreign subsidiary called Snazzy Ltd. by investing $2,000,000 CAD (800,000 FC) in return for all of Snazzy’s common shares. In preparing to start operations, Snazzy acquired equipment for 960,000 FC and took out a 320,000 FC loan. Snazzy is committed to repaying the loan in 3 years. In 2016, Snazzy acquired a tract of land for 320,000 FC. All dividends were paid on December 31 of the years in which they were declared.
Snazzy’s financial statements for its first 2 years of operations are presented below.
Snazzy Ltd.
Statement of Financial Position
As of December 31
(in FC)
2016 2015
Assets:
Current assets:
Cash $ 48.000 $ 256,000
Accounts receivable 64,000 48,000
112,000 304,000
Noncurrent assets:
Land 320,000 -
Equipment 960,000 960,000
Accumulated amortization (192,000) (96,000)
1,088,000 864,000
Total
assets
$
1,200,000
$ 1,168,000
Liabilities and shareholder’s equity:
Current liabilities:
Accounts payable 16,000 32,000
Noncurrent liabilities:
Loan payable 320,000 320,000
336,000 352,000
Shareholder’s equity:
Share capital 800,000 800,000
Retained earnings _64,000 _16,000
864,000 816,000
Total liabilities and shareholder’s equity $ 1,200,000 $ 1,168,000
Snazzy Ltd.
Statement of Comprehensive Income
For the year ended December 31
(in FC)
2016 2015
Revenue $ 480,000 $ 352,000
Expenses:
Amortization 96,000 96,000
Interest 64,000 64,000
Other expenses 192,000 128,000
352,000 288,000
Net and comprehensive income $ 128,000 $ 64,000
Snazzy Ltd.
Statement of Changes in Equity – Retained Earnings Section
For the year ended December 31
(in FC)
2016 2015
Retained earnings, beginning of year $ 16,000 $ -
Net income 128,000 64,000
Dividends declared (80,000) (48,000)
Retained earnings, end of year $ 64,000 $ 16,000
Selected exchange rates
when the equipment was purchased 1FC = $2.30 CAD
when the loan was negotiated 1FC = $2.40 CAD
when the land was purchased 1FC = $1.90 CAD
average during 2015 1FC = $2.20 CAD
December 31, 2015 1FC = $2.00 CAD
Average during 2016 1FC = $1.70 CAD
December 31, 2016 1FC = $1.50 CAD
Required:
Assume that Snazzy’s functional currency is the Canadian dollar.
Translate Snazzy’s 2015 financial statements using the appropriate method.
Independently calculate the translation gain/loss.
Repeat (i) and (ii) for 2016.
Assume that Snazzy’s functional currency is the FC.
Translate Snazzy’s 2015 financial statements using the appropriate method.
Independently calculate the translation gain/loss.
Repeat (i) and (ii) for 2016.
In: Accounting
The Daniels Tool & Die Corporation has been in existence for
a little over three years. The company’s sales have been increasing
each year as it builds a reputation. The company manufactures dies
to its customers’ specifications and therefore uses a job-order
cost system. Factory overhead is applied to the jobs based on
direct labour hours—the absorption-costing (full) method.
Overapplied or underapplied overhead is treated as an adjustment to
Cost of Goods Sold. The company’s income statements and other data
for the last two years are as follows:
| DANIELS TOOL & DIE CORPORATION 2015–2016 Comparative Income Statements |
||||||
| 2015 | 2016 | |||||
| Sales | $833,900 | $1,015,100 | ||||
| Cost of goods sold | ||||||
| Finished goods, January 1 | 24,000 | 17,800 | ||||
| Cost of goods manufactured | 544,600 | 654,400 | ||||
| Total available | 568,600 | 672,200 | ||||
| Finished goods, December 31 | 17,800 | 13,300 | ||||
| Cost of goods sold before overhead adjustment | 550,800 | 658,900 | ||||
| Underapplied factory overhead | 35,800 | 14,100 | ||||
| Cost of goods sold | 586,600 | 673,000 | ||||
| Gross profit | 247,300 | 342,100 | ||||
| Selling expenses | 81,900 | 94,500 | ||||
| Administrative expenses | 69,000 | 74,400 | ||||
| Total operating expenses | 150,900 | 168,900 | ||||
| Operating income | $96,400 | $173,200 | ||||
| Daniels Tool & Die Corporation Inventory Balances | |||||||||
| January 1, 2015 | December 31, 2015 | December 31, 2016 | |||||||
| Raw material | $21,700 | $29,900 | $10,400 | ||||||
| Work in process | $40,500 | $47,700 | $63,400 | ||||||
| Direct labour hours (used in WIP) | 1,350 | 1,630 | 2,280 | ||||||
| Finished goods | $24,000 | $17,800 | $13,300 | ||||||
| Direct labour hours (used in FG) | 1,470 | 1,010 | 840 | ||||||
Daniels used the same predetermined overhead rate in applying
overhead to its production orders in both 2015 and 2016. The rate
was based on the following estimates:
| Fixed factory overhead | $24,790 | |
| Variable factory overhead | $153,698 | |
| Direct labour hours (used in WIP) | 24,790 | |
| Direct labour costs (used in FG) | $148,740 |
In 2015 and 2016, the actual direct labour hours used were 20,200
and 23,800, respectively. Raw materials put into production were
$291,500 in 2015 and $370,600 in 2016. The actual fixed overhead
was $42,300 for 2015 and $23,240 for 2016, and the planned direct
labour rate was the direct labour achieved.
For both years, all of the administrative costs were fixed. The
variable portion of the selling expenses results from a 5%
commission that is paid as a percentage of the sales revenue.
|
*(a) For the year ended December 31, 2016, prepare a revised income statement for Daniels Tool & Die Corporation using the variable-costing method. (Round answers to 0 decimal places, e.g. 5,275.) |
In: Accounting
Comprehensive: EPS
Frost Company has accumulated the following information relevant to its 2016 earnings per share.
Required:
In: Accounting
Write an application that allows a user to enter the names and birthdates of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value ZZZ for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or an error message if the name has not been previously entered. The loop continues until the user enters ZZZ for a name. Save the application as BirthdayReminder.java.
My issue in this is the loop portion. I am not sure if I have done it properly. I also need help trying to comment this code so I can explain it better. Could someone help analyze my code so that I can properly do this JAVA assignment? Please include comments as well inside the code.
Here is what I have so far:
import java.util.*;
public class BirthdayReminder{
public static void main(String[] args)
{
final int NUM_NAMES = 10;
String sentinal = "ZZZ";
int count = 0;
String name = null;
String birthdate = null;
String[] names = new String[NUM_NAMES];
String[] birthdates = new String[NUM_NAMES];
Scanner input = new Scanner(System.in);
System.out.println("Enter a name or " + sentinal + " to quit > ");
name = input.nextLine();
while(name.compareTo(sentinal)!=0 && count < NUM_NAMES)
{
System.out.println("Enter birthdate (mm/dd) > ");
birthdate = input.nextLine();
names[count] = name.trim();
birthdates[count] = birthdate.trim();
System.out.println("Enter a name or " + sentinal + " to quit > ");
name = input.nextLine();
++ count;
}
System.out.println("\nCount of names is " + count);
System.out.println("\nNames are:" + count);
for(int x = 0; x < count; ++x)
System.out.println(names[x]) ;
boolean repeat = true;
boolean found;
while(repeat)
{
found=false;
System.out.println("\nEnter a name or " + sentinal + " to quit > ");
name = input.nextLine().trim();
if(name.compareTo(sentinal)==0)
repeat = false;
else
{
for(int x = 0; x < count; ++x)
{
if(names[x].compareTo(name)==0)
{
found =true;
birthdate = birthdates[x];
break;
}
}
if(found)
System.out.println("Birthdate of " + name + " is " + birthdate);
else
System.out.println("Birthdate of " + name + " is not found");
}
}
}
}
In: Computer Science