language c++ finish the code and hurry in an exam with less then 30 minutes
#include <iostream>
#include <vector>
using namespace std;
int find(vector<int> & v, int value);
int main(){
vector<int> myVec = {2,30,10,50,100,32,19,43, 201, 311, 99,77,45,15,95, 105, 32, 15};
//complete code here
cout << "First Element is: " << endl;
cout << "Last Element is: " << endl;
cout << "The number of elements is: " << endl;
//Complete the missing code
cout << "Find 201 : result is at index " << endl;
cout << "Find 299 : result is at index " << endl;
return 0;
}
int find(vector<int> & v, int value){
//complete the code here
return -1;
}
return 0;
}
output should be like this
first element is : 2
Last element is :15
the number of element is :18
write a function find that takes in the vector and the value you would like to find
int find(vector<int)> & v, int value)
find 201: result is at index 8
find 299: result is at index -1
In: Computer Science
I. Answer part A,B, C and D.
1a)
Count the number of times a given char occurs in a given range of a String parameter (i.e. starting at a given start index, and up to but not including and end index). If end is greater than the length of the String, then the method should stop looking at the end of the String.
countCharsInRange("java", "v", 1, 2) → 0
countCharsInRange("java", "v", 0, 2) → 0
countCharsInRange("java", "v", 0, 3) → 1
1b)
Return a new String that removes all copies of the given char ch from the given String
removeChar("dog", "o") → "dg"
removeChar("cat", "o") → "cat"
removeChar("aaa", "a") → ""
1c)
Return the number of times the letter 'a' is directly followed by the letter 'b' in the given String.
countAB("abc") → 1
countAB("wxyz") → 0
countAB("bcaca") → 0
1d)
Return a new String that is a copy of the given String with each character copied the given number of times. Assume that n is 0 or more.
eachCharNTimes("abc", 2) → "aabbcc"
eachCharNTimes("xyz", 3) → "xxxyyyzzz"
eachCharNTimes("a", 5) → "aaaaa"
In: Computer Science
SCENARIO
Textbooks R Us is a small business that was set up 20 years ago to facilitate the physical sale of second-hand textbooks for University students. They would now like to change their business model to an e-business model where they only sell their books online. Its business will run entirely on the Internet and students will be able to sell and purchase books via their website. This will allow the business to increase their market as they will not be restricted to selling books at the one University campus. Textbooks R Us has tasked your team to come up with the requirements for their new system.
Sellers must have an account with Textbooks R Us to sell any books via their website. To create an account, sellers must register and provide various details when setting up their account. These details include their physical address, postal address, name, telephone number, a current email address and banking details for the receipt of money after their books have been sold.
Buyers must also open an account if they wish to purchase a textbook, however they can search for books on the website without having an account. To create an account, buyers must register and provide various details when setting up their account. These details include their physical address, postal address, name, telephone number, a current email address and credit card details. Buyers can purchase as many books as desired in the same transaction or through separate transactions. Books can be purchased via credit card or PayPal.
A seller can list books on the system through completing an online form. The details which must be provided on the form include information on the book to be sold such as: its category, title, author, year of publication, condition and the asking price. An option to upload a photo of the books is also available for buyers to see the condition of the book. A seller may list as many books as desired. A seller may also remove books for sale if they wish or amend the sale price.
The system will maintain a list of all books for buyers to use a search engine to search for books of interest by title, author, category, and keyword.
The system will provide secure access for all users and information is to be maintained on secure servers. Sensitive financial information and private user details are not to be disclosed to other users of the system.
When a purchase is made, Textbooks R Us will send an e-mail notice and/or a text message to the seller of the book that was chosen as well as payment information. The seller will have the option of choosing which method of notification they prefer when setting up their account, i.e. via email and/or via text message to their mobile phone. The system will also mark the book as sold and maintain an open order status until it receives notice that the book has been shipped by the seller.
Once the seller has received the notification that the book has been sold, they must notify the buyer via their chosen notification method (email and/or text message) within 48 hours that the purchase has been accepted and they must ship the order within 48 hours of sending the notification to the buyer. The seller will then send a notification to the buyer (again via their preferred method) and to Textbooks R Us when the shipment is made.
Upon receiving notice that the shipment has been made, Textbooks R Us will change the status of the book order to a shipped status. Buyers will have a 30-day period to receive a refund from Textbooks R Us if the book does not arrive, or to return the book if it does not meet the advertised criteria. Once this 30-day period has lapsed, i.e. the book has been in a shipped status for 30 days, the money received for the book will be transferred to the seller’s nominated account by Textbooks R Us and the book’s order status will be changed to sold.
After receiving an ordered book, buyers will have the option of entering a rating for the seller to indicate a measure on several factors regarding their transaction with the seller. Some sellers have been very active using the current business model and this feature will provide them with an important indicator to other potential buyers.
Question
1.) To collect information on the functional requirements you are asked to develop 15 sample questions to discover the requirements, you are going to interview buyers and sellers. Provide the a sample of 15 questions you ask for both stakeholders (i.e 15 questions for buyers and 15 questions for sellers).
In: Operations Management
SCENARIO
Textbooks R Us is a small business that was set up 20 years ago to facilitate the physical sale of second-hand textbooks for University students. They would now like to change their business model to an e-business model where they only sell their books online. Its business will run entirely on the Internet and students will be able to sell and purchase books via their website. This will allow the business to increase their market as they will not be restricted to selling books at the one University campus. Textbooks R Us has tasked your team to come up with the requirements for their new system.
Sellers must have an account with Textbooks R Us to sell any books via their website. To create an account, sellers must register and provide various details when setting up their account. These details include their physical address, postal address, name, telephone number, a current email address and banking details for the receipt of money after their books have been sold.
Buyers must also open an account if they wish to purchase a textbook, however they can search for books on the website without having an account. To create an account, buyers must register and provide various details when setting up their account. These details include their physical address, postal address, name, telephone number, a current email address and credit card details. Buyers can purchase as many books as desired in the same transaction or through separate transactions. Books can be purchased via credit card or PayPal.
A seller can list books on the system through completing an online form. The details which must be provided on the form include information on the book to be sold such as: its category, title, author, year of publication, condition and the asking price. An option to upload a photo of the books is also available for buyers to see the condition of the book. A seller may list as many books as desired. A seller may also remove books for sale if they wish or amend the sale price.
The system will maintain a list of all books for buyers to use a search engine to search for books of interest by title, author, category, and keyword.
The system will provide secure access for all users and information is to be maintained on secure servers. Sensitive financial information and private user details are not to be disclosed to other users of the system.
When a purchase is made, Textbooks R Us will send an e-mail notice and/or a text message to the seller of the book that was chosen as well as payment information. The seller will have the option of choosing which method of notification they prefer when setting up their account, i.e. via email and/or via text message to their mobile phone. The system will also mark the book as sold and maintain an open order status until it receives notice that the book has been shipped by the seller.
Once the seller has received the notification that the book has been sold, they must notify the buyer via their chosen notification method (email and/or text message) within 48 hours that the purchase has been accepted and they must ship the order within 48 hours of sending the notification to the buyer. The seller will then send a notification to the buyer (again via their preferred method) and to Textbooks R Us when the shipment is made.
Upon receiving notice that the shipment has been made,Textbooks R Us will change the status of the book order to a shipped status. Buyers will have a 30-day period to receive a refund from Textbooks R Us if the book does not arrive, or to return the book if it does not meet the advertised criteria. Once this 30-day period has lapsed, i.e. the book has been in a shipped status for 30 days, the money received for the book will be transferred to the seller’s nominated account by Textbooks R Us and the book’s order status will be changed to sold.
After receiving an ordered book, buyers will have the option of entering a rating for the seller to indicate a measure on several factors regarding their transaction with the seller. Some sellers have been very active using the current business model and this feature will provide them with an important indicator to other potential buyers.
USE CASES
Identify all the actors who will be using the system.
Prepare a table containing all use cases and a brief use case description (1-2 sentences) for each use case.
Draw a use case diagram for the system representing the actors and use cases identified.
In: Operations Management
Q.1. Operating torques in analogue instruments are
(a) deflecting and control (b) deflecting and damping (c) deflecting, control and damping (d) vibration and balancing
Q.2. An instrument transformer is used to extend the range of
(a) induction instrument (b) electrostatic instrument (c) moving coil instrument (d) any of the above
Q.3. A power factor meter is based on the principle of
(a) electrostatic instrument (b) Electrodynamometer instrument (c) Electro thermo type instrument (d) Rectifier type instrument.
Q.4.When using the terms "accuracy" and "precision" for measurements
a. "precision" implies less measurement error than "accuracy" b. "accuracy" implies less measurement error than "precision" c. "precision" measures the repeatability of a measurement d. both terms mean the same thing
Q.5. The bridge method commonly used for finding mutual inductance is
(A) Heaviside Campbell bridge (B) Schering bridge (C) De Sauty bridge (D) Wien bridge
Q.6. The Q-meter works on the principle of
(A) mutual inductance (B) self inductance (C) series resonance (D) parallel resonance
Q.7. A digital-to-analog converter with a full-scale output voltage of 3.5 V has a resolution close to 14 mV. Its bit size is
(A) 4 (B) 8 (C) 16 (D) 32
Q.8.Which of the following has the best accuracy
(A).MI meter (B).Moving coil meter (C).Rectifier type meter (D).Thermocouple meter
Q.9.A 0-10 A ammeter has a guaranteed accuracy of 1% of FSD.The limiting error while reading 2.5A
(A).1% (B).2% (C).4% (D).none of the above
Q.10.In a transducer the observed output deviates from the correct value by constant factor the resulting error is called
(A).Zero Error (B).Sensitivity Error (C).Non-confirmity Error (D).Hysteresis error
Q.11. If the current in a capacitor leads the voltage by 80°, the loss angle of the capacitor is
(a) 10° (b) 80° (c) 120° (d) 170°
Q.12. To avoid the effect of stray magnetic field in A.C. bridges we can use
(a) magnetic screening (b) Wagner earthing device (c) wave filters (d) any of the above
Q.13. The disc of an instrument using eddy current damping should be of
(a) conducting and magnetic material (b) non-conducting and magnetic material (c) conducting and non-magnetic material (d) none of the above
Q.14. An induction meter can handle current upto
(a) 10 A (b) 30 A (c) 60 A (d) 100 A
Q.15. Which of the following devices may be used for extending the range of instruments ?
(a) Shunts (b) Multipliers (c) Current transformers (d) Potential transformers (e) All of the above
In: Mechanical Engineering
JAVA
Given the company and Employee interface, create a findLeastPaid() method (that will do the opposite of whats below). instead of finding the the best paid convert it find the lowest paid person.
Given the Company and FullTimeEmployee classes and the Employee
interface,
write a Java program that reads in a file of full time employees
with each line of
input containing the name of the employee (String) and gross Salary
(double) and stores
them in an array list. Then using the arraylist of stored
employees, find and print the
less paid employee (name) and his/her pay. If there is more than
one such, print any one
lesst paid employee information.
---------------------------------------------------------------------------------
import java.util.*; // for the Scanner class
import java.io.*;
public class Company
{
public static void main (String[ ] args) throws
FileNotFoundException
{
new Company().run();
} // method main
/**
* Determines and prints out the best paid of the full-time
employees
* scanned in from a specified file.
*
*/
public void run() throws FileNotFoundException // see Section 2.3
{
final String INPUT_PROMPT = "Please enter the path for the file of
employees: ";
final String BEST_PAID_MESSAGE =
"\n\nThe best-paid employee (and gross pay) is ";
final String NO_INPUT_MESSAGE =
"\n\nError: There were no employees scanned in.";
String fileName;
System.out.print (INPUT_PROMPT);
fileName = new Scanner (System.in).nextLine();
Scanner sc = new Scanner (new File (fileName));
FullTimeEmployee bestPaid = findBestPaid (sc);
if (bestPaid == null)
System.out.println (NO_INPUT_MESSAGE);
else
System.out.println (BEST_PAID_MESSAGE + bestPaid.toString());
} // method run
/**
* Returns the best paid of all the full-time employees scanned
in.
*
* @param sc – the Scanner object used to scan in the
employees.
*
* @return the best paid of all the full-time employees scanned
in,
* or null there were no employees scanned in.
*
*/
public FullTimeEmployee findBestPaid (Scanner sc)
{
FullTimeEmployee full,
bestPaid = new FullTimeEmployee();
while (sc.hasNext())
{
full = getNextEmployee (sc);
if (full.getGrossPay() > bestPaid.getGrossPay())
bestPaid = full;
} //while
if (bestPaid.getGrossPay() == 0.00)
return null;
return bestPaid;
} // method findBestPaid
/**
* Returns the next full-time employee from the file scanned by a
specified Scanner
* object.
*
* @param sc – the Scanner object over the file.
*
* @return the next full-time employee scanned in from sc.
*
*/
protected /*private*/ FullTimeEmployee getNextEmployee (Scanner
sc)
{
Scanner lineScanner = new Scanner (sc.nextLine());
String name = lineScanner.next();
double grossPay = lineScanner.nextDouble();
return new FullTimeEmployee (name, grossPay);
} // method getNextEmployee
} // class Company
---------------------------------------------------------------------------------
import java.text.DecimalFormat;
public interface Employee
{
final static DecimalFormat MONEY = new DecimalFormat ("
$0.00");
// a class constant used in formatting a value in dollars and
cents
/**
* Returns this Employee object’s name.
*
* @return this Employee object’s name.
*
*/
String getName();
/**
* Returns this Employee object’s gross pay.
*
* @return this Employee object’s gross pay.
*
*/
double getGrossPay();
/**
* Returns a String representation of this Employee object with the
name
* followed by a space followed by a dollar sign followed by the
gross
* weekly pay, with two fractional digits (rounded).
*
* @return a String representation of this Employee object.
*
*/
String toString();
} // interface Employee
---------------------------------------------------------------------------------
public class FullTimeEmployee implements Employee
{
protected /*private*/ String name;
protected /*private*/ double grossPay;
public FullTimeEmployee()
{
final String EMPTY_STRING = "";
name = EMPTY_STRING;
grossPay = 0.00;
} // default constructor
/**
* Initializes this FullTimeEmployee object's name and gross pay
from a
* a specified name and gross pay.
*
* @param name - the specified name.
* @param grossPay - the specified gross pay.
*
*/
public FullTimeEmployee (String name, double grossPay)
{
this.name = name;
this.grossPay = grossPay;
} // 2-parameter constructor
/**
* Returns the name of this FullTimeEmployee object.
*
* @return the name of this FullTimeEmployee object.
*
*/
public String getName()
{
return name;
} // method getName
/**
* Returns the gross pay of this FullTimeEmployee object.
*
* @return the gross pay of this FullTimeEmployee object.
*
*/
public double getGrossPay()
{
return grossPay;
} // method getGrossPay
/**
* Returns a String representation of this FullTimeEmployee object
with the
* name followed by a space followed by a dollar sign followed by
the gross
* weekly pay, with two fractional digits (rounded), followed by "
FULL TIME".
*
* @return a String representation of this FullTimeEmployee
object.
*
*/
public String toString()
{
final String EMPLOYMENT_STATUS = " FULL TIME";
return name + MONEY.format (grossPay) + EMPLOYMENT_STATUS;
// the format method returns a String representation of
grossPay.
} // method toString
} // class FullTimeEmployee
In: Computer Science
JAVA
Given the company and Employee interface, create a
findLeastPaid() method (that will do the opposite of whats
below). instead of finding the the best paid convert it
find the lowest paid person.
write a Java program that reads in a file of full time employees
with each line of
input containing the name of the employee (String) and gross Salary
(double) and stores
them in an array list. Then the arraylist of stored employees, find
and print the
less paid employee (name) and his/her pay. If there is more than
one such, print any one
lesst paid employee information.
---------------------------------------------------------------------------------
import java.util.*; // for the Scanner class
import java.io.*;
public class Company
{
public static void main (String[ ] args) throws
FileNotFoundException
{
new Company().run();
} // method main
/**
* Determines and prints out the best paid of the full-time
employees
* scanned in from a specified file.
*
*/
public void run() throws FileNotFoundException // see Section 2.3
{
final String INPUT_PROMPT = "Please enter the path for the file of
employees: ";
final String BEST_PAID_MESSAGE =
"\n\nThe best-paid employee (and gross pay) is ";
final String NO_INPUT_MESSAGE =
"\n\nError: There were no employees scanned in.";
String fileName;
System.out.print (INPUT_PROMPT);
fileName = new Scanner (System.in).nextLine();
Scanner sc = new Scanner (new File (fileName));
FullTimeEmployee bestPaid = findBestPaid (sc);
if (bestPaid == null)
System.out.println (NO_INPUT_MESSAGE);
else
System.out.println (BEST_PAID_MESSAGE + bestPaid.toString());
} // method run
/**
* Returns the best paid of all the full-time employees scanned
in.
*
* @param sc – the Scanner object used to scan in the
employees.
*
* @return the best paid of all the full-time employees scanned
in,
* or null there were no employees scanned in.
*
*/
public FullTimeEmployee findBestPaid (Scanner sc)
{
FullTimeEmployee full,
bestPaid = new FullTimeEmployee();
while (sc.hasNext())
{
full = getNextEmployee (sc);
if (full.getGrossPay() > bestPaid.getGrossPay())
bestPaid = full;
} //while
if (bestPaid.getGrossPay() == 0.00)
return null;
return bestPaid;
} // method findBestPaid
/**
* Returns the next full-time employee from the file scanned by a
specified Scanner
* object.
*
* @param sc – the Scanner object over the file.
*
* @return the next full-time employee scanned in from sc.
*
*/
protected /*private*/ FullTimeEmployee getNextEmployee (Scanner
sc)
{
Scanner lineScanner = new Scanner (sc.nextLine());
String name = lineScanner.next();
double grossPay = lineScanner.nextDouble();
return new FullTimeEmployee (name, grossPay);
} // method getNextEmployee
} // class Company
---------------------------------------------------------------------------------
import java.text.DecimalFormat;
public interface Employee
{
final static DecimalFormat MONEY = new DecimalFormat ("
$0.00");
// a class constant used in formatting a value in dollars and
cents
/**
* Returns this Employee object’s name.
*
* @return this Employee object’s name.
*
*/
String getName();
/**
* Returns this Employee object’s gross pay.
*
* @return this Employee object’s gross pay.
*
*/
double getGrossPay();
/**
* Returns a String representation of this Employee object with the
name
* followed by a space followed by a dollar sign followed by the
gross
* weekly pay, with two fractional digits (rounded).
*
* @return a String representation of this Employee object.
*
*/
String toString();
} // interface Employee
---------------------------------------------------------------------------------
public class FullTimeEmployee implements Employee
{
protected /*private*/ String name;
protected /*private*/ double grossPay;
public FullTimeEmployee()
{
final String EMPTY_STRING = "";
name = EMPTY_STRING;
grossPay = 0.00;
} // default constructor
/**
* Initializes this FullTimeEmployee object's name and gross pay
from a
* a specified name and gross pay.
*
* @param name - the specified name.
* @param grossPay - the specified gross pay.
*
*/
public FullTimeEmployee (String name, double grossPay)
{
this.name = name;
this.grossPay = grossPay;
} // 2-parameter constructor
/**
* Returns the name of this FullTimeEmployee object.
*
* @return the name of this FullTimeEmployee object.
*
*/
public String getName()
{
return name;
} // method getName
/**
* Returns the gross pay of this FullTimeEmployee object.
*
* @return the gross pay of this FullTimeEmployee object.
*
*/
public double getGrossPay()
{
return grossPay;
} // method getGrossPay
/**
* Returns a String representation of this FullTimeEmployee object
with the
* name followed by a space followed by a dollar sign followed by
the gross
* weekly pay, with two fractional digits (rounded), followed by "
FULL TIME".
*
* @return a String representation of this FullTimeEmployee
object.
*
*/
public String toString()
{
final String EMPLOYMENT_STATUS = " FULL TIME";
return name + MONEY.format (grossPay) + EMPLOYMENT_STATUS;
// the format method returns a String representation of
grossPay.
} // method toString
} // class FullTimeEmployee
In: Computer Science
Green Landscaping Inc. is preparing its budget for the first
quarter of 2017. The next step in the budgeting process is to
prepare a cash receipts schedule and a cash payments schedule. To
that end the following information has been collected.
Clients usually pay 60% of their fee in the month that service is
performed, 30% the month after, and 10% the second month after
receiving service.
Actual service revenue for 2016 and expected service revenues for
2017 are November 2016, $91,440; December 2016, $84,110; January
2017, $104,600; February 2017, $124,970; March 2017,
$132,960.
Purchases of landscaping supplies (direct materials) are paid 60%
in the month of purchase and 40% the following month. Actual
purchases for 2016 and expected purchases for 2017 are December
2016, $18,200; January 2017, $14,500; February 2017, $17,470; March
2017, $22,240.
(a)
Prepare the following schedules for each month in the first quarter
of 2017 and for the quarter in total:
(1) Expected collections from clients.
| GREEN
LANDSCAPING INC. Schedule of Expected Collections From Clients For the Year Ending March 31, 2017For the Quarter Ending March 31, 2017March 31, 2017 |
||||||||
|
January |
February |
March |
Quarter |
|||||
|
November |
$ | $ | $ | $ | ||||
|
December |
||||||||
|
January |
||||||||
|
February |
||||||||
|
March |
||||||||
|
Total collections |
$ | $ | $ | $ | ||||
(2) Expected payments for landscaping
supplies.
| GREEN
LANDSCAPING INC. Schedule of Expected Payments for Landscaping Supplies For the Quarter Ending March 31, 2017March 31, 2017For the Year Ending March 31, 2017 |
||||||||
|
January |
February |
March |
Quarter |
|||||
|
December |
$ | $ | $ | $ | ||||
|
January |
||||||||
|
February |
||||||||
|
March |
||||||||
|
Total payments |
$ | $ | $ | $ | ||||
(b)
Determine the following balances at March 31, 2017:
| (1) | Accounts receivable | $ | ||
| (2) | Accounts payable | $ |
In: Accounting
P4-15 Pro forma income statement The marketing department of Metroline Manufactur ing estimates that its sales in 2016 will be $1.5 million. Interest expense is expected to remain unchanged at $35,000, and the firm plans to pay $70,000 in cash divi dends during 2016. Metroline Manufacturing’s income statement for the year ended December 31, 2015, and a breakdown of the firm’s cost of goods sold and operating expenses into their fixed and variable components are given below. a. Use the percent-of-sales method to prepare a pro forma income statement for the year ended December 31, 2016. b. Use fixed and variable cost data to develop a pro forma income statement for the year ended December 31, 2016. c. Compare and contrast the statements developed in parts a and b. Which state ment probably provides the better estimate of 2016 income? Explain why. Metroline Manufacturing Metroline Manufacturing Breakdown of Costs and Expenses Income Statement for the Year Ended December 31, 2015 Sales revenue $1,400,000 Cost of goods sold Less: Cost of goods sold 910,000 Fixed cost $210,000 Gross profits $ 490,000 Variable cost 700,000 Less: Operating expenses 120,000 Total costs $910,000 Operating profits $ 370,000 Operating expenses Less: Interest expense 35,000 Fixed expenses $ 36,000 Net profits before taxes $ 335,000 Variable expenses 84,000 134,000 Less: Taxes (rate = 40%) Total expenses $120,000 Net profits after taxes $ 201,000 Less: Cash dividends 66,000 To retained earnings $ 135,000 ***Please provide response in excel formatting*** Thank you.
In: Finance
Mahoney Moving Corporation purchased a new moving truck on January 2, 2014, for $95,000. The truck was expected to have a useful life of 4 years and a residual value of $15,000. The company estimated that the moving truck would be driven for a total of 20,000 miles. It was driven for 5,000 miles in 2014, 6,000 miles in 2015, 4,000 miles in 2016, and 5,000 miles in 2017. The company’s fiscal year ends on December 31.
Required:
1. Complete the following depreciation schedules for each year and be sure to show all of your handwritten calculations for the solutions for your depreciation schedules.
2. Create your own Excel Depreciation Spreadsheet using the following format for your own assignment.
3. Use mathematical formulas in your Excel Spreadsheet
Straight Line Depreciation
Year Depreciation Expense Accumulated Depreciation Book Value
2014 __________________ ______________________ __________
2015 __________________ ______________________ __________
2016 __________________ ______________________ __________
2017 __________________ ______________________ __________
Double Declining Balance
Year Depreciation Expense Accumulated Depreciation Book Value
2014 __________________ ______________________ __________
2015 __________________ ______________________ __________
2016 __________________ ______________________ __________
2017 __________________ ______________________ __________
Units of Production
Year Depreciation Expense Accumulated Depreciation Book Value
2014 __________________ ______________________ __________
2015 __________________ ______________________ __________
2016 __________________ ______________________ __________
2017 __________________ ______________________ __________
What would the general journal entry be if the Mahoney Moving Corporation was using the Straight Line Depreciation Method and the moving truck was sold for $30,000 at the end of 2015?
4. What would the general journal entry be if the Mahoney Moving Corporation used the Double-Declining Balance Depreciation method and the moving truck was sold for $40,000 at the end of 2016?
5. What would the general journal entry be if the Mahoney Moving Corporation used the Production Depreciation method and the moving truck was sold for $10,000 at the end of 2017?
In: Accounting