Comprehensive Problem 1-1
Patty Banyan is a single taxpayer, age 35, living at 543 Space Drive, Houston, TX 77099. Her Social Security number is 466-33-1234. For 2016, Patty has no dependents, and her W-2, from her job at a local restaurant where she parks cars, contains the following information:
| a Employee's social security
number
466-33-1234 |
OMB No. 1545-0008 | Safe, accurate, FAST! Use |
IRSe ~ file | Visit the IRS website at www.irs.gov/efile |
|||
| b Employer identification number
(EIN) 33-1235672 |
1 Wages, tips, other
compensation 19,600.00 |
2 Federal income tax
withheld 2,940.00 |
|||||
| c Employer's name,
address, and ZIP code Burger Box 1234 Mountain Road Houston, TX 77099 |
3 Social security wages 19,600.00 |
4 Social security tax
withheld 1,215.20 |
|||||
| 5 Medicare wages and tips 19,600.00 |
6 Medicare tax withheld 284.20 |
||||||
| 7 Social security tips | 8 Allocated tips | ||||||
| d Control number | 9 | 10 Dependent care benefits | |||||
| e Employee's first name and
initialLast nameSuff. Patty Banyan 543 Space Drive Houston, TX 77099 |
11 Nonqualified plans | 12a See instructions for box 12 | |||||
| f Employee's address and ZIP code | |||||||
| 13Statutory employee
Retirement plan Third-party sick pay
□ □ □ |
CodeD | $ | |||||
| 12b | |||||||
| 14 Other | Code | $ | |||||
| 12c | |||||||
| Code | $ | ||||||
| 12d | |||||||
| Code | $ | ||||||
| 15 State TX |
Employer's state ID number | 16 State wages, tips, etc. | 17 State income tax | 18 Local wages, tips, etc. | 19 Local income tax | 20 Locality name | |
| Form W-2 Wage and Tax
Statement Copy—To Be Filed With Employee's FEDERAL Tax Return. This information is being furnished to the Internal Revenue Service. |
2016 | Department of the Treasury—Internal Revenue Service | |||||
These wages are Patty's only income for 2016. Patty wants to donate $3 to the Presidential Election Campaign Fund. The election to donate does not affect tax liability in any way.
Click here to access the table tax to use for this problem.
Required:
Complete Form 1040EZ for Patty Banyan for the 2016 tax year.
Enter all amounts as positive numbers. If an amount box requires no entry or the amount is zero, enter "0".
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In: Finance
Discuss the major findings/rulings and selection/recruitment implications of the following select court cases.
*Griggs v. Duke Power (1971)
*US v. Georgia Power (1973)
*Spurlock v. United Airlines (1972)
*Watson v. Fort Worth Bank and Trust (1988)
*Rudder v. District of Columbia (1995)
*Frank Ricci et al. v. Hohn DeStefano et al. (2009)
*OFCCP v. Ozark Airlines (1986)
*Gross v. FBL Financial Services (2009)
In: Operations Management
Assessment Question Week 2: Production Possibility
Frontier
In 2017, Nepal production of rice and machinery in 2017 was
published by the Nepal Bureau of Statistics as indicated by the
table below.
Production in Nepal
P Q R
S T U V
W X Y Z
Rice (1000 tons) 0 10
26 37 45 50
55 59 66 77
80
Machinery (units) 90 89
85 80 75 70
65 60 50 30 0
Based on the table above, a production possibility frontier for
Nepal can be plotted as below:
Use the Nepal production table and production possibility frontier
to answer the following questions.
(a) Name positions B, V and D. Explain the implications
of each of the production positions (B, V, D) on Nepal’s
economy.
(b) Supposing Nepal is operating at level T what is the
opportunity cost of producing 10,000 more tons of rice? Also,
suppose Nepal is operating at X what is the opportunity cost of
producing 70 units of machinery?
(c) Use the graph below to answer the questions that
follow
(i) Suppose Nepal begins to manufacture fertilizers,
explain the impact of the discovery of fertilizers to Nepal’s
economy using PPF.
(ii) Supposing there is a discovery of steel in Nepal,
explain the impact of steel to the economy of Nepal using a
PPF.
(iii) The Minister of Finance in Nepal advices that in
order to increase rice production and machinery, each sector
requires USD 50 billion. Explain the impact of the budgetary
allocation on the economy of Nepal using PPF.
In: Economics
Problem: Clique
In this problem IS stands for Independent Set.
The usual IS problem, that we showed in class in NP-complete is as follows:
Input: Unidrected graph G(V, E) and number k, with 1 ≤ k ≤
n.
Output: YES if G has an independent set of containing at least k
vertices.
NO if all independent sets of G contain strictly less
than k vertices.
Definition: Let G(V, E) be an undirected graph and let V ′ be a proper subset of vertives of V : V ′ ⊂ V . We sat thay V is a clique of size k=|V′| if and only if, for all u∈V′ and for all u != v in V′ the edge{u,v}∈E.
Now define the Clique problem as follows:
Input: Unidrected graph G(V, E) and number k, with 1⌉ ≤ k ≤
n.
Output: YES if G has a clique containing at least k vertices.
NO if cliques of G contain strictly less than k
vertices.
Show that IS≤ pCLIQUE.
In: Statistics and Probability
In Simple Chat, if the server shuts down while a client is connected, the client does not respond, and continues to wait for messages. Modify the client so that it responds to the shutdown of server by printing a message saying the server has shut down, and quitting. (look at the methods called connectionClosed and connectionException).
//ChatClient.java
// This file contains material supporting section 3.7 of the textbook:
// "Object Oriented Software Engineering" and is issued under the open-source
// license found at www.lloseng.com
package client;
import ocsf.client.*;
import common.*;
import java.io.*;
/**
* This class overrides some of the methods defined in the abstract
* superclass in order to give more functionality to the client.
*
* @author Dr Timothy C. Lethbridge
* @author Dr Robert Laganiè
* @author François Bélanger
* @version July 2000
*/
public class ChatClient extends AbstractClient
{
//Instance variables **********************************************
/**
* The interface type variable. It allows the implementation of
* the display method in the client.
*/
ChatIF clientUI;
//Constructors ****************************************************
/**
* Constructs an instance of the chat client.
*
* @param host The server to connect to.
* @param port The port number to connect on.
* @param clientUI The interface type variable.
*/
public ChatClient(String host, int port, ChatIF clientUI)
throws IOException
{
super(host, port); //Call the superclass constructor
this.clientUI = clientUI;
openConnection();
}
//Instance methods ************************************************
/**
* This method handles all data that comes in from the server.
*
* @param msg The message from the server.
*/
public void handleMessageFromServer(Object msg)
{
clientUI.display(msg.toString());
}
/**
* This method handles all data coming from the UI
*
* @param message The message from the UI.
*/
public void handleMessageFromClientUI(String message)
{
try
{
sendToServer(message);
}
catch(IOException e)
{
clientUI.display
("Could not send message to server. Terminating client.");
quit();
}
}
/**
* This method terminates the client.
*/
public void quit()
{
try
{
closeConnection();
}
catch(IOException e) {}
System.exit(0);
}
}
//End of ChatClient class
//EchoServer.java
// This file contains material supporting section 3.7 of the textbook:
// "Object Oriented Software Engineering" and is issued under the open-source
// license found at www.lloseng.com
import java.io.*;
import ocsf.server.*;
/**
* This class overrides some of the methods in the abstract
* superclass in order to give more functionality to the server.
*
* @author Dr Timothy C. Lethbridge
* @author Dr Robert Laganière
* @author François Bélanger
* @author Paul Holden
* @version July 2000
*/
public class EchoServer extends AbstractServer
{
//Class variables *************************************************
/**
* The default port to listen on.
*/
final public static int DEFAULT_PORT = 5555;
//Constructors ****************************************************
/**
* Constructs an instance of the echo server.
*
* @param port The port number to connect on.
*/
public EchoServer(int port)
{
super(port);
}
//Instance methods ************************************************
/**
* This method handles any messages received from the client.
*
* @param msg The message received from the client.
* @param client The connection from which the message originated.
*/
public void handleMessageFromClient
(Object msg, ConnectionToClient client)
{
System.out.println("Message received: " + msg + " from " + client);
this.sendToAllClients(msg);
}
/**
* This method overrides the one in the superclass. Called
* when the server starts listening for connections.
*/
protected void serverStarted()
{
System.out.println
("Server listening for connections on port " + getPort());
}
/**
* This method overrides the one in the superclass. Called
* when the server stops listening for connections.
*/
protected void serverStopped()
{
System.out.println
("Server has stopped listening for connections.");
}
//Class methods ***************************************************
/**
* This method is responsible for the creation of
* the server instance (there is no UI in this phase).
*
* @param args[0] The port number to listen on. Defaults to 5555
* if no argument is entered.
*/
public static void main(String[] args)
{
int port = 0; //Port to listen on
try
{
port = Integer.parseInt(args[0]); //Get port from command line
}
catch(Throwable t)
{
port = DEFAULT_PORT; //Set port to 5555
}
EchoServer sv = new EchoServer(port);
try
{
sv.listen(); //Start listening for connections
}
catch (Exception ex)
{
System.out.println("ERROR - Could not listen for clients!");
}
}
}
//End of EchoServer class
//ChatIF.java
// This file contains material supporting section 3.7 of the textbook:
// "Object Oriented Software Engineering" and is issued under the open-source
// license found at www.lloseng.com
package common;
/**
* This interface implements the abstract method used to display
* objects onto the client or server UIs.
*
* @author Dr Robert Laganière
* @author Dr Timothy C. Lethbridge
* @version July 2000
*/
public interface ChatIF
{
/**
* Method that when overriden is used to display objects onto
* a UI.
*/
public abstract void display(String message);
}
//ClientConsole.java
// This file contains material supporting section 3.7 of the textbook:
// "Object Oriented Software Engineering" and is issued under the open-source
// license found at www.lloseng.com
import java.io.*;
import client.*;
import common.*;
/**
* This class constructs the UI for a chat client. It implements the
* chat interface in order to activate the display() method.
* Warning: Some of the code here is cloned in ServerConsole
*
* @author François Bélanger
* @author Dr Timothy C. Lethbridge
* @author Dr Robert Laganière
* @version July 2000
*/
public class ClientConsole implements ChatIF
{
//Class variables *************************************************
/**
* The default port to connect on.
*/
final public static int DEFAULT_PORT = 5555;
//Instance variables **********************************************
/**
* The instance of the client that created this ConsoleChat.
*/
ChatClient client;
//Constructors ****************************************************
/**
* Constructs an instance of the ClientConsole UI.
*
* @param host The host to connect to.
* @param port The port to connect on.
*/
public ClientConsole(String host, int port)
{
try
{
client= new ChatClient(host, port, this);
}
catch(IOException exception)
{
System.out.println("Error: Can't setup connection!"
+ " Terminating client.");
System.exit(1);
}
}
//Instance methods ************************************************
/**
* This method waits for input from the console. Once it is
* received, it sends it to the client's message handler.
*/
public void accept()
{
try
{
BufferedReader fromConsole =
new BufferedReader(new InputStreamReader(System.in));
String message;
while (true)
{
message = fromConsole.readLine();
client.handleMessageFromClientUI(message);
}
}
catch (Exception ex)
{
System.out.println
("Unexpected error while reading from console!");
}
}
/**
* This method overrides the method in the ChatIF interface. It
* displays a message onto the screen.
*
* @param message The string to be displayed.
*/
public void display(String message)
{
System.out.println("> " + message);
}
//Class methods ***************************************************
/**
* This method is responsible for the creation of the Client UI.
*
* @param args[0] The host to connect to.
*/
public static void main(String[] args)
{
String host = "";
int port = 0; //The port number
try
{
host = args[0];
}
catch(ArrayIndexOutOfBoundsException e)
{
host = "localhost";
}
ClientConsole chat= new ClientConsole(host, DEFAULT_PORT);
chat.accept(); //Wait for console data
}
}
//End of ConsoleChat class
Do not know how to do for this question, could you give me some suggestions for that?
In: Computer Science
In: Operations Management
From the following balances you are required to calculate cash from operating activities.
|
Name of accounts |
December31, 2015 |
December 31, 2016 |
|
Notes receivable |
SR 7,800 |
SR 12,000 |
|
Notes payable |
SR 22,000 |
SR 16,000 |
|
Accounts receivable |
SR 49,000 |
SR 46,000 |
|
Furniture |
SR 30,000 |
SR 38,000 |
|
Accounts payable |
SR 30,000 |
SR 35,000 |
|
Advance Rent received |
SR 9,000 |
SR 5,600 |
|
Prepaid expenses |
SR 5,700 |
SR 4,200 |
|
Depreciation on Plant assets |
SR 36,000 |
SR 45,000 |
|
Net Income during the year |
----- |
SR 160,000 |
In: Accounting
The paper “Cigarette Tar Yields in Relation to Mortality from Lung Cancer in the Cancer Prevention Study II Prospective Cohort “ (British Medical Journal [2004]: 72-79) included the accompanying data on the tar level of cigarettes smoked for a sample of male smokers who subsequently died of lung cancer.
| Tar Level | Frequency |
| 0-7mg | 103 |
| 8-14 mg | 378 |
| 15-21 mg | 563 |
| ≥ 22 mg | 150 |
Assume it is reasonable to regard the sample as representative of male smokers who die of lung cancer. Is there convincing evidence that the proportion of male smoker long cancer death is not the same for the four given tar level categories?
In: Statistics and Probability
20 mL of 15% HCl(v/v)
1000 mL of 10% HCl(w/v)
Give the percentages of the following: 130 mg of HCl + 90 g of H20
How many grams of sodium chloride are there in 0.75 L of a 5% solution?
What weight of NaOH would be required to prepare 500 mL of a 1.5 M solution?
A solution contains 25 g NaCl/L. What is its molarity?
What is the molecular weight of NaCl?
What is the equivalent weight of NaCl?
What is the molecular weight of MgCl2?
What is the equivalent weight of MgCl2?
Describe how to make a 3M solution of Na2SO4
What weight of H2SO4 is required to prepare 500 mL of a 2M solution?
Explain how to prepare a 2N solution of HCl
Explain how to prepare a 3N solution of MgCl2
Please explain how to prepare the following:
400 ml of a 2% glucose solution from a 50% solution available.
A 2% solution of HCL is required for a procedure. A 6% solution is available. How much of the 6% solution will be required to make 1000 mL of a 2% solution?
A procedure calls for acetic acid and water; with the proportions being one part acetic acid to four parts water. 200 mL are needed. How much acetic acid and water are required?
1 L of 70% alcohol is needed. How much 95% alcohol is required to make the 70% solution?
75 mL of a 1N HCL solution is needed. You have a 5N solution available. How will you go about preparing this solution?
In: Chemistry
In: Computer Science