Questions
I need to implement a code in python to guess a random number. The number must...

I need to implement a code in python to guess a random number. The number
must be an integer between 1 and 50 inclusive, using the module random function randint. The user will have four options to guess the number. For each one of the failed attempts, the program
it should let the user know whether is with a lower or higher number and how many tries they have left. If the user guess the number, the program must congratulate the user and tell him how much he won. If you are a user, hit on the 1st attempt
He wins first $ 100, on the second $ 75, on the third $ 50, on the fourth $ 25. If the user misses all four opportunities, the program must inform the user that he owes money  $ 60 and what was the number that the computer generates randomly.

In: Computer Science

Ram​ Roy's firm has developed the following​ supply, demand,​ cost, and inventory data.                                                                                                      Supply Available...

Ram​ Roy's firm has developed the following​ supply, demand,​ cost, and inventory data.

                                                                                                    

Supply Available

Period

Regular Time

Overtime

Subcontract

Demand Forecast

1

40

15

5

40

2

30

15

5

55

3

40

15

5

55

Initial inventory

20

units

​Regular-time cost per unit

​$100

Overtime cost per unit

​$150

Subcontract cost per unit

​$200

Carrying cost per unit per month

​$4

Assume that the initial inventory has no holding cost in the first period and backorders are not permitted.

Allocating production capacity to meet demand at a minimum cost using the transportation​ method, the total cost is?

​(enter your response as a whole​ number).

In: Operations Management

Your organisation has decided to purchase an item of equipment expected to work 1700 hours per...

Your organisation has decided to purchase an item of equipment expected to work 1700 hours per year (average) for a 12 year working life.

(a) Discuss, in about 200 words, two methods you could use to compare alternative options when buying this equipment.

(b) Assume that the item of equipment you decided to purchase had a purchase price of $2,900,000 and a residual value at the end of 12 years of $260,000. Tabulate the depreciation and book value for the life of the item by each of the following methods:

1) straight line 2) declining balance 3) sum of digits.

(c) Tabulate details of a sinking fund to accumulate to the original purchase price less residual value assuming an interest rate of 6%.

(d) Draw a graph showing the book values in each of the above (plotted on the same graph for comparison).

(e) Comment on the factors that an equipment owner might consider when selecting one of these methods.

(f) Assume now that you have purchased this equipment. What is the Total Annual payment required for operating the equipment? You have the following additional data:

• Maintenance costs are $60,000 in the first year

• Operator wages are $100,000 in the first year

• Storage, transport and other miscellaneous costs are $15,000 in the first year

• Money costs 8% per year Hint: Start by calculating the Capital Recovery Factor

(g) Maintenance, operator and miscellaneous costs are expected to increase at a flat rate of 4% per year over the life of the machine. Based on a Profit margin of 32%, create a table that calculates the hourly charge out rate, including profit, you would need for its hire during each year of the working life of the equipment.

(h) Also based on this hourly charge and expected operating hours, what is the expected annual income over the working life of the equipment?

In: Finance

Depreciation scenario Your organisation has decided to purchase an item of equipment expected to work 1700...

Depreciation scenario Your organisation has decided to purchase an item of equipment expected to work 1700 hours per year (average) for a 12 year working life. (a) Discuss, in about 200 words, two methods you could use to compare alternative options when buying this equipment. (b) Assume that the item of equipment you decided to purchase had a purchase price of $2,900,000 and a residual value at the end of 12 years of $260,000. Tabulate the depreciation and book value for the life of the item by each of the following methods: 1) straight line 2) declining balance 3) sum of digits. (c) Tabulate details of a sinking fund to accumulate to the original purchase price less residual value assuming an interest rate of 6%. (d) Draw a graph showing the book values in each of the above (plotted on the same graph for comparison). (e) Comment on the factors that an equipment owner might consider when selecting one of these methods. (f) Assume now that you have purchased this equipment. What is the Total Annual payment required for operating the equipment? You have the following additional data: • Maintenance costs are $60,000 in the first year • Operator wages are $100,000 in the first year • Storage, transport and other miscellaneous costs are $15,000 in the first year • Money costs 8% per year Hint: Start by calculating the Capital Recovery Factor (g) Maintenance, operator and miscellaneous costs are expected to increase at a flat rate of 4% per year over the life of the machine. Based on a Profit margin of 32%, create a table that calculates the hourly charge out rate, including profit, you would need for its hire during each year of the working life of the equipment. (h) Also based on this hourly charge and expected operating hours, what is the expected annual income over the working life of the equipment?

In: Mechanical Engineering

National Orthopedics Co. issued 8% bonds, dated January 1, with a face amount of $600,000 on...

National Orthopedics Co. issued 8% bonds, dated January 1, with a face amount of $600,000 on January 1, 2013. The bonds mature on December 31, 2016 (4 years). For bonds of similar risk and maturity the market yield was 10%. Interest is paid semiannually on June 30 and December 31. (FV of $1, PV of $1, FVA of $1, PVA of $1, FVAD of $1 and PVAD of $1) (Use appropriate factor(s) from the tables provided.)

  

Required:
1.

Determine the price of the bonds at January 1, 2013.

Table values are based on:
n =
i =
Cash Flow Amount Present Value
Interest
Principal
Price of bonds
2.

Prepare the journal entry to record their issuance by National on January 1, 2013. (If no entry is required for a transaction, select "No journal entry required" in the first account field.)

3.

Prepare an amortization schedule that determines interest at the effective rate each period.

Semiannual Interest Period-End Cash Interest Bond Interest Expense Discount Amortization Carrying Value
01/01/2013
06/30/2013
12/31/2013
06/30/2014
12/31/2014
06/30/2015
12/31/2015
06/30/2016
12/31/2016
Total
4.

Prepare the journal entry to record interest on June 30, 2013. (If no entry is required for a transaction, select "No journal entry required" in the first account field.)

5.

Prepare the appropriate journal entries at maturity on December 31, 2016. (If no entry is required for a particular transaction, select "No journal entry required" in the first account field.)

1

Record the interest expense on December 31, 2016.

2

Record the retirement of the bond at maturity on December 31, 2016.

In: Accounting

A 3-kg mass of metal of specific heat = 0.1 kcal/kg°C at a temperature of 600°C...

A 3-kg mass of metal of specific heat = 0.1 kcal/kg°C at a temperature of 600°C is dropped into 1.0 kg water at 20°C. With no heat losses to the surroundings, determine the equilibrium temperature of the mixture, and if it is 100°C, calculate what mass of water is turned into steam at this temperature.

Group of answer choices 100°C and 110 g of steam 100°C and 150 g of steam 100°C and 130 g of steam 100°C and 70 g of steam The equilibrium temperature is not 100°C.

In: Physics

Common size and trend percents for Rustynail Company s sales,cost of goods sold,and expenses follow. Common...

Common size and trend percents for Rustynail Company s sales,cost of goods sold,and expenses follow. Common size percents. 2017 sales 100 % 2016 sales 100 %,2015 sales 100 %. Cost of goods sold 2017. 63.1 . 2016 60.9. 2015. 57.4. Total expenses. 2017 , 14.3 , 2016. 13.8. 2015. 14.1
Trend percents. 2017.              2016           2015

           
sales.                   104.5%           103.3 %     100

cost of goods sold 114.9.        109.6.       100

total expenses.         106.1.        101.1.      100

In: Accounting

DESCRIBE WHAT THE FOLLOWING JAVA CODE DOES: public class Main{ public static void main(String[] args) {...

DESCRIBE WHAT THE FOLLOWING JAVA CODE DOES:


public class Main{

public static void main(String[] args) {

new MyFrame();

}

}

import javax.swing.*;

public class MyFrame extends JFrame{

MyPanel panel;

MyFrame(){

panel = new MyPanel();

this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

this.add(panel);

this.pack();

this.setLocationRelativeTo(null);

this.setVisible(true);

}

}

import java.awt.*;

import javax.swing.*;

public class MyPanel extends JPanel{

//Image image;

MyPanel(){

//image = new ImageIcon("sky.png").getImage();

this.setPreferredSize(new Dimension(500,500));

}

public void paint(Graphics g) {

Graphics2D g2D = (Graphics2D) g;

//g2D.drawImage(image, 0, 0, null);

g2D.setPaint(Color.blue);

g2D.setStroke(new BasicStroke(5));

g2D.drawLine(0, 0, 500, 500);

//g2D.setPaint(Color.pink);

//g2D.drawRect(0, 0, 100, 200);

//g2D.fillRect(0, 0, 100, 200);

//g2D.setPaint(Color.orange);

//g2D.drawOval(0, 0, 100, 100);

//g2D.fillOval(0, 0, 100, 100);

//g2D.setPaint(Color.red);

//g2D.drawArc(0, 0, 100, 100, 0, 180);

//g2D.fillArc(0, 0, 100, 100, 0, 180);

//g2D.setPaint(Color.white);

//g2D.fillArc(0, 0, 100, 100, 180, 180);

//int[] xPoints = {150,250,350};

//int[] yPoints = {300,150,300};

//g2D.setPaint(Color.yellow);

//g2D.drawPolygon(xPoints, yPoints, 3);

//g2D.fillPolygon(xPoints, yPoints, 3);

//g2D.setPaint(Color.magenta);

//g2D.setFont(new Font("Ink Free",Font.BOLD,50));

//g2D.drawString("U R A WINNER! :D", 50, 50);

}

}

In: Computer Science

Question Number 1: A perpetual Inventory System is used by Black Hawk, Inc. The following transactions...

Question Number 1:

A perpetual Inventory System is used by Black Hawk, Inc. The following transactions show beginning inventory, purchases and sales of CT-300, a cellular telephone for the month of May:

May   1: Balance on hand, 20 units, cost $50 each         $1000

May   5: Sale, 10 units, sale price $80 each                    $ 800

May   6: Purchase, 20 units, cost $60 each                     $1200

May 21: Sale, 15 units, Sale Price $100 each                 $1500

Instruction:

Record beginning inventory, purchases, cost of goods sold and running balance on an inventory subsidiary record using Average Cost method.

Question Number 2:

On January 1, 2019, Delta Company acquired new equipment with an estimated useful life of 5 years. Cost of the equipment was $5,000,000 with a residual value of $250,000. For income tax purposes, this machinery qualifies as 5-Year property.

3 Years

Year 1

Year 2

Year 3

Year 4

MACRS Rates

33.33%

44.45%

14.81%

7.41%

Instructions

Compute the amounts of depreciation recognized in each of first 4 years (2019, 2020 & 2021) under each of the depreciation methods listed below.

  1. Straight Line Method
  2. MACRS Method

Question Number 3:

On October 30, 2019, Afghan United Bank has purchased a brand new generator from a company at USA. The new generator has an invoice price of $5,000,000. Sales tax was computed at 12% of invoice price. Afghan United Bank has paid $100,000 as shipping cost to get generator from USA. After the generator arrives, installation cost of $150,000 is incurred, along with $50,000 testing costs. Compute the cost of generator and prepare journal entry to record purchase of generator.

Question Number 4:

During the fiscal year 2019, Alpha Corporation carried out the following transactions involving notes payable:

Feb. 1:              Borrowed $550,000 from Sun National Bank at an interest rate of 15% per annum,

signed a six month note payable.

July 31:            Paid Sun National Bank note plus accrued interest.

Instruction:

Prepare journal entries to record above transactions.

Question Number 5:

King Burger is a fast food restaurant operating as partnership firm of four individuals. The partners agree to share profit equally. The information regarding current year is as follows:

                  Watson            Taylor             Hayden               Dravid

Capital             $550,000          $600,000          $500,000             $650,000

Drawing           150,000          150,000          100,000               200,000           

Net income for the year amounted to $2,500,000.

Instructions:

  1. How much must each of four partners report income on his income tax return?
  2. Prepare Statement of Partner’s Equity for current year ended Dec 31, 2019?

In: Finance

An increase in price will result in no change in total revenue if: * A) the...


An increase in price will result in no change in total revenue if: *
A) the percentage change in price is large enough to cause quantity demanded to fall to zero.
B) the coefficient of elasticity is equal to zero.
C) the percentage change in quantity demanded is equal to the percentage change in price (in absolute values).
D) the demand function is perfectly elastic.
Assume the demand for a good is price inelastic, i.e., ed < 1 (in absolute value). This means that if price decreases by 50 percent, quantity demanded will: *
A) increase by more than 50 percent.
B) decrease by more than 50 percent.
C) increase by less than 50 percent.
D) decrease by less than 50 percent.
As the percentage of the consumer's income accounted for by a particular good decreases, demand for the good will: *
A) tend to become more price elastic.
B) tend to become more price inelastic.
C) tend to become closer to unit elastic.
D) tend toward being perfectly elastic.
For an inferior good, the income elasticity of demand is: *
A) positive or negative depending on the share of income accounted for by the good.
B) always negative
C) positive if income increases and negative when income declines.
D) always equal to 1.
"Supply" is best defined as the relationship between: *
A) the current price of a good and the quantity supplied at that price.
B) the price of a good or service and the quantity supplied by producers at each price during a period of time.
C) the cost of producing a good and the price consumers are willing to pay for it.
D) the quantity supplied and the price people are willing to pay for a good.
Which of the following would cause a change in supply, as opposed to a change in quantity supplied, in the market for purchasing new homes? *
A) A decrease in the price of rental housing.
B) A decrease in the price of new homes
C) An increase in the incomes of home buyers.
D) An increase in the number of buyers in the market for used homes.
Many people consider lentils to be an inferior good. For such people, all else held constant, an increase in income would cause their demand for lentils to: *
A) increase.
B) stay the same.
C) decrease.
D) cannot be determined with the information given.
Suppose the demand for good X is given by Q_x^d = 300 – 15Px + 20Py - 60I , where Px is the price of good X. Py is the price of some other good Y, and I is income. Assume that Px is currently $50, Py is currently $100, and I is currently $1200 *
A) Goods X and Y are complement goods
B) The supply is elastic
C) Good Y is a normal good
D) Good X is an inferior good
The price elasticity of demand is calculated as: *
A) the change in price divided by the change in quantity demanded.
B) the change in quantity demanded divided by the change in price.
C) the percentage change in price divided by the percentage change in quantity demanded.
D) the percentage change in quantity demanded divided by the percentage change in price.
Which of the following pairs of goods would be expected to have a positive cross-price elasticity of demand? *
A) coffee and tea.
B) gasoline and cars
C) tennis racquets and tennis balls.
D) hot dogs and hot dog buns.
As the price of socks increases, what would reasonably be expected to happen to the equilibrium price and equilibrium quantity of shoes? (Socks and shoes are complements.) *
A) Equilibrium price would increase and equilibrium quantity would decrease.
B) Equilibrium price and quantity would both decrease.
C) Equilibrium price would decrease and equilibrium quantity would increase.
D) Equilibrium price and quantity would both increase.
As we move up the demand curve, the price elasticity of demand *
A) increases
B) decreases
C) becomes unitary
D) does not change
If the price of lemonade increases relative to the price of grape juice, the demand for: *
A) grape juice will decrease.
B) grape juice will increase.
C) lemonade will decrease.
D) lemonade will increase.
Suppose a consumer's income increases from $30,000 to $36,000. As a result, the consumer increases her purchases of compact disks (CDs) from 25 CDs to 30 CDs. What is the consumer's income elasticity of demand for CDs? *
A) 0.5
B) 1.0
C) 1.5
D) 2.0

In: Economics