Questions
An automobile company has decided to launch a CSR program in which they will be initiating...

An automobile company has decided to launch a CSR program in which they will be initiating several social and environmental cause activities. Suggest five measures/indicators for the company which can be used to evaluate the success of their

(a) Social initiatives

1.

2.

3.

4.

5.

(b) Environmental initiatives.

1.

2.

3.

4.

5.

In: Operations Management

Please take this c++ code and make it into java code. /* RecursionPuzzleSolver * ------------ *...

Please take this c++ code and make it into java code.

/* RecursionPuzzleSolver

* ------------

* This program takes a puzzle board and returns true if the

* board is solvable and false otherwise

*

* Example: board 3 6 4 1 3 4 2 5 3 0

* The goal is to reach the 0. You can move the number of spaces of your

* current position in either the positive / negative direction

* Solution for this game is +3, -1, +4, +2, -3, +4

*/

#include <iostream>

#include <vector> // for vector

using namespace std;



/* Solvable

* --------

* Solvable returns true if there is a solution to the puzzle

* false otherwise.

*

*/

bool Solvable(int start, vector<int> & squares){

if (squares[start] == 0) return true;

else{

int nextForward = start + squares[start];

int nextBackward = start - squares[start];

if( nextForward<=squares.size()-1 && nextBackward>=0 ){

return ( Solvable(nextForward, squares) || Solvable(nextBackward,squares) );

}

if ( nextForward>squares.size()-1 && nextBackward>=0) {

return ( Solvable(nextBackward, squares));

}

if (nextForward<=squares.size()-1 && nextBackward<0 && squares[start]!=squares[nextForward]){

return ( Solvable(nextForward, squares));

}

if ( squares[start] == squares[nextForward] &&

nextBackward<0 &&

nextForward+squares[nextForward]>squares.size()-1){

return false;

}

else return false;

}

}

/* boolToString

* --------

* boolToString returns string "true" if the argument is true or 1

* returns string "false" otherwise

*

*/

string boolToString(bool boolean){

if(boolean)

{

return "true";

}

else

{

return "false";

}

}

int main(){

vector<int> puzzle1 {3, 6, 4, 1, 3 ,4, 2, 5, 3, 0};

vector<int> puzzle2 {3, 1, 2, 3, 0};

vector<int> puzzle3 {1,0};

vector<int> puzzle4 {1, 3, 2, 2, 1, 0};

cout << boolToString( Solvable(0, puzzle1) ) << endl; // true

cout << boolToString( Solvable(0, puzzle2) ) << endl; // false

cout << boolToString( Solvable(0, puzzle3) ) << endl; // true

cout << boolToString( Solvable(0, puzzle4) ) << endl; // true

return 0;

}

In: Computer Science

Python: def factors(matrix, factor): The matrix is a 3D list of integers. factors are either one,...

Python:

def factors(matrix, factor):

The matrix is a 3D list of integers.

factors are either one, two, or three

If the factor is 'one' it will return a the first value from each list

if the factor is 'two' it will return the second value, and same for the third.

Example;

input = [ [ [1, 2, 3], [3, 2, 9], [9, 8, 6] ],

[ [0, 0, 4], [8, 9, 0], [5, 2, 1] ],

[ [0, 1, 1], [5, 5, 9], [3, 8, 4] ] ], 'one')

output = [ [1, 3, 9], [0, 8, 5], [0, 5, 3] ]

In: Computer Science

1. Discuss the individual statistical significance of the coefficient for each independent variable for each of...

1. Discuss the individual statistical significance of the coefficient for each independent variable for each of the preceding simple and multiple linear regression models at a 90% level of confidence and 95% level of confidence.

Selling Price Living Area (Sq Feet) No. Bathrooms No Bedrooms
$145,000 1,152 1 2
$103,000 1,290 1.5 3
$210,000 2,396 1.5 4
$559,000 3,090 4 4
$218,000 1,428 1 3
$262,138 1,631 2.5 3
$125,000 1,368 1 3
$130,000 1,134 1 3
$157,500 1,697 1.5 3
$193,000 1,666 2.5 3
$275,000 1,738 2.5 4
$240,000 1,457 1.5 2
$200,136 1,632 2.5 3
$395,000 2,186 2.5 3
$366,703 2,117 2.5 3
$103,150 936 1 3
$310,000 3,347 2.5 6
$142,900 1,824 2.5 4
$359,770 2,592 3 3

In: Statistics and Probability

Write a function argmax(somelist=[]) to return the index of the largest number in a numerical list,...

Write a function argmax(somelist=[]) to return the index of the largest number in a numerical list, or None if the list is empty. If there are ties, then return the index of the first occurrence of the largest number. Sample: argmax([2, 2, 4, 4, 1]) returns 2. in python program

In: Computer Science

Following are the 2 projects Richard Soderberg is thinking about investing in: Project 1                            

Following are the 2 projects Richard Soderberg is thinking about investing in:

Project 1                                   

Year

Free Cash Flow

0

($900) Initial Investment

1

($90)

2

$241

3

$273

4

$283

5-15

$280

      

*Project 1 initial investment at time zero is $900 (Outflow)

Project 2

Year

Free Cash Flow

0

($1900) Initial Investment

1

($1400)

2

$116

3

$635

4

$690

5

$755

6

$826

7-15

$849

*Project 2 initial investment at time zero is $1900 (Outflow)

Question) Find the following:

1) Discounted payback period of project 1 and 2 at the following rates: 8%,20%

2) Net Present Value of project 1 and 2 at the following rates: 8%, 20%

3) Profitability Index of both project 1 and 2

Note: Please do not solve using excel sheet formula or financial calculator

In: Finance

Consider the following time series. Quarter Year 1 Year 2 Year 3 1 71 68 62...

Consider the following time series.

Quarter Year 1 Year 2 Year 3
1 71 68 62
2 49 41 51
3 58 60 53
4 83 85 72

b. Use the following dummy variables to develop an estimated regression equation to account for seasonal effects in the data: Qtr1 = 1 if Quarter 1, 0 otherwise; Qtr2 = 1 if Quarter 2, 0 otherwise; Qtr3 = 1 if Quarter 3, 0 otherwise. Enter negative values as negative numbers.

Value = + Qtr1 + Qtr2 + Qtr3

c. Compute the quarterly forecasts for next year.

Quarter 1 forecast
Quarter 2 forecast
Quarter 3 forecast
Quarter 4 forecast


In: Statistics and Probability

Given an array of positive numbers and a positive number S, find the length of the...

Given an array of positive numbers and a positive number S, find the length of the smallest contiguous subarray whose sum is greater than or equal to S. Return 0, if no such subarray exists.

Example 1

Input: [2, 1, 5, 2, 3, 2], S=7 Output: 2 Explanation: The smallest subarray with a sum great than or equal to '7' is [5, 2].

Example 2

Input: [2, 1, 5, 2, 8], S=7 Output: 1 Explanation: The smallest subarray with a sum greater than or equal to '7' is [8].

Example 3

Input: [3, 4, 1, 1, 6], S=8 Output: 3 Explanation: Smallest subarrays with a sum greater than or equal to '8' are [3, 4, 1] or [1, 1, 6].

CODE::

class Main {
public static int findSmallestSubarray(int[] arr, int S){
// write your code here
}
public static void main(String[] args) {
// write your code here
}
}

In: Computer Science

1) The following table describes the costs of production for a firm. Quantity 0 1 2...

1) The following table describes the costs of production for a firm.

Quantity 0 1 2 3 4 5 6
Average Total Cost - 600 325 240 205 196 200
TVC 0 ? ? 220 ? ? ?

     

What is the average variable cost at a production level of 4 units?

Group of answer choices

a 185

b 80

c 100

d 320

e None of these answers

2)

Suppose a firm faces the following costs:

Quantity 0 1 2 3 4 5
TFC 400 400 400 400 400 400
TC 400 600 700 850 1100 1400

    

What is the average variable cost at a quantity of 4 units?

Group of answer choices

a 175

b 375

c 275

d 100

In: Economics

Applying your knowledge of metabolism, glycolysis starts with one molecule of glucose (6C) and produces a...

Applying your knowledge of metabolism, glycolysis starts with one molecule of glucose (6C) and produces a net total of __________.

View Available Hint(s)

Applying your knowledge of metabolism, glycolysis starts with one molecule of glucose (6C) and produces a net total of __________.

1) one pyruvates; 2 NADH; 2 ATP
2) one pyruvate; 2 NADH; 4 ATP
3) two pyruvates; 4 NADH; 2 ATP
4) two pyruvates; 2 NADH; 2 ATP   

In: Biology