Questions
This is Java Programing. Add a shape of oval to BOXBALLOVAL. import java.awt.*; import java.awt.event.*; import...

This is Java Programing. Add a shape of oval to BOXBALLOVAL.

import java.awt.*;

import java.awt.event.*;

import java.util.*;

import java.util.Timer;

import javax.swing.*;

public class BOXBALLOVAL {

   public static void main(String[] args) {

new myframe();// creating main jframe instance

   }

}

class myframe extends JFrame

{

   Container c;

   JPanel panel;

   JButton addbutton, removebutton;

   JLabel counter, ballsize;

   JTextField size_input;

   JComboBox cb;

   buttonListener handle;

   myDrawboard myboard;

   JFrame mainFrame;

   public myframe()

   {

super("Your title");

c = getContentPane();

size_input = new JTextField(5);

counter = new JLabel("Count : ");

ballsize = new JLabel("Size : ");

  

size_input.setText("50");

addbutton = new JButton("Add");

removebutton = new JButton("Remove");

cb = new JComboBox();

cb.addItem("Ball");

cb.addItem("Box");

handle = new buttonListener();

addbutton.addActionListener(handle);

removebutton.addActionListener(handle);

panel = new JPanel();

panel.add(ballsize);

panel.add(size_input);

panel.add(addbutton);

panel.add(removebutton);

panel.add(counter);

panel.add(cb);

myboard = new myDrawboard();

c.add(myboard.panel, BorderLayout.CENTER);

c.add(panel, BorderLayout.SOUTH);

  

setSize(800, 600);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setVisible(true);

// update screen (refresh)

Timer timer = new Timer();

timer.schedule(new myTimer(), 0, 16);

   }

   class myTimer extends TimerTask

   {

@Override

public void run() {

   repaint();

}

   }

   class buttonListener implements ActionListener {

int i;

public void actionPerformed(ActionEvent action)

{

   if (action.getSource() == addbutton) {

if (!size_input.getText().equals("")) {

   try

   {

myboard.additem(Integer.parseInt(size_input.getText()), cb.getSelectedItem().toString());

counter.setText(" Count : " + myboard.countItem()+ " ");

   }

   catch (NumberFormatException e)

   {

System.out.println(e);

JOptionPane.showMessageDialog(null, "Enter only number!", "Invalid Input", JOptionPane.INFORMATION_MESSAGE);

   }

}

else

{

   JOptionPane.showMessageDialog(null, "Enter the Object size!", "Input needed", JOptionPane.INFORMATION_MESSAGE);

}

   }

   if (action.getSource() == removebutton)

   {

myboard.removeBall();

counter.setText(" Count : " + myboard.countItem()+ " ");

   }

}

   }

}

class myDrawboard

{

   private static int count = 0;

   Graphics2D g2;

   MyPanel panel = new MyPanel();

   public void additem(int size, String shape)

   {

count++;

panel.addShape(size, shape);

   }

   public String countItem() {

return Integer.toString(count);

   }

   public void removeBall() {

if (panel.deleteShape()) {

   count--;

}

   }

}

class MyPanel extends JPanel

{

   ArrayList myArrayList = new ArrayList();

   public MyPanel()

   {

   setBackground(Color.BLACK);

   }

   public void addShape(int size, String shape)

   {

Random randomGenerator = new Random();

int x = randomGenerator.nextInt(200);

int y = randomGenerator.nextInt(200);

int R = randomGenerator.nextInt(256);

int G = randomGenerator.nextInt(256);

int B = randomGenerator.nextInt(256);

int vx = randomGenerator.nextInt(10)+2;

int vy = randomGenerator.nextInt(10)+2;

Color randomcolor = new Color(R, G, B);

if (shape == "Box")

{

   Box box = new Box();

   box.setInfo(size, x, y, randomcolor, vx, vy);

   myArrayList.add(box);

}

else // shape==ball

{

   Ball ball = new Ball();

   ball.setInfo(size, x, y, randomcolor, vx, vy);

   myArrayList.add(ball);

}

   }

   public boolean deleteShape()

   {

if (myArrayList.size() > 0)

{

   myArrayList.remove(myArrayList.size() - 1); // remove the last one

   return true;

}

return false;

   }

   public void paintComponent(Graphics g)

   {

Graphics2D g2 = (Graphics2D) g;

g2.setColor(Color.BLACK);

g2.fillRect(0,0,getWidth(), getHeight());

for (int i = 0; i < myArrayList.size(); i++)

{

   myArrayList.get(i).update(getWidth(), getHeight());

   myArrayList.get(i).drawObject(g2);

}

   }

}

interface DrawObject

{

   void drawObject(Graphics2D g2);

   void update(int width, int height);

}

class Ball implements DrawObject

{

   private int size;

   int x;

   int y;

   int velX;

   int velY;

   private Color color;

   public void setInfo(int size, int x, int y, Color randomcolor, int vx, int vy)

   {

this.size = size;

this.x = x;

this.y = y;

this.velX = vx;

this.velY = vy;

this.color = randomcolor;

   }

   public void drawObject(Graphics2D g2)

   {

g2.setColor(color);

g2.fillOval(x, y, size * 2, size * 2);

g2.setFont(new Font("SansSerif", Font.BOLD, 50));

   // g2.drawString("cs211",x,y);

g2.drawString("CS211",100,100);

   }

   //Ball moving

   public void update(int width, int height)

   {

x += velX;

if(x < 0 || x > width-size*2)

velX *= -1;

y += velY;

if(y < 0 || y > height-size*2)

velY *= -1;

   }

}

class Box implements DrawObject

{

   private int size;

   int x;

   int y;

   int velX;

   int velY;

   private Color color;

   private Rectangle square;

   public void setInfo(int size, int x, int y, Color randomcolor, int vx, int vy)

   {

square = new Rectangle(x, y, size, size);

this.velX = vx;

this.velY = vy;

color = randomcolor;

   }

   public void drawObject(Graphics2D g2)

   {

g2.setColor(color);

g2.fillRect(square.x, square.y, square.width, square.height);

   }

   //box moving

   public void update(int width, int height)

   {

square.x += velX;

if(square.x < 0 || square.x > width-square.width)

velX *= -1;

square.y += velY;

if(square.y < 0 || square.y > height-square.height)

velY *= -1;

   }

}

In: Computer Science

Delma Leathers Company is a manufacturer and seller of sports shoes. Information on budgeted sales in...

Delma Leathers Company is a manufacturer and seller of sports shoes. Information on budgeted sales in units is given below. Use this information to answer all parts of question one.

              Month                                        Units

February 2018                                    20,000

March 2018                                         24,000

April 2018                                           60,000

May 2018                                            45,000

June 2018                                            35,000

July 2018                                             30,000

Aug 2018                                            50,000                                  

Required:

The selling price per unit is AED 35.

All sales are on account. Based on past experience, sales are collected in the following pattern:

Month of sale

70%

Month following sale

30%

The company maintains finished goods inventories equal to 20% of the following month's sales. The ending inventory on 31st March was 12,000 units.

Each shoes requires 6 pounds of raw materials.

The company requires that the ending inventory of raw materials be equal to 20% of the following month's production needs. The beginning inventory of materials on April 1st was 85,500 units

The raw materials costs $1.70 per pound.

60% of a month's purchases of raw materials is paid for in the month of purchase; the remainder is paid for in the following month. The accounts payable balance at the end of March was AED 325,000 to be paid in full in April.

Required:

Prepare a sales budget, by month and in total, for the second quarter. (Show your budget in both units and dollars.)

Prepare a schedule of expected cash collections, by month and in total, for the second quarter.   

Prepare a production budget for each of the months of April-July.

Prepare a direct materials budget, by month and in total, for the second quarter.

Prepare a schedule of expected cash disbursements, by month and in total, for the second quarter.                          

In: Accounting

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for...

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for the year ended December 31, 2018 ($ in 000s): sales revenue, $18,500; cost of goods sold, $7,800; selling expenses, $1,460; general and administrative expenses, $900; interest revenue, $100; interest expense, $250. Income taxes have not yet been recorded. The company’s income tax rate is 20% on all items of income or loss. These revenue and expense items appear in the company’s income statement every year. The company’s controller, however, has asked for your help in determining the appropriate treatment of the following nonrecurring transactions that also occurred during 2018 ($ in 000s). All transactions are material in amount. Investments were sold during the year at a loss of $380. Schembri also had unrealized gains of $480 for the year on investments. One of the company’s factories was closed during the year. Restructuring costs incurred were $1,900. During the year, Schembri completed the sale of one of its operating divisions that qualifies as a component of the entity according to GAAP. The division had incurred a loss from operations of $700 in 2018 prior to the sale, and its assets were sold at a gain of $1,720. In 2018, the company’s accountant discovered that depreciation expense in 2017 for the office building was understated by $360. Negative foreign currency translation adjustment for the year totaled $400. Required: 1. Prepare Schembri’s single, continuous multiple-step statement of comprehensive income for 2018, including earnings per share disclosures. One million shares of common stock were outstanding at the beginning of the year and an additional 400,000 shares were issued on July 1, 2018. 2. Prepare a separate statement of comprehensive income for 2018.

In: Accounting

In 2017, XYZ Corporation has $75,000 of income before taxes in its accounting records.   In computing...

In 2017, XYZ Corporation has $75,000 of income before taxes in its accounting records.   In computing income tax expense, XYZ makes the following observations of differences between the accounting records and the tax return:

An accelerated depreciation method is used for tax purposes. In 2017, XYZ reports $6,000 more depreciation expense for tax purposes than it shows in the accounting records.

In 2017, XYZ collected $60,000 from a business that is renting a portion of its warehouse. The $60,000 covers the rental payment for the four years 2018-2022, and therefore no rental revenue has been recognized for 2017. However, XYZ must pay taxes on the entire amount collected in 2017.

The enacted tax rate in 2017 is 35%. In 2018, a new tax rate is enacted, changing the rate from 35% to 22% for years beginning January 1, 2019.

Required:

A.     Calculate taxable income for 2017.

B.     Prepare the journal entry necessary to record income taxes at the end of 2017.

C.     How would any deferred tax amounts be reported on a classified balance sheet?

D.     Assume that XYZ’s 2018 pretax accounting income is $9,000 and that XYZ reports $3,000 more depreciation expense for tax purposes than it shows in the accounting records. Also during 2018, XYZ invests in tax-free municipal bonds that earn $3,000 interest in 2018. Prepare the journal entry necessary to record income taxes at the end of 2018.

E. Show the Income before Income Taxes, the appropriate presentation of income tax expense, and the amount of net income or loss that XYZ would report on its 2018 income statement.

In: Accounting

In 2017, XYZ Corporation has $75,000 of income before taxes in its accounting records.   In computing income...

In 2017, XYZ Corporation has $75,000 of income before taxes in its accounting records.   In computing income tax expense, XYZ makes the following observations of differences between the accounting records and the tax return:

An accelerated depreciation method is used for tax purposes.  In 2017, XYZ reports $6,000 more depreciation expense for tax purposes than it shows in the accounting records.

In 2017, XYZ collected $60,000 from a business that is renting a portion of its warehouse.  The $60,000 covers the rental payment for the four years 2018-2022, and therefore no rental revenue has been recognized for 2017.  However, XYZ must pay taxes on the entire amount collected in 2017.

The enacted tax rate in 2017 is 35%.  In 2018, a new tax rate is enacted, changing the rate from 35% to 22% for years beginning January 1, 2019.

Required:

        A.     Calculate taxable income for 2017.

        B.     Prepare the journal entry necessary to record income taxes at the end of 2017.

        C.    How would any deferred tax amounts be reported on a classified balance sheet?

        D.     Assume that XYZ’s 2018 pretax accounting income is $9,000 and that XYZ reports $3,000 more depreciation expense for tax purposes than it shows in the accounting records.  Also during 2018, XYZ invests in tax-free municipal bonds that earn $3,000 interest in 2018.  Prepare the journal entry necessary to record income taxes at the end of 2018.

E.    What is the amount of net income or loss that XYZ would report on its 2018 income statement?  

Show all work including formulas

In: Accounting

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for...

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for the year ended December 31, 2018 ($ in 000s): sales revenue, $17,100; cost of goods sold, $7,100; selling expenses, $1,390; general and administrative expenses, $890; interest revenue, $160; interest expense, $210. Income taxes have not yet been recorded. The company’s income tax rate is 40% on all items of income or loss. These revenue and expense items appear in the company’s income statement every year. The company’s controller, however, has asked for your help in determining the appropriate treatment of the following nonrecurring transactions that also occurred during 2018 ($ in 000s). All transactions are material in amount.

Investments were sold during the year at a loss of $310. Schembri also had unrealized gains of $400 for the year on investments.

One of the company’s factories was closed during the year. Restructuring costs incurred were $2,100.

During the year, Schembri completed the sale of one of its operating divisions that qualifies as a component of the entity according to GAAP. The division had incurred a loss from operations of $620 in 2018 prior to the sale, and its assets were sold at a gain of $1,580.

In 2018, the company’s accountant discovered that depreciation expense in 2017 for the office building was understated by $290.

Negative foreign currency translation adjustment for the year totaled $330.


Required:
1. Prepare Schembri’s single, continuous multiple-step statement of comprehensive income for 2018, including earnings per share disclosures. One million shares of common stock were outstanding at the beginning of the year and an additional 400,000 shares were issued on July 1, 2018.
2. Prepare a separate statement of comprehensive income for 2018.

In: Accounting

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for...

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for the year ended December 31, 2018 ($ in 000s): sales revenue, $18,500; cost of goods sold, $7,800; selling expenses, $1,460; general and administrative expenses, $900; interest revenue, $100; interest expense, $250. Income taxes have not yet been recorded. The company’s income tax rate is 20% on all items of income or loss. These revenue and expense items appear in the company’s income statement every year. The company’s controller, however, has asked for your help in determining the appropriate treatment of the following nonrecurring transactions that also occurred during 2018 ($ in 000s). All transactions are material in amount. Investments were sold during the year at a loss of $380. Schembri also had unrealized gains of $480 for the year on investments. One of the company’s factories was closed during the year. Restructuring costs incurred were $1,900. During the year, Schembri completed the sale of one of its operating divisions that qualifies as a component of the entity according to GAAP. The division had incurred a loss from operations of $700 in 2018 prior to the sale, and its assets were sold at a gain of $1,720. In 2018, the company’s accountant discovered that depreciation expense in 2017 for the office building was understated by $360. Negative foreign currency translation adjustment for the year totaled $400. Required: 1. Prepare Schembri’s single, continuous multiple-step statement of comprehensive income for 2018, including earnings per share disclosures. One million shares of common stock were outstanding at the beginning of the year and an additional 400,000 shares were issued on July 1, 2018. 2. Prepare a separate statement of comprehensive income for 2018.

In: Accounting

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for...

The following income statement items appeared on the adjusted trial balance of Schembri Manufacturing Corporation for the year ended December 31, 2018 ($ in 000s): sales revenue, $18,900; cost of goods sold, $8,000; selling expenses, $1,480; general and administrative expenses, $980; interest revenue, $240; interest expense, $200. Income taxes have not yet been recorded. The company’s income tax rate is 40% on all items of income or loss. These revenue and expense items appear in the company’s income statement every year. The company’s controller, however, has asked for your help in determining the appropriate treatment of the following nonrecurring transactions that also occurred during 2018 ($ in 000s). All transactions are material in amount.

  1. Investments were sold during the year at a loss of $400. Schembri also had unrealized gains of $550 for the year on investments.
  2. One of the company’s factories was closed during the year. Restructuring costs incurred were $2,100.
  3. During the year, Schembri completed the sale of one of its operating divisions that qualifies as a component of the entity according to GAAP. The division had incurred a loss from operations of $740 in 2018 prior to the sale, and its assets were sold at a gain of $1,760.
  4. In 2018, the company’s accountant discovered that depreciation expense in 2017 for the office building was understated by $380.
  5. Negative foreign currency translation adjustment for the year totaled $420.


Required:
1. Prepare Schembri’s single, continuous multiple-step statement of comprehensive income for 2018, including earnings per share disclosures. One million shares of common stock were outstanding at the beginning of the year and an additional 400,000 shares were issued on July 1, 2018.
2. Prepare a separate statement of comprehensive income for 2018.

In: Accounting

J.T.Pan and​ Company, a manufacturer of quality handmade walnut​ bowls, has had a steady growth in...

J.T.Pan and​ Company, a manufacturer of quality handmade walnut​ bowls, has had a steady growth in sales for the past 5 years.​ However, increased competition has led Mr.Pan​, the​ president, to believe that an aggressive marketing campaign will be necessary next year to maintain the​ company's present growth. To prepare for next​ year's marketing​ campaign, the​ company's controller has prepared and presented Mr.Pan with the following data for the current​ year, 2017​:

Variable cost (per bowl)

Direct materials

$3.00

Direct manufacturing labor

8.00

Variable overhead (manufacturing, marketing, distribution and customer service)

2.60

Total variable cost per bowl

$13.60

Fixed costs

Manufacturing

$15,000

Marketing, distribution, and customer service

270,600

Total fixed costs

$285,600

Selling price

$34.00

Expected sales, 21,000 units

$714,000

Income tax rate

40%

Requirements:

1.

What is the projected net income for 2017​?

2.

What is the breakeven point in units for 2017​?

3.

Mr. Pan has set the revenue target for 2018 at a level of $816,000 ​(or 24,000bowls). He believes an additional marketing cost of $12,240 for advertising in 2018​, with all other costs remaining​ constant, will be necessary to attain the revenue target. What is the net income for 2018 if the additional $12,240 is spent and the revenue target is​ met?

4.

What is the breakeven point in revenues for 2018 if the additional $12,240 is spent for​ advertising?

5.

If the additional $12,240 is​ spent, what are the required 2018 revenues for 2018 net income to equal 2017
net​ income?

6.

At a sales level of 24,000 units, what maximum amount can be spent on advertising if a 2018 net income of $114,006 is​ desired?

In: Accounting

Missing Amounts from Financial Statements The financial statements at the end of Atlas Realty's first month...

Missing Amounts from Financial Statements

The financial statements at the end of Atlas Realty's first month of operations follow:

Required:

Analyze the interrelationships among the four financial statements and enter the missing amounts. If an amount is zero, enter "0".

Atlas Realty
Income Statement
For the Month Ended May 31, 2018
Fees earned $400,000
Expenses:
Wages expense $
Rent expense 48,000
Supplies expense 17,600
Utilities expense 14,400
Miscellaneous expense 4,800
Total expenses 288,000
Net income $
Atlas Realty
Retained Earnings Statement
For the Month Ended May 31, 2018
Retained earnings, May 1, 2018 $
Net income $
Dividends
Change in retained earnings
Retained earnings, May 31, 2018 $
Atlas Realty
Balance Sheet
May 31, 2018
Assets
Cash $123200
Supplies 12,800
Land
Total assets $
Liabilities
Accounts payable $48,000
Stockholders’ Equity
Common stock $
Retained earnings
Total stockholders' equity
Total liabilities and stockholders’ equity $

Use the minus sign to indicate cash outflows, decreases in cash, and cash payments.

Atlas Realty
Statement of Cash Flows
For the Month Ended May 31, 2018
Cash flows from operating activities:
Cash received from customers $
Cash payments for expenses and payments to creditors -252,800
Net cash flows from operating activities $
Cash flows from investing activities:
Cash payments for acquisition of land -120,000
Cash flows from financing activities:
Cash received from issuing common stock $160,000
Cash dividends -64,000
Net cash flows from financing activities
Net increase (decrease) in cash and May 31, 2018, cash balance $

In: Accounting