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 |
||||
|
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 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 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 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.
|
||||||||||||||||||||||||
| 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.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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.) |
||
|
In: Accounting
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 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) {
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 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.
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:
In: Finance
In: Economics