Questions
Code the following in C++ and make sure to include all three files required at the...

Code the following in C++ and make sure to include all three files required at the end.

Hotdogs – The World’s Greatest Cost Effective Wholesome Nutritious Food
Due to world food supply scarcity and the burgeoning populations of the world’s countries, your hot stand business is
globalizing to satisfy the world’s desire for a cost effective wholesome nutritious food source. Market studies have
shown that tens of billions of people are craving for the eponymous hotdog which will result in a huge number of hotdog
sales from hotdog stands. You need to develop a program that tracks the activities of all the hotdog stands.
HotDogStandsClass
Define a class named HotDogStandsClass.
This class has the following for private member instance variables:
• Hotdog stand Identification
Each stand should have a unique identification
• Stand Location
A string that is the address of the stand which includes street, city and country.
For examples:
12 Deepika Padukone Ci, Bangelore, Karnataka 67089, India
1038 West Nanjing Rd, Westgate Mall, 8th Floor, Shanghai, Shanghai 200041, China
123 Jennifer Dr, UTD Food Court, 2nd Floor, Richardson Texas, 66666, USA
• Cost per hotdog
Cannot be negative, must be 0 or greater.
• Total Hot Dogs Sold Across All Stands
Cannot be negative, must be 0 or greater.
• Hotdogs Inventory Amount
The lowest value the inventory can be is 0. Negative inventory amounts do not make sense.
• Hotdogs Sold Count
This contains how many hot dogs this stand has sold since the stand object was created.
The HotDogStandsClass Class must include the following methods
• A constructor with parameters that sets all the instance values
• Accessor (Getter) and Setter methods that are required for all private member instance variables
• hotDogsBuy(n) method
• The method will be invoked each time someone (your main method test driver) wants to buy some hotdog(s).
• Has a parameter (n) that indicates the requested amount of hotdogs to be bought
• If the inventory is 0, the method should display a message that there are no more hotdogs left to be sold.
The method uses the amount of the hot dogs requested to:
• Increase the hog dogs total number sold for all the stands by the hotDogsBuy(n) parameter amount
It must be accessible to all the HotDogStandsClass objects.
• Increase the tracked hot dogs sold by the appropriate numberfor each stand
• Decrease the hot dog inventory by the appropriate number
• This method should be intelligent regarding the inventory.
The lowest value the inventory can be is 0. Negative inventory amounts do not make sense.
If the buy amount is more than the inventory, the class should state the number of hotdogs in inventory and
state to retry a buy.
If inventory amount is 0, the class should state that it is out of hotdogs and to try again later.
hopefully before a buy retry a stock inventory will be done.
• a stockInventory(n) method that is used to add inventory
Has a parameter (n) that indicates the requested number of hotdogs to be stocked

main()
This main program has the following:
The main program must create and use at least three hot dog stand objects of the HotDogStandsClass.
Write a main() test driver, a concept that is demonstrated in the book, to test the HotDogStands program. The main
test driver must test all paths of the logic flow of the program and conditions of the program to validate program
correctness.
Do not use any interactive prompts, unit test the HotdogStandsClass by coding in test scenarios in the main program
which will act as a test driver.
The main unit test driver must display information that indicates what is being tested with the test values being used
and after perfoming the hotdog stand operatiomn will display the state of the HotDogStandClass.
To accomplish this display of the class state, you should develop an overloaded stream output operator that displays a
well formatted string of object state (contents) that is well suited to being displayed using cout.
The output must be well formatted and readable to the user running the program. The main test unit driver does not
have to output if the test passed or failed, just what is being tested in the object of the class for each test and the class
state using the overloaded stream output operator (<<).
Use the following code to pause the screen:
#include <stdio.h>
:
cout << "Press the enter key to continue..." << endl; cin.ignore(); cin.get();
There is a system dependency that may require hitting the key twice for correct behavior.
Example:
HotDogStandClass hotdogstand1;
cout << “ buy 20 hot dogs “ << endl;
hotdogstand1.buy(20);
cout << hotdogstand1 << endl;
cout << “Press enter to continue”; cin.ignore(); cin.get();
You will lose points if the main function does not do comprehensive path testing of the program.
Before the program ends, the main part should display the total amount sold and display the final states of each of the
objects of the HotDogStandsClass.
The program must hold the screen for each unit test so that the class information can read.
Your program must use the class specification and class implementation design paradigms.
Therefore, you will have multiple files to upload for submittal to the eLearning system:
main.cpp
HotDogStandsClass.h
HotDogStandsClass.cpp

In: Computer Science

In C++ fill in the comments the easiest to get the program work and get this...

In C++ fill in the comments the easiest to get the program work and get this output.

Sample Output

Please input the x: 2.5

Please input the y: -5

Please input the x: 3

Please input the y: 7.5

You entered: ( 2.5, -5 ) and ( 3, 7.5 )

point3 is ( 2.5, -5 )

Press any key to continue . . .

#include <iostream>   // For cout and cin
#include <iomanip>    // For formatting output, e.g. setprecision
#include <string>     // For using string data type

using namespace std; // Avoid need to use std:: qualification on cout and other things

class Point {

private:
    // WRITE declarations of x and y as doubles
    // x and y coordinates of the point

public:
    // WRITE declaration of getX, getY, setX, setY, readCoords, and printCoords
    // WRITE definitions of these member functions after definition of main().

    // getX - Get the value of the x member variable
        
    // getY - Get the value of the y member variable

    // setX - Set the value of the x member variable

    // setY - Set the value of the y member variable
       
    // readCoords - Fill in the x, y values with user input

    // printCoords - Display in format ( x, y )
  
    // For Future Lab:
    // double getSlope( Point );      // Determine slope between this point and another point

    // For Future Lab:
    // Point getMidpoint( Point );    // Determine midpoint between this point and another point

};

int main()
{
    // Do "Press any key to continue..." on exit
    atexit([] {system("pause"); });

    Point point1; // Two points for testing methods
    Point point2; //
  
    // Obtain values for points from user.
    point1.readCoords();
    point2.readCoords();

    // Show the values on the console.
    cout << "You entered: ";
    point1.printCoords();
    cout << " and ";
    point2.printCoords();
    cout << endl;

    // Create a point3 that is a pointer to a Point object.
    // Initialize point3 to a Point object that you allocate using the new operator.
    // Set its x and y from point1, and print its coords.
    // Finally, delete the object.
    // WRITE code for point3 here.
  
  
    // For future lab: Report the slope of the line connecting the points.
    //cout << "The slope between them is " << point1.getSlope(point2) << endl;

    // For future lab: Report the midpoint of the line connecting the points.
    //cout << "The midpoint between them is ";
    //point1.getMidpoint(point2).printCoords();
    //cout << endl;

    return 0;
}

// =================================================================
// getX()
//    return the value of the x attribute
//
// Purpose: Provide the user with access to the x value
// Input:   none
// Output: returns the value of the objects x data member
//
// YOU WRITE THIS
}

// =================================================================
// getY()
//    return the value of the y attribute
//
// Purpose: Provide the user with access to the y value
// Input:   none
// Output: returns the value of the objects y data member
//
// YOU WRITE THIS


// =================================================================
// setX()
//    sets the value of the x attribute
//
// Purpose: Allows the user to change the x value
// Input:   the new x value
// Output: none
//
// YOU WRITE THIS


// =================================================================
// setY()
//    sets the value of the y attribute
//
// Purpose: Allows the user to change the y value
// Input:   the new y value
// Output: none
//
// YOU WRITE THIS

// =================================================================
// readCoords()
//    fill in the x,y with user input.
//
// Purpose: Asks the user for the x,y coordinates and
//            sets the values into the object.
// Input:   none
// Output: none
//
void Point::readCoords {
    // YOU WRITE THIS
} // end readCoords()


// =================================================================
// printCoords()
//    display in format (x,y))
//
// Purpose: Display the x and y attributes on the console in the format ( x, y )).
// Assume: x,y have been initialized.
// Input:   none
// Output: none
//
void Point:: printCoords() {
    // YOU WRITE THIS
} // end printCoords())


/*
// =================================================================
// getSlope()
// Calculate the slope between two points
//
// Purpose: Given a second point, calculates and returns the
// value of the slope between those two points as defined by
//        m = ( y2 - y1 ) / ( x2 - x1 )
// Assume: This point, and the other point, have both been initialized.
// Input:   A second point object
// Output: Returns the slope of the line segment between them.
//
double Point::getSlope( Point other ) {
// YOU WRITE THIS (for future lab)
// Note: x1 and y1 are the x and y in this object
//       while x2 and y2 are the x and y in the parameter other.
    return 0.0;
} // end getSlope()

// =================================================================
// getMidpoint())
// Determine midpoint between two points
//
// Purpose: Calculate the midpoint between points in 2 point objects.
//   The midpoint is defined by ( (x1+x2)/2.0, (y1+y2)/2.0 ).
// Assume: This point, and the other point, have both been initialized.
// Input:   A second point object
// Output: Returns the point that is the midpoint between them.

Point Point::getMidpoint( Point other ) {
    Point midpoint; // between this point and 'other'

    // Initialize midpoint so that code compiles without errors before
    // implementing this function.
    midpoint.x = 0.0;
    midpoint.y = 0.0;
  
    // YOU WRITE THIS (for future lab)
    // Note: x1 and y1 are the x and y in this object
    //       while x2 and y2 are the x and y in the parameter other.
    return midpoint;
  
} // end getMidpoint()
*/

In: Computer Science

Can you fix my code and remove the errors in java language. public class LinkedStack<T> implements...

Can you fix my code and remove the errors in java language.

public class LinkedStack<T> implements Stack<T> {

private Node<T> top;

private int numElements = 0;

public int size() {

return (numElements);

}

public boolean isEmpty() {

return (top == null);

}

public T top() throws StackException {

if (isEmpty())

throw new StackException("Stack is empty.");

return top.info;

}

public T pop() throws StackException {

Node<T> temp;

if (isEmpty())

throw new StackException("Stack underflow.");

temp = top;

top = top.getLink();

return temp.getInfo();

}

public void push(T item) {

Node<T> newNode = new Node();

newNode.setInfo(item);

newNode.setLink(top);

top = newNode;

}

@Override
public T peek() throws StackException {
return null;
}

@Override
public void clear() {

}

@Override
public int search(T item) {
return 0;
}

}

////////////////////////////////////////////////////

public interface Stack<T> {

public int size(); /* returns the size of the stack */ public boolean isEmpty(); /* checks if empty */

public T top() throws StackException;

public T pop() throws StackException;

public void push(T item) throws StackException;

public T peek() throws StackException;

public void clear();

public int search(T item);

}


class StackException extends RuntimeException {

public StackException(String err) {

super(err);

}

}

}

//////////////////////////////////////////////////

public class Node<T> {

public T info;

private Node<T> link;

public Node() { }

public Node (T info, Node<T> link) {

this.info = info;

this.link = link;

}

public void setInfo(T info) {

this.info = info;

}

public void setLink(Node<T> link) {

this.link = link;

}

public T getInfo() {

return info;

}

public Node<T> getLink() {

return link;

}

}

postfixExpression = empty String

operatorStack = empty stack

while (not end of infixExpression) {

symbol = next token

if (symbol is an operand)

concatenate symbol to postfixExpression

else { // symbol is an operator

while (not operatorStack.empty() &&

precedence(operatorStack.peek(),symbol) { topSymbol = operatorStack.pop();

concatenate topSymbol to postfixExpression;

} // end while

if (operatorStack.empty() || symbol != )’'/U2019' ) operatorStack.push(symbol);

else // pop the open parenthesis and discard it topSymbol = operatorStack.pop();

} // end else

} // end while

// get all remaining operators from the stack

while (not operatorStack.empty) {

topSymbol = operatorStack.pop();

concatenate topSymbol to postfixExpression

} // end while

return postfixExpression

//////////////////////////////////////////////////

import java.util.*;
class StackLinklist {
Node head=new Node(); //head pointer of linked list

public boolean isEmpty() //check whether stack empty or not
{
if(head == null)
return true;
return false;
}

public void push(char x) //add element eo stack
{
Node t=new Node();
if (t != null) {
t.op=x;
t.next=head;
head=t;
}
else{
System.out.print("Stack overflow"); //heap overflow
return;
}
}

public char topmost() // return top most caharater of stack
{
if (!isEmpty()) {
return head.op;
}
else {
System.out.println("Stack is empty");
return '\0';
}
}


public char pop() // remove the element
{
// underflow
if (head == null) {
System.out.print("\nStack Underflow");
return '\0';
}
char chp=head.op;
head = (head).next;
return chp;
}


private class Node { // class of linked list which denotes eac node
char op;
Node next;
}

}
class InfixTOPostfixConversion
{


static String infixToPostfix(String str)
{
String r ="";
StackLinklist stack = new StackLinklist();
for (int i = 0; i<str.length(); ++i)
{
char c = str.charAt(i);
if (c == '(') //if opening bracket occur,add it into stack
stack.push(c);

else if (c == ')') //case for closing bracket
{
while (!stack.isEmpty() && stack.topmost() != '(')
r+= stack.pop();

if (!stack.isEmpty() && stack.topmost() != '(')
return "invalid expression";
else
stack.pop();
}

// case of operands
else if((c>='a' && c<='z') || (c>='A' && c<='Z') || (c>='0' &&c<='9'))
r+=c;

else // case of operators, operartors will be poped baed on precedence
{
while (!stack.isEmpty() && Precedence(stack.topmost()) >= Precedence(c)){
if(stack.topmost() == '(')
return "invalid expression";
else
r+= stack.pop();
}
stack.push(c);
}

}
while (!stack.isEmpty()){
if(stack.topmost() == '(')
return "invalid expression";
r+= stack.pop();
}
return r;
}


public static void main(String[] args)
{
Scanner ob=new Scanner(System.in);
while(true){
int flag=0;
System.out.println("press 1 to enter infix string, press 2 to exit");
int n=ob.nextInt();
switch(n){
case 1:
System.out.println("Enter the infix expression");
ob.nextLine();
String s=ob.nextLine();
String r=infixToPostfix(s);
if(r.equals("invalid expression"))
System.out.println(r);
else
System.out.println("Postfix Expression of given expression is "+r);
break;
case 2:
flag=1;
break;
default:
System.out.println("please enter avalid input");
}
if(flag==1)
break;
System.out.println();
System.out.println();
}

}

static int Precedence(char ch) // function for deciding operator precedence
{
int p=-1;
if(ch=='^'){
p=1000;
}
else if(ch=='*'){
p=500;
}
else if(ch=='/'){
p=500;
}
else if(ch=='+'){
p=100;
}
else if(ch=='-'){
p=100;
}
return p;
}
}

In: Computer Science

Estimate how many deaths there are annually from tornado and drowning in the United States. Provide...

Estimate how many deaths there are annually from tornado and drowning in the United States. Provide an actual number in your answer and explain statistically how you came to that answer.

Info:

DROWNINGS:

From 2005-2014, there were an average of 3,536 fatal unintentional drownings (non-boating related) annually in the United States — about ten deaths per day.1 An additional 332 people died each year from drowning in boating-related incidents.

TORNADOS:

Year tornado deaths
1875 183
1876 51
1877 64
1878 102
1879 85
1880 256
1881 73
1882 200
1883 292
1884 252
1885 58
1886 129
1887 60
1888 48
1889 32
1890 244
1891 36
1892 114
1893 294
1894 124
1895 30
1896 537
1897 60
1898 162
1899 227
1900 101
1901 52
1902 157
1903 216
1904 87
1905 184
1906 70
1907 80
1908 477
1909 404
1910 12
1911 55
1912 175
1913 346
1914 41
1915 84
1916 150
1917 551
1918 136
1919 206
1920 499
1921 202
1922 135
1923 110
1924 376
1925 794
1926 144
1927 540
1928 95
1929 274
1930 179
1931 36
1932 394
1933 362
1934 47
1935 71
1936 552
1937 29
1938 183
1939 91
1940 65
1941 53
1942 384
1943 58
1944 275
1945 210
1946 78
1947 313
1948 139
1949 211
1950 70
1951 34
1952 230
1953 519
1954 36
1955 129
1956 83
1957 193
1958 67
1959 58
1960 46
1961 52
1962 30
1963 31
1964 73
1965 301
1966 98
1967 114
1968 131
1969 66
1970 73
1971 159
1972 27
1973 89
1974 366
1975 60
1976 44
1977 43
1978 53
1979 84
1980 28
1981 24
1982 64
1983 34
1984 122
1985 94
1986 15
1987 59
1988 32
1989 50
1990 53
1991 39
1992 39
1993 33
1994 69
1995 30
1996 25
1997 67
1998 130
1999 94
2000 41
2001 40
2002 55
2003 54
2004 35
2005 39
2006 67
2007 81
2008 126
2009 21
2010 45
2011 553
2012 70

In: Statistics and Probability

Assume you are a Data Analyst in an international economic consultancy firm. Your team leader has...

Assume you are a Data Analyst in an international economic consultancy firm. Your team leader has given you a research task to investigate the empirical relationship between China’s export volumes and per capita GDP (Gross Domestic Product).
Relevant Variables: China’s Export volume index and China’s GDP per capita (constant 2010 US$).
(Annual time series data (for the period 1980 – 2018) from the World Bank - World development indicators database)
The data are stored in the file named “ASSIGNMENTDATA.XLSX” in the course website. Using EXCEL, answer below questions:
1. Using an appropriate graphical descriptive measure (relevant for time series data) describe the two variables (1 mark)
2. Use an appropriate plot to investigate the relationship between Export volume index and GDP per capita. Assume Export volume index as an independent variable. Interpret the plot.
3. Prepare a numerical summary report about the data on the two variables by including the summary measures, mean, median, range, variance, standard deviation, coefficient of variation, smallest and largest values, and the three quartiles, for each variable.
4. Calculate the coefficient of correlation (r) between Export volume index and GDP per capita. Then, interpret it.
Page 3 of 4

5. Estimate a simple linear regression model and present the estimated linear equation. Then, interpret the coefficient estimates of the linear model.
6. Determine the coefficient of determination R2 and interpret it.
7. Test whether GDP per capita positively and significantly increases with
export volume index at the 5% significance level.
8. What is the value of the standard error of the estimate (se). Then,
comment on the fitness of the linear regression model? (1 mark)

Country Name China
Year
Export volume index
GDP per capita (constant 2010 US$)
1980 7.190964398 347.1200879
1981 8.743517899 360.4279678
1982 9.428373444 386.8903417
1983 10.25153246 422.6591909
1984 12.34004595 480.3028638
1985 12.61492904 537.5026526
1986 15.52047929 576.9087566
1987 18.40145453 634.092911
1988 21.66725703 694.0647918
1989 22.42809652 712.1153633
1990 25.6864244 729.1606454
1991 29.44489072 786.1296588
1992 34.0846619 886.9503589
1993 37.95357331 998.4047893
1994 48.55720035 1116.032535
1995 56.85936289 1224.848821
1996 56.64713312 1332.417309
1997 67.91726097 1440.59025
1998 70.88444114 1538.662844
1999 77.44729803 1642.357488
2000 100 1767.833627
2001 109.694188 1901.40763
2002 138.6582488 2061.162284
2003 182.785201 2253.929689
2004 226.8347239 2467.132843
2005 283.6441931 2732.16588
2006 346.1719795 3062.534905
2007 414.8560285 3480.152725
2008 450.2958821 3796.633363
2009 403.192961 4132.902312
2010 516.4926068 4550.453596
2011 561.8922874 4961.234689
2012 596.8391727 5325.160106
2013 647.4202795 5710.587873
2014 684.4722854 6096.487817
2015 680.5921485 6484.435948
2016 690.2482661 6883.895425
2017 738.9259384 7308.065366
2018 769.5482696 7754.962119

In: Statistics and Probability

The following scenarios are based on actual returns and situations that have occurred in this years...

The following scenarios are based on actual returns and situations that have occurred in this years VITA program. The responses provided here would be similar to those you would provide to actual taxpayers in the event a similar situation would occur.

Scenario

Inez Sanchez, age 49, ITIN # 933-12-1987 is married but has been separated from her husband since March 3, 2017. She is a housekeeper for Acme Hotels Inc. She has four daughters, all born and raised in the U.S. who lived with her the entire year who she fully supports. No one had any health insurance for the entire year

Name Date of Birth Social Security Number Earnings

Polet Sanchez 09/09/2006 454-11-2222 $0

Jessica Sanchez 07/07/2004 453-11-2222 $0

Stephanie Sanchez 05/05/2002 452-11-2222 $0

Juanita Sanchez 03/03/1995 451-11-2222 $8000

For legal reasons, she tells you that she wants to file a paper return. She also wants her refund mailed to her.

Inez’s Refund for 2019 was $4,600.

After completing Inez’s return, she mentions to you that many of her friend’s and co-workers who make about the same amount of money and have the same number of children got almost double of what she is getting?

Obviously, one of the major reasons is that she has an ITIN number and not a social security number which does not make her eligible for EIC. Another reason is because she has a child who is over 24 and makes more than $4250. Lastly she has a child who turned 17 in 2019 and is no longer eligible for the child tax credit

As usual the taxpayer is upset and believes that the return was not completed correctly. As the tax preparer or quality reviewer, your job is to explain to the taxpayer why your work is correct and why this changed occur

In the preparation process, all UIW-VITA procedures were followed and the results of your return are 100% accurate.

Instructions

For the purposes of this scenario, you must explain to Inez why her refund is the way it is. As the tax preparer or quality reviewer, your job is to explain to the taxpayer why your work is correct and why this return resulted in the refund that it did. Remember, you are dealing with a taxpayer who is unhappy with your work. For this assignment, you are not required to re-explain to me the results of the return again. Rather, I am looking for a procedure you would use to assure the taxpayer the result of your work are accurate. Remember, all of the policies and procedures that were used in the preparation process. Be creative.

P. S- This is a class related to tax in USA.

In: Accounting

using Linux please fill in the blanks : telnos files:

 

using Linux please fill in the blanks :

telnos files:

telnos

telnos2

Hale Elizabeth Bot   744-6892
Harris Thomas Stat 744-7623
Davis Paulette Phys 744-9579
Cross Joseph   MS    744-0320
Holland Tod    A&S   744-8368

Hale Elizabeth Bot   744-6892
Harris Thomas Stat 744-7623
Davis Paulette Phys 744-9579
Holland Tod    A&S   744-8368

telnos3

telnos 4

Hale Elizabeth Bot   744-6892
Harris Thomas Stat 744-7623
Smith John     Comsc 744-4444
Davis Paulette Phys 744-9579
Cross Joseph   MS    744-0320
Holland Tod    A&S   744-8368

Hale Elizabeth Bot   744-6892
Smith John     Comsc 744-4444
Davis Paulette Phys 744-9579
Cross Joseph   MS    744-0320
Holland Tod    A&S   744-8368

The file books contains the following information:

Subject

Book Title

Author's

Last Name

Author's

First Name

Pub.

Date

Price

UNIX:

Introduction to UNIX:

Wrightson:

Kate:

2003:

45.00:

UNIX:

Just Enough UNIX:

Anderson:

Paul:

2003:

39.00:

UNIX:

Bulletproof UNIX:

Gottleber:

Timothy

2002:

48.00:

UNIX:

Learning the Korn Shell:

Rosenblatt:

Bill:

1994:

35.95:

UNIX:

A Student's Guide to UNIX:

Hahn:

Harley:

1993:

24.50:

UNIX:

Unix Shells by Example:

Quigley:

Ellie:

1997:

49.95:

UNIX:

UNIX and Shell Programming:

Forouzan:

Behrouz:

2002:

80.00:

UNIX:

UNIX for Programmers and Users:

Glass:

Graham:

1993:

50.00:

SAS:

SAS Software Solutions:

Miron:

Thomas:

1993:

25.95:

SAS:

The Little SAS Book, A Primer:

Delwiche:

Lora:

1998:

35.00:

SAS:

Painless Windows for SAS Users:

Gilmore:

Jodie:

1999:

40.00:

SAS:

Getting Started with SAS Learning:

Smith:

Ashley:

2003:

99.00:

SAS:

The How to for SAS/GRAPH Software:

Miron:

Thomas:

1995:

45.00:

SAS:

The Output Delivery System:

Haworth:

Lauren:

2001:

48.00:

SAS:

Proc Tabulate by Example:

Haworth:

Lauren:

1999:

42.00:

SAS:

SAS Application Programming:

Dilorio:

Frank:

1991:

35.00:

SAS:

Applied Statistics & SAS Programming:

Cody:

Ronald:

1991:

29.50:

issue the command:

        sort -n -t: +4 books

What is the result? ________________________________________________________________________________________________________________________________________________

Try another sort using the books file. Sort on the price field in reverse. Type in the following:

        sort -nr -t: +5 books

What was the result? _______________________________________________________________________________________________________________________________________________

Type in:

        sort -t: +0 +1 books > newbooks

What does the sorted file look like now?

__________________________________________________________________________________________________________________________________________________________________

. Issue the command:

               grep -n H telnos

What was printed? ________________________________________________________________________________________________________________________________________________________________________________________________________________________

Issue the command:

              grep -ni m telnos

What was printed this time?___________________________________________________________________________________________________________________________________________________________________________________________________________________

In: Computer Science

Year Q (millions of lbs) P Beef Per Lb ($) P Pork Per lb ($) Disp...

Year Q (millions of lbs) P Beef Per Lb ($) P Pork Per lb ($) Disp Inc (millions $) Pop (millions)
1975 19295 1.9 1.864 517250 182.76
1976 17535 2.312 1.944 566500 185.88
1977 19520 2.208 1.972 708250 189.12
1978 25622.5 1.68 2.072 631500 192.12
1979 26530 1.68 2.128 643500 195.6
1980 27745 1.64 1.776 688250 199.08
1981 29805 1.568 1.732 733000 202.68
1982 28950 1.648 1.916 771250 206.28
1983 26932.5 1.868 2.092 796250 209.88
1984 27592.5 1.892 1.792 843250 213.36
1985 30162.5 1.804 1.884 875000 216.84
1986 31530 1.708 1.916 911000 220.44
1987 31397.5 1.856 1.9 963250 223.8
1988 34122.5 1.668 1.772 1011500 227.04
1989 39107.5 1.592 1.772 1095250 230.28
1990 39987.5 1.732 2.128 1183000 233.16
1991 41775 1.768 2.276 1279750 235.92
1992 43130 1.804 2.06 1365750 238.44
1993 45675 1.892 2.036 1477500 240.84
1994 47185 1.968 2.3 1586000 243.24
1995 48722.5 1.96 2.276 1729250 245.88
1996 49242.5 2.188 1.992 1866000 248.4
1997 51277.5 2.304 2.58 2006250 250.56

Assignment 4.2 Beef Demand Model
A meat packing company hires you to study the demand for beef. The attached data are
supplied. Complete the following tasks, then open the quiz “4.2 Beef Demand” and
complete it.
1. Estimate the demand for beef as a function of the price of beef, the price of pork,
disposable income, and population. Label this as Model 1. Which independent
variables have a significant impact on the demand for beef?
2. The coefficient for the price of beef indicates that a one-dollar increase in price
leads to how large a decrease in quantity demanded?
3. Estimate the demand for beef as a function of the price of beef, the price of pork,
and per capita disposable income (per capita disposable income=[disposable
income/population]; you have to create this variable from the data). Label this as
Model 2. Which independent variables have a significant impact on the demand
for beef?
4. Which Model fits the data better? Comment on why, using statistics from the
regression model.
5. The meat packing company gives you the following assumptions: Price of
beef=$2; price of pork=$2.50; disposable income=$1,000,000; and
population=225. Given this information, use model 1 to complete the following:
a. Estimate of beef demand and a 95% confidence interval around this
estimate.
b. Estimate total revenue
c. Estimate the following elasticities: Price elasticity, Cross elasticity (that
is, elasticity with respect to Pork price), income elasticity, and population
elasticity.
d. Should the meat packing company increase or decrease the price of beef?
Why or why not?

In: Economics

back to top Question 1 Our Earth Pty Ltd, an Australian owned company, are the manufacturers...



back to top

Question 1

Our Earth Pty Ltd, an Australian owned company, are the manufacturers of a specially designed bio-degradable, disposable coffee cup made from sustainable materials.  They are currently the sole supplier to coffee shops in Australia.  During the year Our Earth Pty Ltd discovered that Coffee Bean Pty Ltd, the owner of a chain of coffee shops Australia wide, had been contracting an overseas company to manufacture a similar cup based on their design, for a cheaper price.  Coffee Bean Pty Ltd hadn’t informed its customers that it was not the original Australian made Our Earth product that they were using.  

As Our Earth Pty Ltd has a design patent over the cup they decided to take legal action against Coffee Bean Pty Ltd.  As a result of the action, the following amounts were payable by Coffee Bean Pty Ltd to Our Earth Pty Ltd in the year ended 30 June 2019:

$300,000 damages for design patent infringement$200,000 for expected lost revenue over the 12 month period that Coffee Bean Pty Ltd had been using the other product$15,000 interest received on the damages payout$40,000 reimbursement of legal fees incurred by Our Earth Pty Ltd

Required:

Advise Our Earth Pty Ltd of the taxation consequences of the above transactions .

Question 2

Sam purchased 80 acres of farmland in May 1984 for $270,000 on which he conducted a beef cattle breeding operation.  In February 1995 he purchased an additional 20 acres of adjoining farmland for $110,000 in order to expand his operation.  There was no house on the farmland so Sam lived in the nearby township. Due to ongoing drought conditions and Sam’s advancing age, he decided in 2017 to sell and retire from farming.  A local real estate agent valued the property at $440,000.  Given the time and effort Sam had put into the farm over the years he didn’t feel this was enough of a return on his investment. As the property was located close to town, the real estate suggested that Sam consider selling the land as a sub-division.  This would likely generate a higher return per acre than selling the property as farmland.

Sam re-zoned and received council approval for the sub-division in May 2017. Over the period from July 2017 to January 2018 Sam spent $450,000 on sub-division costs such as surveyor fees, electricity and water connections and main road access.  In April 2018 a local construction company agreed to buy the entire sub-division for $1,100,000.  Although the contract for sale was dated in April, settlement didn’t take place until July 2018.  Agent’s commission and legal fees payable by Sam amounted to $45,000.

Required:

Advise Sam of the taxation consequences of the above transactions .

In: Economics

Equipment Corporation incorporated was established on October 20, 1974. to comply with accounting requirements, the company...

Equipment Corporation incorporated was established on October 20, 1974. to comply with accounting requirements, the company uses an accrual method of accounting. Its accumulated earnings and profits as of December 31, 2016, were $1,200. It made cash distributions during its 2016 calendar tax year of $140,089. This consisted of $85,089 to preferred shareholders and $55,000 to common shareholders. The entire distribution to preferred shareholders is a taxable dividend. The $27,500 distribution on March 15, 2016, to common shareholders is a taxable dividend to extent of $27,318 (99.33%), and the $27,500 distribution on September 15, 2016, to common shareholders is a taxable dividend to the extent of $26,118 (94.97%).

The following profit and loss account appeared in the books of the Equipment Corporation for calendar year 2016. It is required to file Form 1120 and completes Form 1120-F (M-1 and M-2).

Account

Debit

Credit

Gross sales

$1,840,000

Sales returns and allowances

$20,000

Cost of goods sold

1,520,000

Interest income from:

Banks

$10,000

Tax-exempt state bonds

5,000

15,000

Proceeds from life insurance (death of corporate officer)

6,000

Bad debt recoveries (no tax deduction claimed)

3,500

Insurance premiums on lives of corporate officers (corporation is beneficiary of policies)

9,500

Compensation of officers

40,000

Salaries and wages

28,000

Repairs

800

Taxes

10,000

Contributions:

Deductible

$23,000

Other

500

23,500

Interest paid (loan to purchase tax-exempt bonds)

850

Depreciation

5,200

Loss on securities

3,600

Net income per books after federal income tax

140,825

Federal income tax accrued for 2016

62,225

Total

$1,864,500

$1,864,500

The corporation analyzed the retained earnings and the following items appeared in this account on its books.

Item

Debit

Credit

Balance, January 1

$225,000

Net profit (before federal income tax)

203,050

Reserve for contingencies

$10,000

Income tax accrued for the year

62,225

Dividends paid during the year

140,089

Refund of 1995 income tax

18,000

Balance, December 31

233,736

Total

$446,050

$446,050

The following items appear on page 1 of Form 1120.

Gross sales ($1,840,000 less returns and allowances of $20,000)

$1,820,000

Cost of goods sold

1,520,000

Gross profit from sales

$300,000

Interest income

10,000

Total income

$310,000

Deductions:

Compensation of officers

$40,000

Salaries and wages

28,000

Repairs

800

Taxes

10,000

Contributions (maximum allowable)

22,500

Depreciation

6,200

Total deductions

107,500

Taxable income

$202,500

  1. Please prepare Schedule M-1 for the Equipment Corporation using the financial information and the Form 1120 line items provided above.
  1. Please prepare Schedule M-2 for the Equipment Corporation using the retained earning information provided. To accurately calculate and support the ending balance, please complete a Retained Earnings Reconciliation Table.

In: Accounting