Questions
Several items are omitted from the income statement and cost of goods manufactured statement data for...

Several items are omitted from the income statement and cost of goods manufactured statement data for two different companies for the month of December 2016:

1

Prius Company

Volt Company

2

Materials inventory, December 1

$280,280.00

$179,000.00

3

Materials inventory, December 31

(a)

177,500.00

4

Materials purchased

712,000.00

340,000.00

5

Cost of direct materials used in production

752,000.00

(a)

6

Direct labor

1,059,600.00

(b)

7

Factory overhead

325,200.00

179,600.00

8

Total manufacturing costs incurred during December

(b)

1,035,000.00

9

Total manufacturing costs

2,676,800.00

1,479,500.00

10

Work in process inventory, December 1

540,000.00

444,500.00

11

Work in process inventory, December 31

451,400.00

(c)

12

Cost of goods manufactured

(c)

1,027,500.00

13

Finished goods inventory, December 1

478,400.00

201,000.00

14

Finished goods inventory, December 31

495,200.00

(d)

15

Sales

4,143,000.00

1,676,500.00

16

Cost of goods sold

(d)

1,053,500.00

17

Gross profit

(e)

(e)

18

Operating expenses

540,000.00

(f)

19

Net income

(f)

383,000.00

Required:
A. Determine the amounts of the missing items, identifying them by letter. Enter all amounts as positive numbers.
B. Prepare Volt Company’s statement of cost of goods manufactured for December.*
C. Prepare Volt Company’s income statement for December.*

* Refer to the Amount Descriptions list provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. Enter all amounts as positive numbers.

Amount Descriptions
Cost of direct materials used in production
Cost of finished goods available for sale
Cost of goods manufactured
Cost of goods sold
Cost of materials available for use
Direct Labor
Factory overhead
Finished goods inventory, December 1, 2016
Finished goods inventory, December 31, 2016
Gross profit
Materials inventory, December 1, 2016
Materials inventory, December 31, 2016
Net income
Operating expenses
Purchases
Sales
Total manufacturing costs incurred during December
Work in process inventory, December 1, 2016

Work in process inventory, December 31, 2016

A. Determine the amounts of the missing items, identifying them by letter. Enter all amounts as positive numbers.

Letter Prius Company Volt Company
a.
b.
c.
d.
e.

f.

B. Prepare Volt Company’s statement of cost of goods manufactured for December. Refer to the Amount Descriptions list provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. Enter all amounts as positive numbers.

Volt Company

Statement of Cost of Goods Manufactured

For the Month Ended December 31, 2016

1

2

Direct materials:

3

4

5

6

7

8

9

10

11

Total manufacturing costs

12

13

C. Prepare Volt Company’s income statement for December. Refer to the Amount Descriptions list provided for the exact wording of the answer choices for text entries. “Less” or “Plus” will automatically appear if it is required. Enter all amounts as positive numbers.

Volt Company

Income Statement

For the Month Ended December 31, 2016

1

2

Cost of goods sold:

3

4

5

6

7

8

9

10

In: Accounting

Part 1: Find and fix errors and add following functionalities 1. There are several syntax errors...

Part 1: Find and fix errors and add following functionalities

1. There are several syntax errors in the code that are preventing this calculator from working, find and fix those errors. When they are fixed, the number buttons will all work, as well as the + (add) and -- (decrement) buttons.

a. To find the errors, open up the Developers Tool of the browser and look at the console (F12).

  1. Verify the add functionality works. For a binary operator, you must click on the buttons in the

    following order:

    1. Hit a number button

    2. Hit the ‘+’ button

    3. Hit a number button

    4. Hit the ‘Calculate’ button

  2. Verify the decrement operator works. For a unary operator, you must click the buttons in the following order:

    1. Hit the number button

    2. Hit the ‘—‘ button

  3. Implement subtraction in a similar fashion to addition:

Create a subtract function. To subtract, the user must hit a number button, then the ‘-‘ button,another number button and then the ‘Calculate’ button. The function should store the firstnumber in a global variable, similar to the add function.

Add code in the calculate button which will perform the subtraction when the ‘Calculate’button is clicked.
Call the subtract function from the HTML file.


5. Implement the sqrt() button. Similar to the decrement function, the sqrt() button will take the value of

the number and display the square root. Use the Math.sqrt function to calculate the square root. 6. Validate any HTML CSS and/or JavaScript errors.

Part 2: Implement 2 or more buttons

  1. Pick any two additional buttons and make them work. When you turn in your lab put in the‘Comments’ section of Canvas, which two buttons you implemented.

CODE:

HTML:

<!doctype html>
<html lang="en">

<head>

    <title>Calculator</title>
    <!-- Meta tag for keywords  -->
    <meta name="keywords" content="Calculator" >
    <!-- Meta tag for description  -->
    <meta name="description" content="ITIS 3135 Activity 5" >
   <!-- Meta tag for character encoding  -->
    <meta charset="UTF-8">
    <!--External Stylesheet -->
    <link rel="stylesheet" type="text/css" href="Activity5.css">
   <!-- JavaScript function declarations -->
    <script src="Activity5.js"></script>
 
</head>

<body>
    <header>
      <h1>My Calculator</h1> 
      <!-- For people who don't have JavaScript enabled-->
      <noscript>This web page requires JavaScript to be enabled on your browser.</noscript>
   </header>
    
   <main id="calc">
   
      <!-- form for user input that represents a calculator -->
      <form name="frmCalc" id="frmCalc">
         <p>Please enter a numeric value or use the number buttons below.</p>
         
         <!-- Text Box to enter a numeric value -->
         <input type="text" name="txtNumber" value="" size="20" /><br /><br/>
         
         <!-- Number buttons -->
         <input type="button" value="1" name="btn1" onclick="showNum(1)" />
         <input type="button" value="2" name="btn2" onclick="showNum(2)" />
         <input type="button" value="3" name="btn3" onclick="showNum(3)" />
         
         <!-- ADD: Sets up operation to add current number to next number entered -->
         <input type="button" value="+" name="btnPlus" onclick="add()" /><br/>
         
         <!-- Number buttons -->
         <input type="button" value="4" name="btn4" onclick="showNum(4)" />
         <input type="button" value="5" name="btn5" onclick="showNum(5)" />
         <input type="button" value="6" name="btn6" onclick="showNum(6)" />
         
         <!-- *** Subtract (Implement Me!) *** -->
         <input type="button" value="-" name="btnMinus" onclick="" onclick="" /><br/>
         
         <!-- Number buttons -->
         <input type="button" value="7" name="btn7" onclick="showNum(7)" />
         <input type="button" value="8" name="btn8" onclick="showNum(8)" />
         <input type="button" value="9" name="btn9" onclick="showNum(9)" />
         
         <!-- *** Multiply (Implement Me!) *** -->
         <input type="button" value="*" name="btnTimes" onclick="" /><br/>
         
         <!-- Number buttons -->
         <input type="button" value="0" name="btn0" onclick="showNum(0)" />

         <!-- *** Power (Implement Me!) Takes two values n^y *** -->
         <input type="button" value="^" name="btnPow" onclick=""/>
         
         <!-- *** Power2 (Implement Me!) *** Takes one value n^2-->
         <input type="button" value="^2" name="btnPow2" onclick=""/>
         
         <!-- *** Divide (Implement Me!) *** -->
         <input type="button" value="/" name="btnDivide" onclick=""/><br/>
         
         <!-- Decrements value currently displayed -->
         <input type="button" value="--" name="btnDecrement" onclick="decrement()" />
         
         <!-- *** Increment (Implement Me!) *** -->
         <input type="button" value="++" name="btnIncrement" onclick=""/>
         
         <!-- *** Square Root (Implement Me!) *** -->
         <input type="button" value="sqrt()" name="btnSqrt" onclick=""/><br />
         
         <!-- Calculates the floor of the current number being displayed -->
         <input type="button" value="Floor" name="btnFloor" onclick="" />     
       
         <!-- *** Round (Implement Me!) *** -->
         <input type="button" value="Round" name="btnRound" onclick=""/>
         
         <!-- *** Decimal (Implement Me!) *** -->
         <input type="button" value="." name="btnDecimal" onclick="showNum('.')" />
         
         <br/><br/>
             
         <input type="reset" name="btnReset" value="Clear" onclick="clear()" />
         <input type="button" name="btnCalc" value="Calculate" onclick="calculate()" />
      </form>

   </main>
   
   <footer id="Validation">
      <br/>
      <a href="https://validator.w3.org/check?uri=referer">Validate HTML</a> 
      <a href="https://jigsaw.w3.org/css-validator/check/referer">Validate CSS</a>
   </footer>
</body>
</html>

CSS:
body
 {
    font-family:"arial";
}
        
/*Make it look more like a calculator*/
#calc
{
   width:250px;
    background-color:#cccccc;
    text-align:center;
    border:outset;
    padding:5px;
}
        
/*Change the style of the buttons*/
input
{
    font-family:"Courier New";
    text-align:right;
 }

/*Make the buttons that have not been implemented red*/
input.implement
{
    background-color:red;   
}

JS:

//Global variables
var prevCalc = 0;
var calc = "";

//The following function displays a number in the textfield when a number is clicked.
//Note that it keeps concatenating numbers which are clicked. 
function showNum(value) {
    document.frmCalc.txtNumber.value += = value;
}

//The following function decreases the value of displayed number by 1.
//isNaN method checks whether the value passed to the method is a number or not.     
function decrement() {
    var num = parseFloat(document.frmCalc.txtNumber.value);
        if (!(isNaN(num))) {
            num--;
            document.frmCalc.txtnumber.value = num;
        }
}

//The following function is called when "Add" button is clicked. 
//Note that it also changes the values of the global variables.       
function add() {
    var num = parseFloat(document.frmCalc.txtNumber.value);
        if (!(isNaN(num))) {
            prevCalc = num;
            document.frmCalc.txtNumber.value = "";
            calc = "Add";
        }
}

//The following function is called when "Calculate" button is clicked.
//Note that this function is dependent on the value of global variable.        
function calculate() {
    var num = parseFloat(document.frmCalc.txtNumber.value);
        if (!(isNaN(num))) {
            if (calc == "Add"){
                var total = previousCalc + num;
                document.frmCalc.txtNumber.value = total;
            }
        
}

function clear() {
   document.frmCalc.txtNumber.value = "";
   prevCalc = 0;
   calc = "";
}

In: Computer Science

Sort these nucleotide building blocks by their name or classification.

Sort these nucleotide building blocks by their name or classification.

In: Biology

What is the IUPAC name for the compound shown below?

What is the IUPAC name for the compound shown below? Spelling and punctuation count!

In: Chemistry

Name the parts of the female internal and external genitalia.

Name the parts of the female internal and external genitalia.

In: Nursing

Name three of the most common supervisors in the marketplace

Name three of the most common supervisors in the market place

In: Finance

A constructor, with a String parameter representing the name of the item.

USE JAVA 

Item class

  • A constructor, with a String parameter representing the name of the item.

  • A name() method and a toString() method, both of which are identical and which return the name of the item.

BadAmountException Class

  • It must be a RuntimeException. A RuntimeException is a subclass of Exception which has the special property that we wouldn't need to declare it if we need to use it.

Inventory class

  • A constructor which takes a String parameter indicating the item type, an int parameter indicating the initial number of items in stock, and an int parameter indicating the limit to the number of items which can be purchased in any transaction. If we attempt to initialize the inventory with a negative number of items, the constructor should throw a BadAmountException with the message "Cannot keep a negative amount of items in stock".

  • A constructor which takes a String parameter indicating the item type, and an int parameter indicating the initial number of items in stock. This constructor assumes no purchase limit, so initialize the limit appropriately. If we attempt to initialize the inventory with a negative number of items, the constructor should throw a BadAmountException with the message "Cannot keep a negative amount of items in stock".

  • A getter and setter for the purchase limit, getLimit and setLimit.

  • A getter for the number of items currently in stock, getNum.

  • A getter for the type of item (i.e. the name of the item) in stock, getType.

  • A restock method which takes an int parameter and which doesn't return anything. This method restocks by adding the input amount to the current stock. If the input amount is negative, this method should throw a BadAmountException with the message "Cannot stock a negative amount of items".

  • A purchase method which takes an int parameter and which returns an array of Item. The input value represents a number of items to purchase. However, before a purchase can be made, several checks need to be done to make sure it is a legal transaction:If the transaction is valid, then we should purchase the specified number of items (updating the inventory accordingly), and return create and return an array of Item of the appropriate size and type (for example, if we request a purchase of two packages of "toilet paper", we would get back an array containing two Item objects whose name is "toilet paper").
    Note that since InventoryException is a checked exception, we may need to declare it to use it.

    1. If the input is negative, then the method should throw a BadAmountException with the message "Cannot purchase a negative amount of items".

    2. If the purchase amount is greater than the number of items in stock, then we should throw an InventoryException with the text "Not enough items in stock".

    3. If the purchase limit is zero, that means that there is a purchase freeze, so we should throw an InventoryException with the text "Purchasing freeze on item".

    4. If there is a limit but we've been requested to purchase more than the limit, we should throw a InventoryException with the text "Exceeded limit of LIMIT", where LIMIT is a number representing the purchase limit.

    5. Otherwise the transaction is valid.

The StoreSim class contains a single static method:

  • public static void sim(Inventory stock, int[] purchases).  If the purchase was successful, the method should output "purchased AMOUNT units ofITEMTYPE, REMAINNG remaining", for example, "purchased 50 units of toilet paper, 1 remaining". If an InventoryException is detected, then the method should print the exception's message and then continue as if nothing happened. If a BadAmountException is detected, then the method should print "(negative purchase AMOUNT ignored)" to the standard error stream instead of the standard output, and then continue as if nothing happened.

In: Computer Science

Which of the following is the name for the risk of changes in the price or...

Which of the following is the name for the risk of changes in the price or value of fixed-rate debt instruments resulting from changes in market interest rates?

  1. Default risk

  2. Liquidity risk

  3. Inflation risk

  4. Interest rate risk

In: Finance

What name is given to the device that drives a generator?

What name is given to the device that drives a generator?

In: Electrical Engineering

Name the person that is responsible for directing a corporation’s affairs.

Name the person that is responsible for directing a corporation’s affairs.

In: Accounting