int count=0;
for (int i=2; i <= 4; i++ ) {
StdOut.println(i);
for (int j=1; j <3; j++) {
count++;
StdOut.println(i +" " + j +" "+ count);
}
}
count |
i |
j |
I print |
||
0 |
2 |
1 |
3 |
1 |
1 |
1 |
2 |
3 |
2 |
2 |
|
3 |
3 |
3 |
3 |
||
4 |
|||||
3 |
|||||
StdOut.println( “ call 1” + x );
public static double funk2( int a, double b, int c) {
int x = 15;
double result;
result = b - a*c;
if ( result <= x)
StdOut.println( " result " + b);
else
StdOut.println(" comp " + result);
return result;
}
In: Computer Science
Create CRC card, class diagram and an object diagram for the school students' healthcare system that may have the entities represent a system for a student_patient billing system. Include only the attributes that would be appropriate for this context.
Student_Patient (age, name, hobbies, blood type, occupation, insurance carrier, address, phone)
Student_Insurance carrier (name, number of patients on plan, address, contact name, phone)
University_Doctor (specialty, provider identification number, golf handicap, age, phone, name)
In: Computer Science
Bronner’s Christmas Store is one of the largest in America. Bronner’s currently has one store located in Frankenmuth, Michigan. Bronner’s has decided to open up a second store in Heidelberg, Germany. Reflecting on each chapter in our textbook, respond to each of the following questions as though you were hired to be a consultant to Bronner’s.
What will be your staffing policy in Germany?
In: Operations Management
. As input you are given two arrays: an array of numbers ? and an array ? of queries where each query is a target number. The array ? is unsorted and may contain duplicates. Your goal is, for each query ? in the array ?, count the number of pairs in the array ? that sums up to ?; that is, the number of distinct pairs of indices [?, ?], with ? < ?, such that ?[?] + ?[?] = ?. Write a method, twoSumQuery, that given an array of numbers ? and an array ? of queries, returns an array ? with the same length as ?, such that for every index ?, ?[?] is the answer to query ?[?]. Let ? denote the length of ? and ? the length of ?. Suppose that in the actual input for this problem, we have the condition that ? > ? . For example, ? = 1000 and ? = 10,000,000. Your method must have time complexity ?(?).
The following is a few sample runs:
Input : ? = [0, 1, 2, 3, 4], ? = [1, 3, 6, 10]
Return: [1, 2, 1, 0]
Explanation: One pair in ? sums up to 1, namely (0, 1). Two pairs in ? sum up to 3, namely (0, 3) and (1, 2). One pair in ? sum up to 6, namely (2, 4). No pair in ? sums up to 10.
public class TwoSumQuery {
public static int[] twoSumQuery(int[] A, int[] Q)
{
//Replace this line with your
return statement
return null;
}
}
In: Computer Science
In: Computer Science
Q.333 The Endot Manufacturing Company, a manufacturer and wholesaler of widgets, has provided you with the following financial information. The Company has asked you to make an analysis of the firm’s financial condition. In addition to the information given below, you have been informed that the firm has no lease payments but has principal payments of $2 million per year on its Long-term debt. Endot uses a 365-day year in preparing its ratios. Endot has 5,000,000 common shares outstanding. Endot’s financial statements are as follows:
Balance Sheet as of December 31, 2014 (Millions of Dollars)
Cash
45
Accounts Payable
45
Marketable Securities
33
Notes Payable
45
Accounts Receivable
66
Other Current Liabilities
21
Inventory
159
Total Current Liabilities
111
Total Current Assets
303
Total Long Term Liabilities
24
Total Liabilities
135
Gross Fixed Assets
225
Less Depreciation
78
Common Stock
114
Net Fixed Assets
147
Retained Earnings
201
Total Shareholder Equity
315
Total Assets
450
Total Liabilities and Equity
450
Statement of Income and Expenses for Year Ended December 31, 2014 (Millions of Dollars)
Net Sales
795.0
Costs of Goods Sold
660.0
Gross Profit
135.0
Fixed Expense
73.5
EBITDA
61.5
Depreciation Expense
12.0
EBIT
49.5
Interest Expense
4.5
EBT
45.0
Taxes (40%)
18.0
Net Income
27.0
What was Endot's Quick (Acid Test) Ratio?
a. 0.37
b. 1.30
c. 1.73
d. 2.00
e. 2.73
Q 388 The Endot Manufacturing Company, a manufacturer and wholesaler of widgets, has provided you with the following financial information. The Company has asked you to make an analysis of the firm’s financial condition. In addition to the information given below, you have been informed that the firm has no lease payments but has principal payments of $2 million per year on its Long-term debt. Endot uses a 365-day year in preparing its ratios. Endot has 5,000,000 common shares outstanding. Endot’s financial statements are as follows:
Balance Sheet as of December 31, 2014 (Millions of Dollars)
Cash
45
Accounts Payable
45
Marketable Securities
33
Notes Payable
45
Accounts Receivable
66
Other Current Liabilities
21
Inventory
159
Total Current Liabilities
111
Total Current Assets
303
Total Long Term Liabilities
24
Total Liabilities
135
Gross Fixed Assets
225
Less Depreciation
78
Common Stock
114
Net Fixed Assets
147
Retained Earnings
201
Total Shareholder Equity
315
Total Assets
450
Total Liabilities and Equity
450
Statement of Income and Expenses for Year Ended December 31, 2014 (Millions of Dollars)
Net Sales
795.0
Costs of Goods Sold
660.0
Gross Profit
135.0
Fixed Expense
73.5
EBITDA
61.5
Depreciation Expense
12.0
EBIT
49.5
Interest Expense
4.5
EBT
45.0
Taxes (40%)
18.0
Net Income
27.0
If Endot's common stock is currently selling for $104.49 per share, what is Endot's Price to Earnings Ratio?
a.
580.5X
b.
104.49X
c.
41.8X
d.
19.35X
e.
It is impossible to determine the P/E ratio from the information given
In: Finance
Bear Brewery, based in Langley, British Columbia, specializes in craft beer. The brewery produces two ales: Amber and Dubbel. Bear Brewery aligns its ale prices with competitors. The brewery sells its Amber for $14.95 per case and its Dubbel for $15.65 per case. The per case variable costs for Amber include $3.50 in raw materials, $0.75 in packaging, $1.20 in manufacturing overhead and $0.55 in shipping. Dubbel’s per case variable costs are $3.85 in raw materials, $0.75 in packaging, $1.95 in manufacturing overhead and $0.75 in shipping. Fixed costs include office lease of $25,000, office supplies of $4,500 and marketing expenses of $6,000. Create a spreadsheet that provides the income position of the brewery for the upcoming year. The brewery projects demand to be 10,000 cases for Amber, and 8,000 cases for Dubbel. Assuming a unit to unit sale, what is a more profitable beer for Bear Brewery? Determine the break-even for each beer, assuming that fixed expenses are allocated as follows: 45% for Amber and 55% for Dubbel. Provide a chart showing the break-even point for each beer.
In: Economics
Q1: Translate the following Bytes to Decimal and Hexadecimal
a) 00001001
b) 111111111
c) 11101110
d) 01010101
In: Computer Science
C
Write a function that takes as input an array of int pointers, multiplies the ints the pointers point to by -1, and then sorts the array such that the values pointed to by the pointers are in decreasing order. For example, if the array is size 10 the pointer at index 0 will point to the largest value after multiplying by -1 and the pointer at index 9 will point to the smallest value after multiplying by -1. If the input is invalid the function should return 1. Otherwise, the function should return 0. Note- a pointer to the array size is passed to the function, NOT the actual size.
In: Computer Science
C
Write a function that appends the second character array to the first, replaces the first array with the result and replaces the second character array with the original first array. For example, if the first character array is "hello" and the second is "world" at the end of the function the new value of the first character array should be"helloworld" and the second array should be "hello". If the input is invalid the function should return 1. Otherwise, the function should return 0.
In: Computer Science
What do you believe are the most significant ways in which APA sanctions lead to state sanctions for legal and/or ethical violations in the practice of psychology and psychological research? Why?
In: Psychology
What are the two most common measures of cash?
A. Cash position and accounts payable
B. Cash (and cash equivalents) and cash flow from operations
C. Accounts receivable and working capital
D. Earnings per share and dividends per share
In: Accounting
research the emergence and incidence of respiratory ailments such as Severe Acute Respiratory Syndrome
In: Nursing
build a program which performs matrix multiplication on square matrices.
use UNIX "time" to capture the time it takes to run the program with different data sizes.
Languages: Python
Task: Create matrix multiplication
Input: Size of square matrix. Size should be 250, 500, 1000, 1500, 2000
Internals: Explicitly or implicitly allocate sufficient memory
to hold three NxN floating point Matrices,
using a random number generator -- populate two of the
Matrices,
Multiply the two matrices, putting the result into the third
Your routine should have not output
Externals: Your are to use UNIX "time" to time the runtime of the 5 experiments.
In: Computer Science