A consignment of 12 car engines contains 1 engine that is faulty. Two engines are chosen randomly from this consignment for testing. How many different combinations of 2 engines can be chosen?
In: Math
DRAW A K-MAP FOR THIS SIX VARIABLE .
THE OUTPUT VALUES ARE,6,7,8,16,17,19,20,22,23,24,25,26,29,30,31,32,33,35,38,39,40,42,45,48,50,51,52,54,55,57,58,59,60,62,63)
DRAW K-MAP
LAYOUT OF K -MAP
SOP THANKYOU
In: Computer Science
A cylindrical specimen of a brass alloy 8.3 mm (0.33 in.) in
diameter and 76.7 mm (3.02 in.) long is pulled in tension with a
force of 7360 N (1655 lbf); the force is subsequently
released.
(a) Compute the final length of the specimen at
this time. The tensile stress-strain behavior for this alloy is
shown in Animated Figure 7.12.
(b) Compute the final specimen length when the
load is increased to 20300 N (4563 lbf) and then released.
In: Physics
Why wont my java program print out anything past "please enter a group of at least 5 integers"?
import java.util.Scanner;
public class MyStatistics {
public static void main(String[] args) {
// TODO Auto-generated method
stub
Scanner sc=new
Scanner(System.in);
System.out.println("Please enter a
group of at least 5 integers.");
String count_val =
sc.nextLine();
int[] int_array = new int[5];
int sum_val = 0;
int mean_val = 0;
System.out.println("Your input has
" + count_val.split(" ").length + " numbers");
//Input 5 Numbers
for(int x = 0; x < 10;
x++){
int_array[x] = sc.nextInt();
}
//Find the sum
for(int x = 0; x < 10;
x++){
sum_val = sum_val +
int_array[x];
}
//Find the average
for(int x = 0; x < 5;
x++){
mean_val = sum_val +
int_array[x];
}
System.out.println("The sum is: " +
sum_val);
System.out.println("The mean is: "
+ sum_val / 5);
}
}
In: Computer Science
The company publishes one regional magazine each in Upper North island (UN), Lower North island (LN), Upper South island (US), and Lower South island (LS). The company has 300,000 customers (subscribers) distributed throughout the four regions. On the first of each month, an annual subscription INVOICE is printed and sent to each customer whose subscription is due for renewal. The INVOICE entity contains a REGION attribute to indicate the customer’s region of residence (UN, LN, US, LS):
CUSTOMER (CUS_NUM, CUS_NAME, CUS_ADDRESS, CUS_CITY, CUS_REGION, CUS_SUBSDATE)
INVOICE (INV_NUM, INV_REGION, CUS_NUM, INV_DATE, INV_TOTAL)
The company is aware of the problems associated with centralized management and has decided that it is time to decentralize the management of the subscriptions in its four regional subsidiaries. Each subscription site will handle its own customer and invoice data. The management at company headquarters, however, will have access to customer and invoice data to generate annual reports and to issue ad hoc queries, such as:
• List all current customers by region.
• List all new customers by region.
• Report all invoices by customer and by region.
Given these requirements, how must you partition the database? How many fragments will you create? Design the database fragments for the INVOICE table and show two rows of sample data for each fragment.
In: Computer Science
matching Document or do not document A)indicate whether or not you need to document in the following situation:you change a lot of the wording of a paragraph.B)indicate whether or not you need to document in the following situation: you list the birthplace of George Washington.C)indicate whether or not you need to document in the following situation: you use a sentence from a speech you got from an audio web site.D) indicate whether or not you need to document in the following situation: you're not sure whether you should document a source or not.
In: Computer Science
The SN2 Reaction can be described as chemospecicific; define the terms "chemoselectivity" and "chemospecificity", and explain the origin of the observed chemospecifity in the williamson ether synthesis
In: Chemistry
Suppose today S&P 500 index is 1800 and the continuously compounded annual dividend yield on the index is 2%.
Assume that it is possible to lend at 4 % and borrow at 7 %, annually continuously compounded.
a) Above what futures price is there arbitrage?
b) Below what futures price is there arbitrage?
Please show the cash flows, which make each type of arbitrage and explain what you would
do at each relevant date. Consider time to maturity of 6 months
.
In: Finance
Q2
You have been asked by the management of Mok Ltd to assist with the preparation of the income tax entries for the year ended 30 June 2018. The company reported a profit before tax for the year to 30 June 2018 of $900 000. The company’s statements of financial position include assets and liabilities as follows:
|
2018 |
2017 |
|
|
Accounts receivable |
$ 245 000 |
$ 200 000 |
|
Allowance for doubtful debts |
(20 000) |
(10 000) |
|
Plant – at cost |
600 000 |
600 000 |
|
Accumulated depreciation |
(190 000) |
(120 000) |
|
Development asset – at cost |
360 000 |
200 000 |
|
Accumulated amortisation |
(130 000) |
(80 000) |
|
Interest receivable |
10 000 |
20 000 |
|
Provision for long-service leave |
48 000 |
62 000 |
|
Deferred tax asset |
? |
21 600 |
|
Deferred tax liability |
? |
60 000 |
(a) The company is entitled to claim a tax deduction of 125% on development costs when incurred.
(b) Interest revenue of $10 000 is included in the profit for the year to 30 June 2018.
(c) Expenses included in profit for the year to 30 June 2018 are as follows:
parking and other fines $10 000
depreciation expense for plant $70 000
doubtful debts expense $25 000
amortisation of development asset $50 000
long-service leave expense $36 000.
(d) Accumulated depreciation on plant for tax purposes is $280 000 on 30 June 2018 and $180 000 on 30 June 2017. There have been no acquisitions or disposals of plant during the current year.
(e) The corporate tax rate is 30%.
Required
Complete the current tax and deferred tax worksheets of Mok Ltd and prepare the tax entries for 30 June 2018.
In: Accounting
Hi it's the java stack to convert from infix to postfix
If I want to fix this code to calculate each numbers not just displaying the numbers what should I do?
Would you help me to fix the result?
import java.util.Stack;
import java.util.Scanner;
class Main
{
//Function to return precedence
static int Prec(char ch)
{
switch (ch)
{
case '+':
case '-':
return 1;
case '*':
case '/':
return 2;
case '^':
return 3;
}
return -1;
}
static String infixToPostfix(String exp)
{
// initializing empty String for result
String result = new String("");
Stack<Character> stack = new Stack<>();
int i=0;
int len=exp.length();
for ( i = 0; i<len; ++i)
{
char c = exp.charAt(i);
if (Character.isLetterOrDigit(c))
result =result+ c;
else if (c == '(')
stack.push(c);
else if (c == ')')
{
while (!stack.isEmpty() && stack.peek() != '(')
result =result+ stack.pop();
if (!stack.isEmpty() && stack.peek() != '(')
return "Invalid Expression";
else
stack.pop();
}
else
{
//for operators
while (!stack.isEmpty() && Prec(c) <=
Prec(stack.peek()))
result =result+ stack.pop();
stack.push(c);
}
}
while (!stack.isEmpty())
result =result+ stack.pop();
return result;
}
public static void main(String[] args)
{
String exp = "(5+8)*(7-3)";
String exp2="6+7*(3+9)/2";
System.out.println("Infix "+exp);
System.out.println("Postfix "+infixToPostfix(exp));
System.out.println("Infix "+exp2);
System.out.println("Postfix "+infixToPostfix(exp2));
}
}
In: Computer Science
Real Shocks and the ‘Keynesian Cross’
Suppose the economy of Canada has reached the long-run equilibrium (i.e. full employment) and assume that the function of exports and imports are as follows:
(1) EX =α0 +α1q+α2(Y∗ −T∗)
(2) IMP =β0 −β1q+β2(Y −T)
where q is the real exchange rate between Canadian and US goods, Y − T is the Canadian disposable income, Y ∗ − T ∗ is the US disposable income, and the α’s and the β’s are positive parameters.
Assume that Prime Minister Trudeau decides to implements a temporary policy that convinces Canadians to buy less imported goods at any given real exchange rate and any given level of disposable income. In particular, assume that this policy lowers β0 in the import function shown above.
Explain how this temporary shock affects the level of output, consumption, investment, government expenditure, the nominal interest rate, the nominal and real exchange rates, and the level of prices in the short run. Use the AA-DD model to answer this question and do not forget to use a diagram to support your answer.
In: Economics
JAVA
Implement and test the following static recursive methods.
1) DigitCount – find the sum of the digits in an integer digitCount(12345) would be 5
2) Power2 - Efficiently compute exponentiation for non-negative exponents by the following recursive algorithm:
bx = 1 if x == 0
bx = (b(x/2))2 if x is even bx = b * (b(x-1)) if x is odd
3) Write a recursive method isBackwards that has two String parameters and returns true if the two Strings have the same sequence of characters but in the opposite order (ignoring white space and capitalization), and returns false otherwise. The method should throw an IllegalArgumentException if either String is null.
Test this method with following examples, isBackwards("Fried", "deirf") -> true isBackwards("Sit", "Toes") -> false isBackwards("", "") -> true
isBackwards("I madam", "mad am I") -> true
In: Computer Science
Explain how financial
intermediaries channel household savings into
financial investment. (300
words)
thank you
In: Finance
Using the following text string: axcbramneltodaydy
Search for the following pattern: 'today' Specify whether or not you found the pattern. The minimum requirement is to use the string STL, the brute force method and hard code both the text and the pattern.
For extra credit, you can add any of the following:
1. Do not use the string STL.
2. Allow me to enter both the text string and the pattern, including spaces. You can designate a special end-of-text character for me to include.
3. Use the Boyer-Moore algorithm instead of brute force.
4. Identify the location where the pattern was found within the text.
5. Allow for the possibility that the pattern can appear more than once in the text and identify all of the locations where the pattern was found.
In: Computer Science
simple staining lab 3 simple stain experiment
In: Biology