Comparing Three Depreciation Methods Newbirth Coatings Company purchased waterproofing equipment on January 2, 2013, for $532,000. The equipment was expected to have a useful life of four years, or 8,000 operating hours, and a residual value of $44,000. The equipment was used for 3,000 hours during 2013, 2,500 hours in 2014, 1,400 hours in 2015, and 1,100 hours in 2016. Required: 1. Determine the amount of depreciation expense for the years ended December 31, 2013, 2014, 2015, and 2016, by (a) the straight-line method, (b) the units-of-output method, and (c) the double-declining-balance method. Also determine the total depreciation expense for the four years by each method. Note: FOR DECLINING BALANCE ONLY, round the multiplier to four decimal places. Then round the answer for each year to the nearest whole dollar. Depreciation Expense Year Straight-Line Method Units-of-Output Method Double-Declining-Balance Method 2013 $ $ $ 2014 $ $ $ 2015 $ $ $ 2016 $ $ $ Total $ $ $ 2. What method yields the highest depreciation expense for 2015? 3. What method yields the most depreciation over the four-year life of the equipment?
In: Accounting
Topper company reported the following pre-tax financial income (loss for the years 2013-2017)
2013 70,000 30% 21,000
2014 45,000 30% 13,500
2015 -260,000 30% 0
2016 90 35% 0
2017 215,000 35% 15,750
Topper company reported the following pre-tax financial income (loss for the years 2013-2017) 2013 70,000 2014 45,000 2015 -260,000 2016 90 2017 215,000 Pretax financial income (loss) and taxable income (loss) were the same for all years involved. The enacted tax rate was 30% for 2013 through 2015, and 35% for 2016 and thereafter. Assume the carryback provision is used first for net operating losses. Instructions: A. Prepare the journal entries for the years 2013 through 2017 to record income tax expense, income tax payable (refundable), and the tax effects of the loss carryback and loss carryforward, assuming that based on the weight of available evidence, it is more likely than not that 60 percent of the benefits of the loss carryforward will not be realized. B. Prepare the income tax section of the 2015 income statement beginning with the line “income (loss) before income taxes”.
In: Accounting
During 2016 (its first year of operations) and 2017, Batali
Foods used the FIFO inventory costing method for both financial
reporting and tax purposes. At the beginning of 2018, Batali
decided to change to the average method for both financial
reporting and tax purposes.
Income components before income tax for 2018, 2017, and 2016 were
as follows ($ in millions):
| 2018 | 2017 | 2016 | |||||||
| Revenues | $ | 570 | $ | 540 | $ | 530 | |||
| Cost of goods sold (FIFO) | (61 | ) | (55 | ) | (53 | ) | |||
| Cost of goods sold (average) | (92 | ) | (86 | ) | (82 | ) | |||
| Operating expenses | (314 | ) | (310 | ) | (302 | ) | |||
Dividends of $34 million were paid each year. Batali’s fiscal year
ends December 31.
Required:
1. Prepare the journal entry at the beginning of
2018 to record the change in accounting principle. (Ignore income
taxes.)
2. Prepare the 2018–2017 comparative income
statements.
3. & 4. Determine the balance in retained
earnings at January 2017 as Batali reported using FIFO method and
determine the adjustment of balance in retained earnings as on
January 2017 using average method instead of FIFO method.
In: Accounting
This is a Java program that I am having trouble making.
1- Search for the max value in the linked list.
2- Search for the min value in the linked list.
3- Swap the node that has the min data value with the max one. (Note: Move the nodes to the new positions).
4- Add the min value and the max value and insert the new node
with the calculated value before the last node.
I already made a generic program that creates the linked list and
has the ability to add and remove from the list. I am not sure how
to create these generic methods though.
Below is my attempt to make the min finder, but it does not work and gives me an error on the bolded parts. It says "bad operand types for binary operator >".
LList.java below:
package llist;
/**
*
* @author RH
* @param <E>
*/
public class LList<E> {
Node head, tail;
int size;
public LList() {
size = 0;
head = tail = null;
}
public void addFirst(E element) {
Node newNode = new Node(element);
newNode.next = head;
head = newNode;
size++;
if (tail == null) {
tail = head;
}
}
public void addLast(E element) {
Node newNode = new Node(element);
if (tail == null) {
head = tail = newNode;
} else {
tail.next = newNode;
tail = tail.next;
}
size++;
}
public void insert(int index, E element) {
if (index == 0) {
addFirst(element);
} else if (index >= size) {
addLast(element);
} else {
Node current = head;
for (int i = 1; i < index; i++) {
current = current.next;
}
Node holder = current.next;
current.next = new Node(element);
current.next.next = holder;
size++;
}
}
public void remove(int e) {
if (e < 0 || e >= size) {
System.out.println("Out of bounds");
} else if (e == 0) {
System.out.println("Deleted " + head.element);
head = head.next;
size--;
} else if (e == size - 1) {
Node current = head;
Node holder;
for (int i = 1; i < size; i++) {
current = current.next;
}
System.out.println("Deleted " + current.element);
tail.next = current.next;
tail = tail.next;
size--;
} else {
Node<E> previous = head;
for (int i = 1; i < e; i++) {
previous = previous.next;
}
System.out.println("Deleted " + previous.next.element);
Node<E> current = previous.next;
previous.next = current.next;
size--;
}
}
public int largestElement() {
int max = 49;
while (head != null) {
if (max < head.next) {
max = head.next;
}
head = head.next;
}
return max;
}
public int smallestElement() {
int min = 1001;
while (head != null) {
if (min > head.next) {
min = head.next;
}
head = head.next;
}
return min;
}
public void print() {
Node current = head;
for (int i = 0; i < size; i++) {
System.out.println(current.element);
current = current.next;
}
}
}
Node.java below:
package llist;
/**
*
* @author RH
* @param <E>
*/
public class Node<E> {
E element;
Node next;
public Node(E data) {
this.element = data;
}
}
Driver.java below:
package llist;
import java.util.concurrent.ThreadLocalRandom;
/**
*
* @author RH
*/
public class Driver {
public static void main(String[] args) {
LList<Integer> listy = new LList();
// adds 10 random numbers to the linkedlist
for (int i = 0; i < 10; i++) {
listy.addFirst(ThreadLocalRandom.current().nextInt(50, 1000 +
1));
}
System.out.println("");
listy.print();
System.out.println("");
int max = listy.largestElement();
int min = listy.smallestElement();
System.out.println(max);
System.out.println(min);
//listy.remove(1);
//System.out.println("");
//listy.print();
}
}
I am not sure how to get these generic methods made.
In: Computer Science
C++ Bank Account Error Fix, full code. I am using Dev-C++ to Compile and Execute.
The project is below, I have supplied the code and I'm getting an error in SavingsAccount.h file.
17 5 C:\Users\adam.brunell\Documents\Classes\C++\Week4\SavingsAccount.h [Error] 'SavingsAccount::SavingsAccount(std::string, double, double)' is protected
A.Assume
i.SavingsAccount: Assume an Interest Rate of 0.03
ii.HighInterestSavings: Assume an Interest Rate of 0.05, Minimum Balance = $2500
iii.NoServiceChargeChecking: Assume an Interest Rate = 0.02, Minimum of Balance = $1000
iv.ServiceChargeChecking – Assume account service charge = $10, Maximum number of checks = 5, Service Charge if customer exceeds the maximum number of checks = $5.
v.NoServicechargeChecking: Assume an interest rate = 0.02, Minimum Balance = $1000
vi.HighInterestChecking: Assume an interest rate = 0.05, Minimum Balance = $5000
vii.CertificateOfDepsit: Assume an interest rate = 0.05, Initial Number of Maturity Months = 6
B.Capitalize the first letter of the derived class names.
C.Use the following driver to validate your program:
#include
#include
#include
#include "bankAccount.h"
#include "SavingsAccount.h"
#include "HighInterestSavings.h"
#include "NoServiceChargeChecking.h"
#include "ServiceChargeChecking.h"
#include "HighInterestChecking.h"
#include "CertificateOfDeposit.h"
#include "checkingAccount.h"
using namespace std;
int main()
{
vector accountsList;
//SavingsAccount( Name, Account number, Balance ) - Assume an interest rate = 0.03
accountsList.push_back(new SavingsAccount("Bill", 10200, 2500));
//HighInterestSavings(Name, Account Number, Balance) -- Assume an interest rate = 0.05, Minimum balance = $2500
accountsList.push_back(new HighInterestSavings("Susan", 10210, 2000));
//NoServiceChargeChecking(Name, Account Number, Balance) -- Assume an interest rate = 0.02, Minimum balance = $1000
accountsList.push_back(new NoServiceChargeChecking("John", 20100,
3500));
//ServiceChargeChecking(Name, Account Number, Balance) -- Assume account service charge = $10, Maximum number of checks = 5, Service Charee Excess Number of Checks = $5
accountsList.push_back(new ServiceChargeChecking("Ravi", 30100, 1800));
//HighIntererestChecking(Name, Account Number, Balance) - Assume an inerest rate = 0.05, Minimum balance = $5000
accountsList.push_back(new HighInterestChecking("Sheila", 20200, 6000));
//Certificate(name, Account Number, Balance, Interest Rate, Number of Months) - Assume an initial interest rate = 0.05, Initial Number of Maturity Months = 6
accountsList.push_back(new CertificateOfDeposit("Hamid", 51001, 18000,
0.075, 18));
cout << "January:\n-------------" << endl;
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->createMonthlyStatement();
accountsList[i]->print();
cout << endl;
}
cout << "\nFebruary:\n-------------" << endl;
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->createMonthlyStatement();
accountsList[i]->print();
cout << endl;
}
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->withdraw(500);
}
cout << "\nMarch:\n-------------" << endl;
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->createMonthlyStatement();
accountsList[i]->print();
cout << endl;
}
System(“pause”);
return 0;
}
The Expected Output is:
January:
-------------
Savings account: Bill ACCT# 10200 Balance: $2575.00
High Interest Savings: Susan ACCT# 10210 Balance: $2100.00
No Service Charge Check. John ACCT# 20100 Balance: $3500.00
Service Charge Checking: Ravi ACCT# 30100 Balance: $1790.00
Higher Interest Checking: Sheila ACCT# 20200 Balance: $6300.00
Certificate of Deposit: Hamid ACCT# 51001 Balance: $19350.00
February:
-------------
Savings account: Bill ACCT# 10200 Balance: $2652.25
High Interest Savings: Susan ACCT# 10210 Balance: $2205.00
No Service Charge Check. John ACCT# 20100 Balance: $3500.00
Service Charge Checking: Ravi ACCT# 30100 Balance: $1780.00
Higher Interest Checking: Sheila ACCT# 20200 Balance: $6615.00
Certificate of Deposit: Hamid ACCT# 51001 Balance: $20801.25
March:
-------------
Savings account: Bill ACCT# 10200 Balance: $2216.82
High Interest Savings: Susan ACCT# 10210 Balance: $2315.25
No Service Charge Check. John ACCT# 20100 Balance: $3000.00
Service Charge Checking: Ravi ACCT# 30100 Balance: $1270.00
Higher Interest Checking: Sheila ACCT# 20200 Balance: $6420.75
Certificate of Deposit: Hamid ACCT# 51001 Balance: $22361.34
Press any key to continue . . .
//testdriver.cpp
#include
#include
#include
#include "bankAccount.h"
#include "SavingsAccount.h"
#include "HighInterestSavings.h"
#include "NoServiceChargeChecking.h"
#include "ServiceChargeChecking.h"
#include "HighInterestChecking.h"
#include "CertificateOfDeposit.h"
#include "checkingAccount.h"
using namespace std;
int main()
{
vector accountsList;
//SavingsAccount( Name, Account number, Balance ) -
Assume an interest rate = 0.03
accountsList.push_back(new SavingsAccount("Bill", 10200,
2500));
//HighInterestSavings(Name, Account Number,
Balance) -- Assume an interest rate = 0.05, Minimum balance =
$2500
accountsList.push_back(new HighInterestSavings("Susan", 10210,
2000));
//NoServiceChargeChecking(Name, Account Number,
Balance) -- Assume an interest rate = 0.02, Minimum balance =
$1000
accountsList.push_back(new NoServiceChargeChecking("John",
20100,
3500));
//ServiceChargeChecking(Name, Account Number,
Balance) -- Assume account service charge = $10, Maximum number of
checks = 5, Service Charee Excess Number of Checks = $5
accountsList.push_back(new ServiceChargeChecking("Ravi", 30100,
1800));
//HighIntererestChecking(Name, Account Number,
Balance) - Assume an inerest rate = 0.05, Minimum balance =
$5000
accountsList.push_back(new HighInterestChecking("Sheila", 20200,
6000));
//Certificate(name, Account Number, Balance,
Interest Rate, Number of Months) - Assume an initial interest rate
= 0.05, Initial Number of Maturity Months = 6
accountsList.push_back(new CertificateOfDeposit("Hamid", 51001,
18000,
0.075, 18));
cout << "January:\n-------------" << endl;
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->createMonthlyStatement();
accountsList[i]->print();
cout << endl;
}
cout << "\nFebruary:\n-------------" << endl;
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->createMonthlyStatement();
accountsList[i]->print();
cout << endl;
}
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->withdraw(500);
}
cout << "\nMarch:\n-------------" << endl;
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->createMonthlyStatement();
accountsList[i]->print();
cout << endl;
}
System("pause");
return 0;
}
bankAccount.h
#ifndef BANKACCOUNT_H
#define BANKACCOUNT_H
#include
using namespace std;
class bankAccount {
public:
bankAccount(string name, double initialBalance);
string getName();
unsigned int getAccountNumber();
double getBalance();
double getInterestRate();
string getStatementString();
void deposit(double amount);
void deposit(double amount, string statement);
void withdraw(double amount);
void withdraw(double amount, string statement);
virtual void printStatement() = 0;
protected:
void addStatementLine(string statement, double amount);
private:
string name;
unsigned int accountNumber;
double balance;
static unsigned int nextAccountNumber;
string statementString;
};
#endif /* BANKACCOUNT_H */
//bankAccount.cpp
#include "bankAccount.h"
#include
#include
#include
using namespace std;
unsigned int BankAccount::nextAccountNumber = 1;
BankAccount::BankAccount(string name, double initialBalance)
{
stringstream output;
this->name = name;
balance = initialBalance;
accountNumber = nextAccountNumber++;
output << setw(60) << left << "Transaction"
<< setw(10) << "Amount" << " " << "Balance"
<< endl;
statementString = output.str();
addStatementLine("Initial Deposit", initialBalance);
}
string BankAccount::getName()
{
return name;
}
unsigned int BankAccount::getAccountNumber()
{
return accountNumber;
}
double BankAccount::getBalance()
{
return balance;
}
void BankAccount::addStatementLine(string statement, double
amount)
{
stringstream output;
output << setw(60) << left << statement <<
setw(10) << amount << " " << getBalance()
<< endl;
//.append(statement);
statementString.append(output.str());
}
void BankAccount::deposit(double amount)
{
deposit(amount, "Deposit");
}
void BankAccount::deposit(double amount, string statement)
{
balance += amount;
addStatementLine(statement, amount);
}
void BankAccount::withdraw(double amount)
{
withdraw(amount, "Withdrawal");
}
void BankAccount::withdraw(double amount, string
statement)
{
if (balance >= amount)
{
balance -= amount;
addStatementLine(statement, amount);
}
else
{
addStatementLine(statement.append(" Overdraft"), amount);
}
}
string BankAccount::getStatementString()
{
return statementString;
}
//CertificateOfDeposit.h
#ifndef CERTIFICATEOFDEPOSIT_H
#define CERTIFICATEOFDEPOSIT_H
#include "bankAccount.h"
#include
using namespace std;
class CertificateOfDeposit : public bankAccount{
public:
CertificateOfDeposit(string name, double initialBalance, int
maturityMonths);
CertificateOfDeposit(string name, double initialBalance);
int getMaturityMonths();
double getInterestRate();
int getCurrentCDMonth();
int getWithdrawalPenaltyMonths();
void withdraw();
void incrementMonth();
void printStatement();
private:
int maturityMonths;
double interestRate;
int currentCDMonth;
int withdrawalPenaltyMonths;
void withdraw(double amount);
void withdraw(double amount, string statement);
void deposit(double amount);
};
#endif /* CERTIFICATEOFDEPOSIT_H */
//CertificateOfDeposit.cpp
#include "CertificateOfDeposit.h"
CertificateOfDeposit::CertificateOfDeposit(string name, double
initialBalance, int maturityMonths) : bankAccount(name,
initialBalance)
{
this->maturityMonths = maturityMonths;
interestRate = 0.05;
currentCDMonth = 0;
withdrawalPenaltyMonths = 3;
}
CertificateOfDeposit::CertificateOfDeposit(string name, double
initialBalance) : bankAccount(name, initialBalance)
{
maturityMonths = 6;
interestRate = 0.05;
currentCDMonth = 0;
withdrawalPenaltyMonths = 3;
}
int CertificateOfDeposit::getCurrentCDMonth()
{
return currentCDMonth;
}
double CertificateOfDeposit::getInterestRate()
{
return interestRate;
}
int CertificateOfDeposit::getWithdrawalPenaltyMonths()
{
return withdrawalPenaltyMonths;
}
int CertificateOfDeposit::getMaturityMonths()
{
return maturityMonths;
}
void CertificateOfDeposit::withdraw()
{
if (getCurrentCDMonth() < getMaturityMonths())
bankAccount::withdraw(getBalance()*getInterestRate()*getWithdrawalPenaltyMonths(),
"Early Withdrawal Penalty");
bankAccount::withdraw(getBalance(), "Close Account");
}
void CertificateOfDeposit::incrementMonth()
{
bankAccount::deposit(getBalance()*getInterestRate(), "Monthly
Interest");
if (getCurrentCDMonth() < getMaturityMonths())
{
currentCDMonth++;
}
else
withdraw();
}
void CertificateOfDeposit::printStatement()
{
cout << "Certificate of Deposit Statement" <<
endl;
cout << "Name: " << getName() << endl;
cout << "Account Number: " << getAccountNumber()
<< endl;
cout << "Interest Rate: " << getInterestRate() * 100
<< "%" << endl;
cout << "Maturity Month: " << getMaturityMonths()
<< ", Current Month: " << getCurrentCDMonth() <<
endl;
cout << "Early Withdrawal Penalty: " <<
getWithdrawalPenaltyMonths() << " (months)" << endl
<< endl;
cout << getStatementString() << endl;
cout << "Final Balance: " << getBalance() << endl
<< endl;
}
//HighInterestChecking.h
#ifndef HIGHINTERESTCHECKING_H
#define HIGHINTERESTCHECKING_H
#include "NoServiceChargeChecking.h"
#include
using namespace std;
class HighInterestChecking : public NoServiceChargeChecking
{
public:
HighInterestChecking(string name, double initialBalance);
void printStatement();
private:
};
#endif /* HIGHINTERESTCHECKING_H */
//HighInterestChecking.cpp
#include "HighInterestChecking.h"
HighInterestChecking::HighInterestChecking(string name, double
initialBalance) : NoServiceChargeChecking(name, initialBalance,
5000, 0.05)
{
}
void HighInterestChecking::printStatement()
{
bankAccount::deposit(getBalance() * getInterestRate(),
"Interest");
cout << "High Interest Checking Statement" <<
endl;
cout << "Name: " << getName() << endl;
cout << "Account Number: " << getAccountNumber()
<< endl;
cout << "Interest Rate: " << getInterestRate() * 100
<< "%" << endl;
cout << "Minimum Balance: " << getMinimumBalance()
<< endl << endl;
cout << getStatementString() << endl;
cout << "Final Balance: " << getBalance() << endl
<< endl;
}
//HighInterestSavings.h
#ifndef HIGHINTERESTSAVINGS_H
#define HIGHINTERESTSAVINGS_H
#include "SavingsAccount.h"
#include
using namespace std;
class HighInterestSavings : public SavingsAccount{
public:
HighInterestSavings(string name, double initialBalance);
int getMinimumBalance();
void printStatement();
void withdraw(double amount, string statement);
void withdraw(double amount);
private:
int minimumBalance;
};
#endif /* HIGHINTERESTSAVINGS_H */
//HighInterestSavings.cpp
#include "HighInterestSavings.h"
HighInterestSavings::HighInterestSavings(string name, double
initialBalance) : SavingsAccount(name, initialBalance, 0.05)
{
minimumBalance = 2500;
}
int HighInterestSavings::getMinimumBalance()
{
return minimumBalance;
}
void HighInterestSavings::withdraw(double amount, string
statement)
{
if (amount + getMinimumBalance() <= getBalance())
{
bankAccount::withdraw(amount, statement);
}
else
{
addStatementLine(statement.append(" Overdraft. Below Minimum
Balance."), amount);
}
}
void HighInterestSavings::withdraw(double amount)
{
withdraw(amount, "Withdrawal");
}
void HighInterestSavings::printStatement()
{
bankAccount::deposit(getBalance() * getInterestRate(),
"Interest");
cout << "High Interest Savings Account Statement" <<
endl;
cout << "Name: " << getName() << endl;
cout << "Account Number: " << getAccountNumber()
<< endl;
cout << "Minimum Balance: " << getMinimumBalance()
<< endl;
cout << "Interest Rate: " << getInterestRate() * 100
<< "%" << endl << endl;
cout << getStatementString() << endl;
cout << "Final Balance: " << getBalance() << endl
<< endl;
}
//NoServiceChargeChecking.h
#ifndef NOSERVICECHARGECHECKING_H
#define NOSERVICECHARGECHECKING_H
#include "checkingAccount.h"
#include
using namespace std;
class NoServiceChargeChecking : public CheckingAccount {
public:
NoServiceChargeChecking(string name, double initialBalance);
void writeCheck(double amount, int checkNumber);
void printStatement();
void withdraw(double amount, string statement);
void withdraw(double amount);
double getInterestRate();
int getMinimumBalance();
protected:
NoServiceChargeChecking(string name, double initialBalance, int
minBalance, double interestRate);
private:
double interestRate;
int minimumBalance;
};
#endif /* NOSERVICECHARGECHECKING_H */
//NoServiceChargeChecking.cpp
#include "NoServiceChargeChecking.h"
#include
#include
NoServiceChargeChecking::NoServiceChargeChecking(string name,
double initialBalance) : checkingAccount(name,
initialBalance)
{
minimumBalance = 1000;
this->interestRate = 0.02;
}
NoServiceChargeChecking::NoServiceChargeChecking(string name,
double initialBalance, int minBalance, double interestRate) :
checkingAccount(name, initialBalance)
{
minimumBalance = minBalance;
this->interestRate = interestRate;
}
void NoServiceChargeChecking::writeCheck(double amount, int
checkNumber)
{
stringstream output;
output << "Check #" << checkNumber;
withdraw(amount, output.str());
}
void NoServiceChargeChecking::withdraw(double amount, string
statement)
{
if (amount + getMinimumBalance() <= getBalance())
{
bankAccount::withdraw(amount, statement);
}
else
{
addStatementLine(statement.append(" Overdraft. Below Minimum
Balance."), amount);
}
}
void NoServiceChargeChecking::withdraw(double amount)
{
withdraw(amount, "Withdrawal");
}
void NoServiceChargeChecking::printStatement()
{
bankAccount::deposit(getBalance() * getInterestRate(),
"Interest");
cout << "No Service Charge Checking Statement" <<
endl;
cout << "Name: " << getName() << endl;
cout << "Account Number: " << getAccountNumber()
<< endl;
cout << "Interest Rate: " << getInterestRate() * 100
<< "%" << endl;
cout << "Minimum Balance: " << getMinimumBalance()
<< endl << endl;
cout << getStatementString() << endl;
cout << "Final Balance: " << getBalance() << endl
<< endl;
}
int NoServiceChargeChecking::getMinimumBalance()
{
return minimumBalance;
}
double NoServiceChargeChecking::getInterestRate()
{
return interestRate;
}
//checkingAccount.h
#ifndef CHECKINGACCOUNT_H
#define CHECKINGACCOUNT_H
#include "bankAccount.h"
class CheckingAccount : public bankAccount {
public:
CheckingAccount(string name, double initialBalance);
virtual void writeCheck(double amount, int checkNumber) = 0;
private:
};
#endif /* CHECKINGACCOUNT_H */
//checkingAccount.cpp
#include "checkingAccount.h"
CheckingAccount::CheckingAccount(string name, double
initialBalance) : bankAccount(name, initialBalance)
{
}
//SavingsAccount.h
#ifndef SAVINGSACCOUNT_H
#define SAVINGSACCOUNT_H
#include "bankAccount.h"
#include
#include
using namespace std;
class SavingsAccount : public bankAccount
{
public:
SavingsAccount(string name, double initialBalance);
double getInterestRate();
void printStatement();
protected:
SavingsAccount(string name, double initialBalance, double
interestRate);
private:
double interestRate;
};
#endif /* SAVINGSACCOUNT_H */
//SavingsAccount.cpp
#include "SavingsAccount.h"
SavingsAccount::SavingsAccount(string name, double
initialBalance) : bankAccount(name, initialBalance)
{
interestRate = 0.03;
}
SavingsAccount::SavingsAccount(string name, double
initialBalance, double interestRate) : bankAccount(name,
initialBalance)
{
this->interestRate = interestRate;
}
double SavingsAccount::getInterestRate()
{
return interestRate;
}
void SavingsAccount::printStatement()
{
bankAccount::deposit(getBalance() * getInterestRate(),
"Interest");
cout << "Savings Account Statement" << endl;
cout << "Name: " << getName() << endl;
cout << "Account Number: " << getAccountNumber()
<< endl;
cout << "Interest Rate: " << getInterestRate() * 100
<< "%" << endl << endl;
cout << getStatementString() << endl;
cout << "Final Balance: " << getBalance() << endl
<< endl;
}
//ServiceChargeChecking.h
#ifndef SERVICECHARGECHECKING_H
#define SERVICECHARGECHECKING_H
#include "checkingAccount.h"
#include
using namespace std;
class ServiceChargeChecking : public CheckingAccount {
public:
ServiceChargeChecking(string name, double initialBalance);
void writeCheck(double amount, int checkNumber);
void printStatement();
private:
int checksWritten;
static const int CHECK_LIMIT = 5;
static const int SERVICE_CHARGE = 10;
};
#endif /* SERVICECHARGECHECKING_H */
//ServiceChargeChecking.cpp
#include "ServiceChargeChecking.h"
#include
#include
using namespace std;
ServiceChargeChecking::ServiceChargeChecking(string name, double
initialBalance) : CheckingAccount(name, initialBalance)
{
bankAccount::withdraw(SERVICE_CHARGE, "Service Charge");
checksWritten = 0;
}
void ServiceChargeChecking::writeCheck(double amount, int
checkNumber)
{
stringstream output;
if (++checksWritten <= CHECK_LIMIT)
{
output << "Check #" << checkNumber;
bankAccount::withdraw(amount, output.str());
}
else
{
output << "Maximum Limit of Checks Reached. Check # "
<< checkNumber << " bounced";
addStatementLine(output.str(), amount);
}
}
void ServiceChargeChecking::printStatement()
{
cout << "Service Charge Checking Statement" <<
endl;
cout << "Name: " << getName() << endl;
cout << "Account Number: " << getAccountNumber()
<< endl << endl;
cout << getStatementString() << endl;
cout << "Final Balance: " << getBalance() << endl
<< endl;
}
Receiving Error in SavingsAccount.h
17 5 C:\Users\adam.brunell\Documents\Classes\C++\Week4\SavingsAccount.h [Error] 'SavingsAccount::SavingsAccount(std::string, double, double)' is protected
In: Computer Science
The current sections of Ayayai Corp.’s balance sheets at
December 31, 2016 and 2017, are presented here. Ayayai Corp.’s net
income for 2017 was $168,453. Depreciation expense was
$29,727.
|
2017 |
2016 |
|||
|---|---|---|---|---|
|
Current assets |
||||
|
Cash |
$115,605 |
$ 108,999 |
||
|
Accounts receivable |
88,080 |
97,989 |
||
|
Inventory |
184,968 |
189,372 |
||
|
Prepaid expenses |
29,727 |
24,222 |
||
|
Total current assets |
$418,380 |
$420,582 |
||
|
Current liabilities |
||||
|
Accrued expenses payable |
$ 16,515 |
$ 5,505 |
||
|
Accounts payable |
93,585 |
101,292 |
||
|
Total current liabilities |
$110,100 |
$ 106,797 |
Prepare the net cash provided (used) by operating activities
section of the company’s statement of cash flows for the year ended
December 31, 2017, using the indirect method. (Show
amounts that decrease cash flow with either a - sign e.g. -15,000
or in parenthesis e.g. (15,000).)
|
Ayayai Corp. |
||
|---|---|---|
|
select an opening section name Cash at Beginning of PeriodCash at End of PeriodCash Flows from Financing ActivitiesCash Flows from Investing ActivitiesCash Flows from Operating ActivitiesNet Cash Provided by Financing ActivitiesNet Cash Provided by Investing ActivitiesNet Cash Provided by Operating ActivitiesNet Cash used by Financing ActivitiesNet Cash used by Investing ActivitiesNet Cash used by Operating ActivitiesNet Decrease in CashNet Increase in Cash |
||
|
select an item Decrease in Accounts PayableDecrease in Accounts ReceivableDecrease in Accrued Expenses PayableDecrease in InventoryDecrease in Prepaid ExpensesDepreciation ExpenseIncrease in Accounts PayableIncrease in Accounts ReceivableIncrease in Accrued Expenses PayableIncrease in InventoryIncrease in Prepaid ExpensesNet Income |
$enter a dollar amount |
|
|
Adjustments to reconcile net income to |
||
|
select an opening subsection name Cash at Beginning of PeriodCash at End of PeriodCash Flows from Financing ActivitiesCash Flows from Investing ActivitiesCash Flows from Operating ActivitiesNet Cash Provided by Financing ActivitiesNet Cash Provided by Investing ActivitiesNet Cash Provided by Operating ActivitiesNet Cash used by Financing ActivitiesNet Cash used by Investing ActivitiesNet Cash used by Operating ActivitiesNet Decrease in CashNet Increase in Cash |
||
|
select an item Decrease in Accounts PayableDecrease in Accounts ReceivableDecrease in Accrued Expenses PayableDecrease in InventoryDecrease in Prepaid ExpensesDepreciation ExpenseIncrease in Accounts PayableIncrease in Accounts ReceivableIncrease in Accrued Expenses PayableIncrease in InventoryIncrease in Prepaid ExpensesNet Income |
$enter a dollar amount |
|
|
select an item Decrease in Accounts PayableDecrease in Accounts ReceivableDecrease in Accrued Expenses PayableDecrease in InventoryDecrease in Prepaid ExpensesDepreciation ExpenseIncrease in Accounts PayableIncrease in Accounts ReceivableIncrease in Accrued Expenses PayableIncrease in InventoryIncrease in Prepaid ExpensesNet Income |
enter a dollar amount |
|
|
select an item Decrease in Accounts PayableDecrease in Accounts ReceivableDecrease in Accrued Expenses PayableDecrease in InventoryDecrease in Prepaid ExpensesDepreciation ExpenseIncrease in Accounts PayableIncrease in Accounts ReceivableIncrease in Accrued Expenses PayableIncrease in InventoryIncrease in Prepaid ExpensesNet Income |
enter a dollar amount |
|
|
select an item Decrease in Accounts PayableDecrease in Accounts ReceivableDecrease in Accrued Expenses PayableDecrease in InventoryDecrease in Prepaid ExpensesDepreciation ExpenseIncrease in Accounts PayableIncrease in Accounts ReceivableIncrease in Accrued Expenses PayableIncrease in InventoryIncrease in Prepaid ExpensesNet Income |
enter a dollar amount |
|
|
select an item Decrease in Accounts PayableDecrease in Accounts ReceivableDecrease in Accrued Expenses PayableDecrease in InventoryDecrease in Prepaid ExpensesDepreciation ExpenseIncrease in Accounts PayableIncrease in Accounts ReceivableIncrease in Accrued Expenses PayableIncrease in InventoryIncrease in Prepaid ExpensesNet Income |
enter a dollar amount |
|
|
select an item Decrease in Accounts PayableDecrease in Accounts ReceivableDecrease in Accrued Expenses PayableDecrease in InventoryDecrease in Prepaid ExpensesDepreciation ExpenseIncrease in Accounts PayableIncrease in Accounts ReceivableIncrease in Accrued Expenses PayableIncrease in InventoryIncrease in Prepaid ExpensesNet Income |
enter a dollar amount |
|
|
enter a total amount for this subsection |
||
|
select a closing section name Cash at Beginning of PeriodCash at End of PeriodCash Flows from Financing ActivitiesCash Flows from Investing ActivitiesCash Flows from Operating ActivitiesNet Cash Provided by Financing ActivitiesNet Cash Provided by Investing ActivitiesNet Cash Provided by Operating ActivitiesNet Cash used by Financing ActivitiesNet Cash used by Investing ActivitiesNet Cash used by Operating ActivitiesNet Decrease in CashNet Increase in Cash |
$enter a total amount for this section |
|
In: Accounting
Joseph P. Smith and his wife Gladys G. Smith are married and file a joint return for 2016. Joseph’s social security number is 499-99-4321 and he is 44 years old. Gladys social security number is 637-44-9876 and she is 43 years old. They live at 1502 Seaman Court,
Flemington, NJ 08822.
Mr. Smith is a construction worker employed by LLL Construction.
His form W-2 from LLL Construction showed the following:
Wages $42,000
Withholding (federal) 4,500
The Smiths have a 17-year old son, Jackson, who is enrolled in the eleventh grade at Flemington Perpetual Catholic School. Jackson’s social security number is 669-90-0099. The Smiths also have an 18-year old daughter, Lois, who is a full-time freshman at Oceanside Community College (OCC). Lois’s social security number is 669-90-0100. Mr. and Mrs. Smith also have full custody of Joseph’s nephew, Larry Loser (social security number 664-66-6688) who is 18 years old and a part-time student at OCC. All three of the children live at home, and Joseph and Gladys pay the majority of expenses for Jackson, Lois, and Larry (none of the children work).
Joseph and Gladys have the following investment income for 2016:
Interest from the Trustworthy Savings Bank $651
Dividends (qualified) Seaside Bank stock 150
Dividends (qualified) Seaside Gas Company stock 260
Dividends (non-qualified) Hot Mutual Fund 45
Interest on NJ State Municipal Bonds 750
Interest on Seaside Electric Company Bonds 675
Joseph went to the local casino and won $3800 playing the slot machines. The next day he decided to go back to the casino and unfortunately he spent (lost) $1550 that day.
One of Gladys friends died during the year and Gladys received $10,000 in life insurance proceeds.
In July, Joseph’s aunt died and left him a piece of real estate (undeveloped land) worth $65,000.
Five years ago, Joseph and Gladys were divorced. Joseph married Suzy Sunshine
(SS# 020-22-2222), but the marriage did not work out and they were divorced a year later. They had a child while married, Sara Sunshine (social security number 555-50-5588, age 7). Under the divorce decree, Joseph has to pay Suzy $18,000 per year until Sara reaches age 18 at which time the payment is reduced to $12,000 per year. Three years ago, Joseph and Gladys were remarried.
During 2016, Joseph spent $250 on safety glasses, $150 on steel toed work boots, $100 on a reflective vest to use while directing traffic, and $300 on jeans that he wears to work. He also spent $2250 on tools that he uses for work. LLL Construction gave him $1000 to use to purchase a demolition saw (not part of the $2250 spent on tools, and not included in his paycheck).
Joseph is tired of working in construction and went back to school, part time, in January. He spent $3600 on tuition to the local community college and has a 1098-T supporting that expense. He has never been enrolled in higher education prior to this time. He paid for the tuition using a student loan.
Gladys was laid off from her job on January 2, 2016 and received unemployment compensation of $12,000 during 2016.
Joseph and his family are covered under a health insurance plan provided by LLL Construction, and LLL pays $300 per month and Joseph pays $250 per month for this plan (the $250 is deducted pre-tax from Joseph’s paycheck). During the year, Gladys had an emergency appendectomy; the total bill was $22,500, the insurance covered $18,000 and Joseph and Gladys paid the remainder.
On September 1, 2016 Gladys took a job as a medical transcriptionist and works from home. She does her work on the dining room table. The house is 2000 square feet, and the dining room is 400 square feet. Her income and expenses follow:
Income (paid on a 1099-Misc) $19,050
Home office expenses (direct) $2600
Home office expenses (indirect, but not allocated) $12,000
Office expenses 1,380
Computer supplies 800
Telephone 300
Faxes (sent from Staples) 250
Internet service 480
In addition to the above items, Gladys incurred travel expenses to attend a seminar on medical transcription. She spent $1200 on airfare, $750 on lodging, $325 on a rental car, and $560 on meals. Gladys has documentation for these expenses.
Gladys drove her 2014 Land Rover 2,845 miles for business related purposes, and the vehicle was driven a total of 8,646 miles during the year. Gladys uses the standard mileage rates and has substantiation for the mileage.
In July, Joseph loaned a fried $5,000 to purchase a car. His friend lost his job in 2016 and has not made any payments on the loan. He plans to start making payments again, however, with additional interest as soon as he has new employment.
Joseph and Gladys paid the following in 2016 (all by check or can otherwise be substantiated):
Contributions to Flemington Perpetual Catholic Church $2600
Tuition to the Flemington Perpetual Catholic School (for Jackson) 5,000
Clothes to the Salvation Army (10 bags in good condition) 275
Contributions to George Kerry’s Congressional campaign 250
Psychotherapy for Gladys 1,000
Eyeglasses for Jackson 375
Prescription medication and drugs 1,850
Credit card interest 1,345
Interest on Glady’s student loans 3,125
Investment interest on stock margin account 345
Auto loan interest 900
Auto insurance 1,600
Dave Deduction, CPA, for preparation of last year’s tax return 200
Safe deposit rental for storage of stocks and tax data 100
Contribution to educational savings account for Jackson 1,000
Home mortgage interest 6,910
Home property (real estate) taxes 4,400
In June, a hurricane destroyed a large shed on their property. The insurance company paid $6500 to replace the shed, but Joseph built a new shed himself for $1800.
Joseph’s grandfather died and left a portfolio of municipal bonds. In 2016 Joseph received $20,000 in tax-free interest (ignore AMT tax calculations).
On July 14, Joseph and Gladys purchased a second house to use as a rental property. They paid $130,000 for the property (the land value, included in the $130,000, is $30,000). They collected rent of $8000 during the year, and paid real estate taxes of $2600, mortgage interest of $1600, repairs of $750, and $600 advertising the property for rent.
Joseph owned 1,000 shares of Really Huge Airline stock with a basis of $30 per share. The stock was purchased six years ago on June 10. Joseph sells 500 shares of Really Huge Airline stock to his uncle Geovanni and 500 shares to his sister Pristine for $5 per share on December 31, 2016. The market price of Really Huge Airline stock on December 31, 2016 was $35 per share.
Joseph purchased 5 acres of raw land in Speculator, NY, 10 years ago. His basis in the land was $90,000. On August 1, 2016 he sold the land for $150,000.
On May 15, 2016 Joseph and Gladys sold their personal residence for $585,150 and purchased a new house for $485,000. They had owned the old house for 5 years and Gladys had inherited it when her mother passed away. Her mother had paid $17,000 for it when she purchased it many years ago, and it had a market value of $525,000 when she passed away) The house had been their personal residence ever since Gladys mother passed away. They moved into the new house on May 18, 2016.
Joseph sold the following securities during the year and received a 1099-B that showed the following information:
Security Description Purchased Sold Selling Price Adjusted Basis
Orange Inc. 100 shares 02/11/97 04/16/16 $3,080 $4,550
Blue, Inc. 100 shares 07/17/01 07/31/16 $2,000 $3,600
Red (Preferred) 100 shares 12/08/15 09/25/2016 $8,975 $10,510
Plum (Bonds) due 4/2015 12/30/05 01/02/2016 $5,155 $5,320
Peach Mutual Fund 5,010 shares 05/30/06 10/22/2016 $60,120 $56,480
The selling price is net of sales commissions. In addition to the above amounts, the Hot Mutual Fund distributed a long-term capital gain of $450 on December 30, 2016.
To do:
Using the information above, complete the 1040 form for Joseph and Gladys including all additional forms and schedules. You may use tax software or can access the required forms on the IRS.gov website. Please use 2016 forms.
In: Accounting
To include variables in the input prompt, you must use concatenation character (+). For example: assume you already asked for input of employee's first name and last name (they are stored into variables FirstName and LastName, then use this prompt to ask for employee's weekly hours which includes the employee's full name in the input statement.
Hours = float(input("Enter " + FirstName + ' ' + LastName + '\'s Weekly Hours: '))
The company which uses this program has TWO employees.
Write a Python application that will allow the user (payroll clerk) to enter payroll data for two hourly employees. Input Data includes:
Repeat the above prompt for two employees
Must use if statements to check if the employee requires an overtime pay.
Up to 40 hours on employee’s hourly rate; any hours over 40 must be pay at a time and a half (1.5 of rate). Using , and 2 decimal places for all currency in the output
Display the followings for each employee:
Then finally output payroll info for the entire company (total amount for both employees)
Sample input/output (user input is in bold italic)
Enter Employee’s ID (i.e. AF101): AS111
Enter Employee’s Last Name: Wong
Enter Employee’s First Name: Wanda
Enter Wanda Wong’s Weekly Hours: 36.5
Enter Wanda Wong’s Hourly pay rate per hour: 50
Enter Wanda Wong’s Income tax rate: 0.25
Enter Employee’s ID (i.e. AF101): AS256
Enter Employee’s Last Name: Johnson
Enter Employee’s First Name: Betty
Enter Betty Johnson’s Weekly Hours: 52
Enter Betty Johnson’s Hourly pay rate per hour: 30
Enter Betty Johnson’s Income tax rate: 0.20
Weekly Pay stub for AS111 Wanda Wong
36.5 Hours Worked @ $50.00
Gross pay of $1,825.00
Less Taxes Withheld @ 25.0% $456.25
Net Pay $1,368.75
Weekly Pay stub for AS256 Betty Johnson
52 Hours Worked @ $30.00
Gross pay of $1,740.00
Less Taxes Withheld @ 20.0% $348.00
Net Pay $1,392.00
Total Company payroll expense for the week: $3,565.00
Total Cash payments to Employees: $2,760.75
In: Computer Science
Please correct chosen answers if incorrect.
22) d
23) c
24) c
22) Which of the following is not true regarding event rates:
a. an event can be anything such as Chicago Cubs winning the World Series
b. event rates are seldom used as they only provide data of nominal significance
c. event rate is statistical term that describes how often an event occurs
d. the formula for event rate is the number of times the event occurs, divided by the number of possible times the event could occur
23) Which of the following statements is not true regarding data collection:
a. often times, in our field, we collect data to help us infer or hypothesize about any number of things including treatments, prevention, occurrences, etc
b. collecting count data may be on one single sample or cohort, due to any number of reasons
c. when data is collected on count data, e call the outcome of that collection, results
. in single group studies, control groups are the standard
24) Which of the following statements is true:
a. comparisons between age-adjusted rates can only be useful if the same standard population is used in the creation of the age-adjusted rates
b. event rates are never seen as something which is important in public health except in epidemiological concerns
c. count data is something that is important when considering data gathered on vampires
d. person-time is often used in epidemiological studies in the veterinary sciences
In: Math
Show your numerical answer(s) and the Excel function(s) and inputs you used to get the answer. You may use up to 25 words (50 for #4) to supplement your numbers, tables and Excel functions.
1. State Retirement Funding (5 points – 1 page with table, functions and 25 words)
A state retirement plan has been frozen. It is considered fully-funded, with $635,244,352.26 of assets on hand and makes payouts to 1,000 recipients. It assumes it will earn 7.5% per year on these assets. The most recent total payout was $50,000,000. Next year it will be $51,000,000, which includes a 2% COLA increase in benefits. This payout amount is scheduled to increase by 2% per year for inflation. All interest earned and payments occur at the end of the year. For this cohort of retirees the final payment will be made in exactly22 years from today. The fund balance at that time will be zero.
The effective rate for annuities like this is RATE = .
The PV was calculated as =PV(RATE,22,-50000000,0,0)
In: Finance