Questions
Exercise 21A-5 a-c Sage Hill Leasing Company signs an agreement on January 1, 2017, to lease...

Exercise 21A-5 a-c

Sage Hill Leasing Company signs an agreement on January 1, 2017, to lease equipment to Cole Company. The following information relates to this agreement.

1. The term of the non-cancelable lease is 6 years with no renewal option. The equipment has an estimated economic life of 6 years.
2. The cost of the asset to the lessor is $401,000. The fair value of the asset at January 1, 2017, is $401,000.
3. The asset will revert to the lessor at the end of the lease term, at which time the asset is expected to have a residual value of $22,050, none of which is guaranteed.
4. The agreement requires equal annual rental payments, beginning on January 1, 2017.
5. Collectibility of the lease payments by Sage Hill is probable.

a. Assuming the lessor desires a 8% rate of return on its investment, calculate the amount of the annual rental payment required.

b. Prepare an amortization schedule that is suitable for the lessor for the lease term.

c. Prepare all of the journal entries for the lessor for 2017 and 2018 to record the lease agreement, the receipt of lease payments, and the recognition of revenue. Assume the lessor’s annual accounting period ends on December 31, and it does not use reversing entries.

In: Accounting

Exercise 21A-10 a-d The following facts pertain to a non-cancelable lease agreement between Cullumber Leasing Company...

Exercise 21A-10 a-d

The following facts pertain to a non-cancelable lease agreement between Cullumber Leasing Company and Marin Company, a lessee.

Commencement date May 1, 2017
Annual lease payment due at the beginning of
   each year, beginning with May 1, 2017 $19,656.69
Bargain purchase option price at end of lease term $7,000
Lease term 5 years
Economic life of leased equipment 10 years
Lessor’s cost $65,000
Fair value of asset at May 1, 2017 $93,000
Lessor’s implicit rate 6 %
Lessee’s incremental borrowing rate 6 %


The collectibility of the lease payments by Cullumber is probable.

Prepare a lease amortization schedule for Marin for the 5-year lease term.

Prepare the journal entries on the lessee’s books to reflect the signing of the lease agreement and to record the payments and expenses related to this lease for the years 2017 and 2018. Marin’s annual accounting period ends on December 31. Reversing entries are used by Marin. (Credit account titles are automatically indented when amount is entered. Do not indent manually. Round answers to 2 decimal places, e.g. 5,275.15.)

In: Accounting

Just to be clear, I only want the answer to the third part The typedset question...

Just to be clear, I only want the answer to the third part

The typedset question pls.

Implement a class Box that represents a 3-dimensional box. Follow these guidelines:


constructor/repr

A Box object is created by specifying calling the constructor and supplying 3 numeric values
for the dimensions (width, height and length) of the box.
These measurements are given in inches.
Each of the three dimensions should default to 12 inches.
The code below mostly uses integers for readability but floats are also allowed.
You do not need to do any data validation.
See below usage for the behaviour of repr.
There are no set methods other than the constructor.


>>> b = Box(11,12,5.5)
>>> b
Box(11,12,5.5)
>>> b2 = Box()
>>> b2
Box(12,12,12)

calculations
Given a Box , you can request its volume and cost.
volume - return volume in cubic inches
cost - returns the cost of a box in dollars. A box is constructed out of cardboard that costs
30 cents per square foot. The area is the total area of the six sides (don't worry about
flaps/overlap) times the unit cost for the cardboard.
If you look up formulas, cite the source in a comment in your code.

>>> b.volume()
726.0
>>> b.volume() == 726
True
>>> b.cost()
1.0770833333333334
>>> b2.volume()
1728
>>> b2.cost()
1.8
>>> b2.cost() == 1.8
True

comparisons

Implement the == and <= operators for boxes.
== - two boxes are equal if all three dimensions are equal (after possibly re-orienting).
<= - one box is <= than another box, if it fits inside (or is the same) as the other (after
possibly re-orienting). This requires that the boxes can be oriented so that the first box has
all three dimensions at most as large as those of the second box.

The above calculations must allow the boxes to be re-oriented. For example
Box(2,3,1)==Box(1,2,3) is True . How many ways can they be oriented? What is a good
strategy to handle this?
You may need to look up the names of the magic/dunder methods. If so, cite the source.
warning: I will run more thorough complete tests, so make sure you are careful!

>>> Box(1,2,3)==Box(1,2,3)
True
>>> (Box(1,2,3)==Box(1,2,3)) == True
True
>>> Box(2,3,1)==Box(1,2,3)
True
>>> Box(4,3,1)==Box(1,2,6)
False
>>> Box(1,2,3) <= Box(1,2.5,3)
True
>>> Box(1,3,3) <= Box(1,2.5,3)
False
>>> Box(3,1,2) <= Box(1,2.5,3)
True
>>> Box(1,2,3)<=Box(1,2,3)
True
>>>

boxThatFits

Write a standalone function boxThatFits that is a client of (uses) the Box class.
This function will accept two arguments, 1) a target Box and, 2) a file that contains an
inventory of available boxes.
The function returns the cheapest box from the inventory that is at least as big as the target
box.
If no box is large enough, None is returned.
If there is more than one that fits available at the same price, the one that occurs first in the
file should be returned.

>>> boxThatFits(Box(10,10,10),"boxes1.txt")
Box(10,10,10)
>>> b = boxThatFits(Box(10,10,10),"boxes1.txt")
>>> b.cost()
1.25
>>> boxThatFits(Box(12,10,9),"boxes2.txt")
Box(10,10,13)
>>> boxThatFits(Box(14,10,9),"boxes2.txt")
Box(11,15,10)
>>> boxThatFits(Box(12,10,13),"boxes2.txt")
Box(12,14,10)
>>> boxThatFits(Box(16,15,19),"boxes1.txt")
>>>

TypedSet

Write a class TypedSet according to these specifications:
TypedSet must inherit from set . Remember that this means you may get some of the
required functionality for free.
TypedSet acts like a set (with limited functionality) except that once the first item is added,
its contents are restricted to items of the type of that first item. This could be str or int or
some other immutable type.

# this is helpful, not something you need to write any code for
>>> type("a")
<class 'str'>
>>> x = type(3)
>>> x
<class 'int'>
>>> x==str
False
>>> x==int
True

constructor/repr
Do not write __init__ or __repr__ . When you inherit from set you will get suitable
versions.
Assume that the constructor will always be used to create an empty TypedSet (no arguments
will be passed)

add/getType
add functions like set.add , except that
the first object added to a TypedSet determines the type of all items that will be
subsequently added to the set
after the first object is added, any attempt to add an item of any other type raises a
WrongTypeError
getType returns the type of the TypedSet or None if no item has ever been added
Note: the sorted function is used for the below examples (and doctest) to make sure that
the results always appear in the same order.
Hint: you will need to make use of Python's type function. It returns the type of an object.
Of course, the value it returns can also be assigned to a variable/attribute and/or compared
to other types like this:

>>> ts = TypedSet()
>>> ts.add("a")
>>> ts.add("b")
>>> ts.add("a")
>>> ts.add(3) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
WrongTypeError: 3 does not have type <class 'str'>
>>> sorted(ts)
['a', 'b']
>>> ts = TypedSet()
>>> ts.getType()
>>> ts.add(2)
>>> ts.add("a") #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
WrongTypeError: a does not have type <class 'int'>
>>> ts.getType()
<class 'int'>
>>> ts.getType()==int
True
>>>

remove
remove functions as it would with a set

>>> ts = TypedSet()
>>> ts.add(4.3)
>>> ts.add(2.1)
>>> ts.add(4.3)
>>> ts.remove(4.3)
>>> ts.remove(9.2) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
KeyError: 9.2
>>> ts
TypedSet({2.1})

update
update functions like set.update , given a sequence of items, it adds each of the them
but, this update will raise a WrongTypeError if something is added whose type does not
match the first item

keep in mind that the TypedSet may not yet have been given an item when update is called

>>> ts = TypedSet()
>>> ts.add(3)
>>> ts.update( [3,4,5,3,4,4])
>>> sorted( ts )
[3, 4, 5]
>>> ts.update(["a","b"]) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
WrongTypeError: a does not have type <class 'int'>
>>>
>>>
>>> ts = TypedSet()
>>> ts.update( ["a","b",3]) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
WrongTypeError: 3 does not have type <class 'str'>
>>>

The | operator is the "or" operator, given two sets it returns their union, those elements
that are in one set or the other. (It is already defined for the set class.)
accepts two arguments, each a TypedSet , neither is changed by |
returns a new TypedSet whose contents are the mathematical union of the supplied
arguments
as usual, raises a WrongTypeError if the two TypedSet 's do not have the same type
remember to cite anything you need to look up

>>> s1 = TypedSet()
>>> s1.update([1,5,3,1,3])
>>> s2 = TypedSet()
>>> s2.update([5,3,8,4])
>>> sorted( s1|s2 )
[1, 3, 4, 5, 8]
>>> type( s1|s2 ) == TypedSet
True
>>> sorted(s1),sorted(s2)
([1, 3, 5], [3, 4, 5, 8])
>>>
>>> s1 = TypedSet()
>>> s1.update([1,5,3,1,3])
>>> s2 = TypedSet()
>>> s2.update( ["a","b","c"] )
>>> s1|s2 #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
WrongTypeError: b does not have type <class 'int'>

>>> sorted(s1),sorted(s2)
([1, 3, 5], ['a', 'b', 'c'])

Just to be clear, I only want the answer to the third part

The typedset question pls.

In: Computer Science

int main() {    footBallPlayerType bigGiants[MAX];    int numberOfPlayers;    int choice;    string name;   ...

int main()
{
   footBallPlayerType bigGiants[MAX];
   int numberOfPlayers;
   int choice;
   string name;
   int playerNum;
   int numOfTouchDowns;
   int numOfcatches;
   int numOfPassingYards;
   int numOfReceivingYards;
   int numOfRushingYards;
   int ret;
   int num = 0;
   ifstream inFile;
   ofstream outFile;
   ret = openFile(inFile);
   if (ret)
       getData(inFile, bigGiants, numberOfPlayers);
   else
       return 1;
   /// replace with the proper call to getData
   do
   {
       showMenu();
       cin >> choice;
       cout << endl;
       switch (choice)
       {
       case 1:
           cout << "Enter player's name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           printPlayerData(bigGiants, num, playerNum);
           break;
       case 2:
           printData(bigGiants, num);
           break;
       case 3:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of touch downs to be added: ";
           cin >> numOfTouchDowns;
           cout << endl;
           /// replace with call to update TouchDowns from group 1
           break;
       case 4:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of catches to be added: ";
           cin >> numOfcatches;
           cout << endl;
           break;
       case 5:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of passing yards to be added: ";
           cin >> numOfPassingYards;
           cout << endl;
           /// replace with call to updatePassingYards from group 3
           break;
       case 6:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of receiving yards to be added: ";
           cin >> numOfReceivingYards;
           cout << endl;
           /// replace with call to update Receiving Yards from group 4
           break;
       case 7:
           cout << "Enter player name: ";
           cin >> name;
           cout << endl;
           playerNum = searchData(bigGiants, num, name);
           cout << "Enter number of rushing yards to be added: ";
           cin >> numOfRushingYards;
           cout << endl;
           /// replace with call to update Rushing Yards from group 5
           break;
       case 99:
           break;
       default:
           cout << "Invalid selection." << endl;
       }
   } while (choice != 99);
   char response;
   cout << "Would you like to save data: (y,Y/n,N) ";
   cin >> response;
   cout << endl;
   if (response == 'y' || response == 'Y')
       saveData(outFile, bigGiants, num);
   inFile.close();
   outFile.close();
   return 0;
}
/// If file cannot be opened, a 1 is returned.
/// Parameter: ifstream
int openFile(ifstream& in) {
   string filename;
   cout << "Please enter football data file name: ";
   cin >> filename;
   in.open(filename.c_str());
   if (!in)
   {
       cout << filename << " input file does not exist. Program terminates!" << endl;
       return 1;
   }
   return 0;
}
/// Function requests file name from the user and opens file.
/// Post condition: If no error encountered, file is opened.
/// If file cannot be opened, a 0 is returned.
/// Parameter: ofstream
int openOutFile(ofstream& out) {
   string filename;
   cout << "Please enter the name of the output file: ";
   cin >> filename;
   out.open(filename.c_str());
   if (!out)
   {
       return 0;
   }
   return 1;
}
void showMenu()
{
   cout << "Select one of the following options:" << endl;
   cout << "1: To print a player's data" << endl;
   cout << "2: To print the entire data" << endl;
   cout << "3: To update a player's touch downs" << endl;
   cout << "4: To update a player's number of catches" << endl;
   cout << "5: To update a player's passing yards" << endl;
   cout << "6: To update a player's receiving yards" << endl;
   cout << "7: To update a player's rushing yards" << endl;
   cout << "99: To quit the program" << endl;
}
/// Reads data into the structure array
/// Precondition: ifstream is open, howMany initialized to 0
/// Postcondition: the structure array contains data from the input file
/// the howMany parameter contains the number of rows read
/// Parameters: ifstream, structure array, int file read counter
void getData(ifstream& inf, footBallPlayerType list[], int& howMany)
{
   howMany = 0;
   while (inf)
   {
       inf >> list[howMany].name >> list[howMany].position >> list[howMany].touchDowns >> list[howMany].catches >> list[howMany].passingYards >> list[howMany].receivingYards >> list[howMany].rushingYards;
       howMany++;
   }
}

/// Prints statistics for a selected player
/// Precondition: structure array contains data, length contains number of
void printPlayerData(footBallPlayerType list[], int length, int playerNum)
{
   if (0 <= playerNum && playerNum < length)
       cout << "Name: " << list[playerNum].name
       << " Position: " << list[playerNum].position << endl
       << "Touch Downs: " << list[playerNum].touchDowns
       << "; Number of Catches: " << list[playerNum].catches << endl
       << "Passing Yards: " << list[playerNum].passingYards
       << "; Receiving Yards: " << list[playerNum].receivingYards
       << "; Rushing Yards: " << list[playerNum].rushingYards << endl << endl;
   else
       cout << "Invalid player number." << endl << endl;
}
void printData(footBallPlayerType list[], int length)
{
   cout << left << setw(15) << "Name"
       << setw(14) << "Position"
       << setw(12) << "Touch Downs"
       << setw(9) << "Catches"
       << setw(12) << "Pass Yards"
       << setw(10) << "Rec Yards"
       << setw(12) << "Rush Yards" << endl;
   for (int i = 0; i < length; i++)
       cout << left << setw(15) << list[i].name
       << setw(14) << list[i].position
       << right << setw(6) << list[i].touchDowns
       << setw(9) << list[i].catches
       << setw(12) << list[i].passingYards
       << setw(10) << list[i].receivingYards
       << setw(12) << list[i].rushingYards << endl;
   cout << endl << endl;
}
/// Saves updated data to file name entered by user
/// Precondition: structure array contains data, length of array is filled
/// Postcondition: If requested file is opened, updated data is written to the
/// Parameters: ofstream, structure array, int length of array
void saveData(ofstream& outF, footBallPlayerType list[], int length)
{
   int ret;
   ret = openOutFile(outF);
   if (!ret) {
       cout << "Output file did not open...data will not be output to a file. " << endl;
       return;
   }
   for (int i = 0; i < length; i++)
       outF << list[i].name
       << " " << list[i].position
       << " " << list[i].touchDowns
       << " " << list[i].catches
       << " " << list[i].passingYards
       << " " << list[i].receivingYards
       << " " << list[i].rushingYards << endl;
}
/// Finds a football player by name
int searchData(footBallPlayerType list[], int length, string n)
{
   for (int i = 0; i < length; i++)
       if (list[i].name == n)
           return i;
   return -1;
}

I need help with my errors

The header file below

#include <iostream>#include <fstream>#include <string>#include <iomanip>using namespace std;struct footBallPlayerType{ string name; string position; int touchDowns; int catches; int passingYards; int receivingYards; int rushingYards;};const int MAX = 30;int openFile(ifstream&);int openOutFile(ofstream& out);void showMenu();void getData(ifstream& inf, footBallPlayerType list[], int& length);void printPlayerData(footBallPlayerType list[], int length, int playerNum);void printData(footBallPlayerType list[], int length);void saveData(ofstream&

In: Computer Science

With the majority of health-care costs spent for the treatment of chronic diseases (High BP, Dibetes...

With the majority of health-care costs spent for the treatment of chronic diseases (High BP, Dibetes & HIV) and the reason for most emergency room visits being non-emergencies, the time is ripe for telemedicine in South Africa. More so with Covid-19 pandemic, patients are reluctunt to visit a hospital for non-emergencies. Patients are using their phones, tablets, and keyboards instead of making an office visit or trip to the emergency room. Technology makes it possible for doctors to consult with patients through Skype or FaceTime on smartphones, access medical tests via electronic medical records, and send a prescription to a patient’s local pharmacy—all from miles away. The telemedicine industry is still in its infancy, earning only $868 million in annual revenue in 2017, but it is predicted to increase to an almost $56 billion industry by 2023. It is expected to exhibit a CAGR of 17% from 2018 to 2023 (forecast period). Technology isn’t the only reason for this industry’s growth such as adoption of electronic health records (EHR) by hospitals is one of the primary drivers of the market. The legislation suport by Governements that are encouraging electronic medical records is also adding fuel to this fire. In order to ensure health care services are still being provided during the national period of shut down and during the Covid- 19 pandemic and to achieve the objectives of “The Allied Health Professions Act” (63) was amended on 25 March 2020 by President Cyril Ramaphosa that allows to practice telehealth and/or telemedicne for medical professionals.

Based on the scenario given above, critically discuss pros and cons of offering medical services with help of telemedicine. Critically discuss the marketing decisions that may be used in the selected product life cycle of telemedicine? Critically evaluate the role of mobile technology and artificial intelligence (AI) in the evolution of this industry and predict future trajectory? Justify your response.

In: Operations Management

Draft a spreadsheet showing financial history and projected performance for Nordstrom. The rows should include revenue,...

Draft a spreadsheet showing financial history and projected performance for Nordstrom. The rows should include revenue, expenses, calculated profit, and calculated profit margin. The columns should represent years: two years of history, plus three years of your reasonable future projections. Include a few sentences of key assumptions and conclusions. The spreadsheet must have accurate calculations and look professional on screen and when printed (including a heading and meaningful number formatting).

Income Statement

All numbers in thousands

Revenue 2/2/2019 2/3/2018 1/28/2017 1/30/2016
Total Revenue 15,860,000 15,478,000 14,757,000 14,437,000
Cost of Revenue 10,155,000 9,890,000 9,440,000 9,333,000
Gross Profit 5,705,000 5,588,000 5,317,000 5,104,000
Operating Expenses
Research Development - - - -
Selling General and Administrative 4,796,000 4,662,000 4,315,000 3,957,000
Non Recurring - - - -
Others - - - -
Total Operating Expenses 14,951,000 14,552,000 13,755,000 13,290,000
Operating Income or Loss 909,000 926,000 1,002,000 1,147,000
Income from Continuing Operations
Total Other Income/Expenses Net -176,000 -136,000 -318,000 -171,000
Earnings Before Interest and Taxes 909,000 926,000 1,002,000 1,147,000
Interest Expense -119,000 -141,000 -122,000 -112,000
Income Before Tax 733,000 790,000 684,000 976,000
Income Tax Expense 169,000 353,000 330,000 376,000
Minority Interest - - - -
Net Income From Continuing Ops 564,000 437,000 354,000 600,000
Non-recurring Events
Discontinued Operations - - - -
Extraordinary Items - - - -
Effect Of Accounting Changes - - - -
Other Items - - - -
Net Income
Net Income 564,000 437,000 354,000 600,000
Preferred Stock And Other Adjustments - - - -
Net Income Applicable To Common Shares 564,000 437,000 354,000 600,000

In: Finance

Assuming all else is equal, which of the following loans is most likely to have the...

Assuming all else is equal, which of the following loans is most likely to have the lowest total interest cost?

Secured non-amortizing loan

Secured amortizing loan

Unsecured amortizing loan

Unsecured non-amortizing loan

In: Accounting

Discussion Question: Do you agree with California public policy against non compete agreements? As a current...

Discussion Question: Do you agree with California public policy against non compete agreements? As a current of future business owner, under what scenarios would you find it to be advantageous to have an enforceable non compete agreement?

In: Economics

go online and find and depict new non-profit organizations since 2010. do you think the recent...

go online and find and depict new non-profit organizations since 2010. do you think the recent rapid growth of new non-profits entering the industry is a good or bad thing or both? explain your answer.

In: Economics

A survey of 500 non-fatal accidents showed that 141 involved uninsured drivers. A. Construct a 99%...

A survey of 500 non-fatal accidents showed that 141 involved uninsured drivers. A. Construct a 99% confidence interval for the proportion of non-fatal accidents that involved uninsured drivers. Round to the nearest thousandth.

B. Interpret the confidence interval.

In: Statistics and Probability