In: Accounting
A
The agreement of the trial balance totals is an indication that all transactions have been properly recorded in the books of accounts. Do you agree with this statement? Required: Outline 4 reasons to justify your response. B ABC Ltd started business on 1/1/14, and its financial year ends on 31st December each year. The following information was extracted from the company’s asset register. DATE TRANSACTION AMOUNT (GHS) 2016 January, 1 Purchased one motor van 58,500 2016 September, 1 Purchased two motor vans 78,000 each 2018 March, 1 Purchased one motor van 45,200 2018 May, 2 Sold the motor van purchased in January 2016 18,240 2019 April 1 Purchased three motor vans 62,000 each Additional Information The company’s policy is to depreciate Motor vehicles at a rate of 20% per annum on cost. You are required to prepare: i) The Motor vehicles account (2016-2019) ii) Provision for depreciation account (2016-2019) iii) Disposal account for 2018 iv) Statement of profit or loss extract for 2018 and 2019 (1 mark) v) Statement of financial position extract for 2018 and 2019
In: Accounting
"Ted Cruz calls for the gold standard" Reem Nasr, CNBC Wednesday, 28 Oct 20 15 I think the Fed should get out of the business of trying to juice our economy and simply be focused on sound money and monetary stability, ideally tied to gold,' he said during the Republican presidential debate." Explain in terms of an economist the assumptions that underlie this policy position and the argument an economist would make to support this position (using appropriate graphs). Then, explain the argument an economist would make against this position
In: Economics
QS 16-27B Direct: Computing cash from operations LO P5
| CRUZ, INC. Comparative Balance Sheets December 31, 2019 |
|||||||
| 2019 | 2018 | ||||||
| Assets | |||||||
| Cash | $ | 72,900 | $ | 18,100 | |||
| Accounts receivable, net | 31,300 | 38,400 | |||||
| Inventory | 65,600 | 72,100 | |||||
| Prepaid expenses | 4,000 | 3,300 | |||||
| Total current assets | 173,800 | 131,900 | |||||
| Furniture | 80,600 | 93,500 | |||||
| Accum. depreciation—Furniture | (12,500 | ) | (7,100 | ) | |||
| Total assets | $ | 241,900 | $ | 218,300 | |||
| Liabilities and Equity | |||||||
| Accounts payable | $ | 11,400 | $ | 16,100 | |||
| Wages payable | 6,800 | 3,800 | |||||
| Income taxes payable | 1,200 | 2,100 | |||||
| Total current liabilities | 19,400 | 22,000 | |||||
| Notes payable (long-term) | 24,800 | 55,800 | |||||
| Total liabilities | 44,200 | 77,800 | |||||
| Equity | |||||||
| Common stock, $5 par value | 170,300 | 134,800 | |||||
| Retained earnings | 27,400 | 5,700 | |||||
| Total liabilities and equity | $ | 241,900 | $ | 218,300 | |||
| CRUZ, INC. Income Statement For Year Ended December 31, 2019 |
||||||
| Sales | $ | 373,800 | ||||
| Cost of goods sold | 240,600 | |||||
| Gross profit | 133,200 | |||||
| Operating expenses | ||||||
| Depreciation expense | $ | 28,800 | ||||
| Other expenses | 68,300 | 97,100 | ||||
| Income before taxes | 36,100 | |||||
| Income taxes expense | 13,100 | |||||
| Net income | $ | 23,000 | ||||
Use the above balance sheet and income statement to prepare the
operating activities section by direct method. Assume all
the sales were made on credit basis. (Amounts to be
deducted should be indicated with a minus sign.)
In: Accounting
Compare and contrast the Ni-NTA chromatography experiment and the HIC technique .
Name three general techniques or tools used in the Ni-NTA chromatography
What is histidine? Why is His6 such a popular protein tag for purification?
Summarize how the scientists produced the different variants of His6-GFP protein samples for purification.
How do we use His6/Ni-NTA interactions in experiments?
In: Biology
I need to be able to store 5000 names into an array. I currently have a code that generates one random name. I just need to generate an array of 5000 the same way.
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <iomanip>
using namespace std;
string RandomFirstGen(int namelength);
int main(){
srand(time(NULL));
int namelength = rand()%(16-8+1)+8;
cout<<"name is:
"<<RandomFirstGen(namelength)<<endl;
return 0;
}
string RandomFirstGen(int namelength){
for (int i=0; i<=5000 ; i++){
const int MAX = 26;
char alphabet[MAX] = {
'a', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z'};
string name = "";
for (int i = 0; i < namelength; i++)
name = name + alphabet[rand() % MAX];
return name;
}
}
In: Computer Science
In: Other
The following is a chart of 25 baseball players' salaries and statistics from 2016.
| Player Name | RBI's | HR's | AVG | Salary (in millions) |
|---|---|---|---|---|
| Joe Mauer | 49 | 11 | 0.261 | 23.000 |
| Robinson Cano | 103 | 39 | 0.298 | 24.050 |
| Leonys Martin | 47 | 15 | 0.245 | 4.150 |
| Brandon Crawford | 84 | 12 | 0.275 | 6.000 |
| Colby Rasmus | 54 | 15 | 0.206 | 15.800 |
| Carlos Gonzalez | 100 | 25 | 0.298 | 17.454 |
| Matt Kemp | 108 | 35 | 0.268 | 21.500 |
| Prince Fielder | 44 | 8 | 0.212 | 18.000 |
| Mark Teixeira | 44 | 15 | 0.204 | 23.125 |
| Yoenis Cespedes | 86 | 31 | 0.284 | 27.500 |
| Chris Iannetta | 24 | 7 | 0.210 | 4.550 |
| Ryan Howard | 59 | 25 | 0.196 | 25.000 |
| Matt Wieters | 66 | 17 | 0.243 | 15.800 |
| Jayson Werth | 70 | 21 | 0.244 | 21.571 |
| Justin Smoak | 34 | 14 | 0.217 | 3.900 |
| Adrian Gonzalez | 90 | 18 | 0.285 | 21.857 |
| Coco Crisp | 55 | 13 | 0.231 | 11.000 |
| Ben Zobrist | 76 | 18 | 0.272 | 10.500 |
| J.D. Martinez | 68 | 22 | 0.307 | 6.750 |
| Aaron Hill | 38 | 10 | 0.262 | 12.000 |
| Adrian Beltre | 104 | 32 | 0.300 | 18.000 |
| David Ortiz | 127 | 38 | 0.315 | 16.000 |
| Chris Davis | 84 | 38 | 0.221 | 21.119 |
| Evan Gattis | 72 | 32 | 0.251 | 3.300 |
| Curtis Granderson | 59 | 30 | 0.237 | 16.000 |
In order to have correlation with 95% significance, what is the
critical r-value that we would like to have?
(Round to three decimal places for all answers on this assignment.)
RBI vs. Salary
Complete a correlation analysis, using RBI's as the x-value and salary as the y-value.
Correlation coefficient:
Regression Equation: y=y=
Do you have significant correlation? Select an answer Yes No
HR vs. Salary
Complete a correlation analysis, using HR's as the x-value and salary as the y-value.
Correlation coefficient:
Regression Equation: y=y=
Do you have significant correlation? Select an answer Yes No
AVG vs. Salary
Complete a correlation analysis, using AVG as the x-value and salary as the y-value.
Correlation coefficient:
Regression Equation: y=y=
Do you have significant correlation? Select an answer Yes No
Prediction
Based on your analysis, if you had to predict a player's salary, which method would be the best? Select an answer Regression equation with RBI's Regression equation with HR's Regression equation with AVG The average of the 25 salaries
Using that method, predict the salary for Ryan Braun. His stats were:
RBI: 91
HR: 31
AVG: 0.305
Based on your analysis, his predicted salary would be: $ million
His actual salary was $20.000 million.
In: Statistics and Probability
Improve class OurLinkedList, so that its users can readily access a list's middle node. Readily here means that when users instantiate an OurLinkedList object, they can access the node in the middle of the list without starting from the head, counting how many nodes to the end, then going back to the head, and skipping half as many nodes forward. In fact, there should be no counting for this improvement. Notice that lists with an even number of nodes, do not have a well defined middle node and it is up to you to determine which node near the middle will be considered the middle one.
Your improvement must be delivered only in the form of a new class that extends OurLinkedList. Name the extending class, after yourself, as following:
class YourfirstnameLinkedList extends OurLinkedList { ... }
replacing Yourfirstname above, with your actual first name (e.g., MyLinkedList).
SOURCE CODE FOR QUESTION
public class OurLinkedList {
class Node {
String value;
Node next;
Node(String v) {
value = v;
next = null;
} // constructor Node
} // class Node
/**
* Accessor for the field size.
* @return number of nodes in the list.
*/
public int getSize() {
return size;
} // method getSize
public boolean nodeExists(String v) {
// Initial assumption: no node found with string v
boolean stringFound = false;
// Start from the beginning.
Node currentNode = head;
if ( currentNode == null) {
// Empty list.
stringFound = false;
} else {
// List is not empty. Let's check if the last node contains
// string we are looking for. We do this here, because the
// last node is unreachable in a loop that terminates when
// .next == null.
stringFound = tail.value == v;
// Search through the rest of the linked list, hopping from
// node to node, following the .next pointer.
while (currentNode.next != null) {
if ( currentNode.value == v) {
stringFound = true;
}
currentNode = currentNode.next;
}
}
return stringFound;
} // method nodeExists
public void addNode(String v) {
if (!nodeExists(v)) {
// The list does not contain a node with the given string.
// Let's create one and call it newNode.
Node newNode = new Node(v);
// We are adding this newNode to the list, so let's increase the
size.
size++;
// Now we need to determine where to add this new node.
if (head == null) {
// List is empty. Make this newNode the list's head.
head = new Node(v);
// Because the list is empty, make this node its tail as
well.
tail = head;
} else {
// The list is not empty. Find its tail node and add the
// newNode after it.
tail.next = newNode;
// Make the newNode, the list's new tail.
tail = newNode;
}
}
}
public boolean remove(String v) {
boolean success = false;
if (nodeExists(v)) {
success = true;
}
return success;
}
class MyLinkedList extends OurLinked {...}
public static void main(String[] args) {
OurLinkedList demo = new OurLinkedList();
}
}
The question wants us to find the middle of the list immediately without traversing the linked list conventionally but any help is great. There is no need to print the list just to know where the middle of the list is.
In: Computer Science
10.8 LAB*: Program: Data visualization
(1) Prompt the user for a title for data. Output the title. (1
pt)
Ex:
Enter a title for the data: Number of Novels Authored You entered: Number of Novels Authored
(2) Prompt the user for the headers of two columns of a table.
Output the column headers. (1 pt)
Ex:
Enter the column 1 header: Author name You entered: Author name Enter the column 2 header: Number of novels You entered: Number of novels
(3) Prompt the user for data points. Data points must be in this
format: string, int. Store the information before the
comma into a string variable and the information after the comma
into an integer. The user will enter -1 when they have finished
entering data points. Output the data points. Store the string
components of the data points in an ArrayList of strings. Store the
integer components of the data points in a second ArrayList of
integers. (4 pts)
Ex:
Enter a data point (-1 to stop input): Jane Austen, 6 Data string: Jane Austen Data integer: 6
(4) Perform error checking for the data point entries. If any of
the following errors occurs, output the appropriate error message
and prompt again for a valid data point.
Ex:
Enter a data point (-1 to stop input): Ernest Hemingway 9 Error: No comma in string. Enter a data point (-1 to stop input): Ernest, Hemingway, 9 Error: Too many commas in input. Enter a data point (-1 to stop input): Ernest Hemingway, nine Error: Comma not followed by an integer. Enter a data point (-1 to stop input): Ernest Hemingway, 9 Data string: Ernest Hemingway Data integer: 9
(5) Output the information in a formatted table. The title is right
justified with a minimum of 33 characters. Column 1 is left
justified with a minimum of 20 characters. Column 2 is right
justified with a minimum of 23 characters. (3 pts)
Ex:
Number of Novels Authored Author name | Number of novels -------------------------------------------- Jane Austen | 6 Charles Dickens | 20 Ernest Hemingway | 9 Jack Kerouac | 22 F. Scott Fitzgerald | 8 Mary Shelley | 7 Charlotte Bronte | 5 Mark Twain | 11 Agatha Christie | 73 Ian Flemming | 14 J.K. Rowling | 14 Stephen King | 54 Oscar Wilde | 1
(6) Output the information as a formatted histogram. Each name is
right justified with a minimum of 20 characters. (4 pts)
Ex:
Jane Austen ******
Charles Dickens ********************
Ernest Hemingway *********
Jack Kerouac **********************
F. Scott Fitzgerald ********
Mary Shelley *******
Charlotte Bronte *****
Mark Twain ***********
Agatha Christie *************************************************************************
Ian Flemming **************
J.K. Rowling **************
Stephen King ******************************************************
Oscar Wilde *In: Computer Science