Explain the importance of calculating the beta value of individual stocks in estimating the risk tolerance...

Explain the importance of calculating the beta value of individual stocks in estimating the risk tolerance of investors? Explain with examples.

In: Finance

The CAPM’s Security Market Line (SML) equation examines the relationship between a security’s market risk and...

The CAPM’s Security Market Line (SML) equation examines the relationship between a security’s market risk and its required rate-of-return. Explain the importance of this relationship from a Finance Management perspective. Explain how market perceptions of risk affect the required rate of return on investment. Explain with examples.

In: Finance

In C++ the largest int value is 2147483647. So, an integer larger than this cannot be...

In C++ the largest int value is 2147483647. So, an integer larger than
this cannot be stored and processed as an integer. Similarly if the sum or
product of two positive integers is greater than 2147483647, the result will
be incorrect.
One way to store and manipulate large integers is to store each individual
digit of the number in an array. In this assignment, you will design a class
named LargeInteger such that an object of this class can store an integer
of any number of digits. Your abstract data type LargeInteger will support
member functions to add() two LargeInteger objects together and return
a new resulting LargeInteger object. You will only implement an unsigned
integer, we will not worry about handling negative large integers in this assignment.
Likewise, subtraction and especially multiplication are a bit more
complicated, and we will leave those operations for later. But in addition
to the add() member function, you will implement several other member
functions and constructors, that will be useful to implementing addition of
the LargeInteger values.

C++ , Please add function documentation, Use the @param tags for all parameters, and @return tag for the return value

For this assignment you need to perform the following tasks. You will be given 3 template les, and some of the LargeInteger class will already have been implemented for you (I will give you a simple constructor and the class destructor). You should implement the member functions, in this order, and uncomment the test code incrementally to test your functions as you implement them.

1. Implement a tostring() member function. This function will return a string representation of the LargeInteger. You should probably used string streams to implement this function. Note that the digits of the large integer are stored in reverse of their display order, e.g. the 1's place (100 ) is in index 0 of digits, the 10's place (101 ) is in index 1, etc.

2. Implement a second constructor for the LargeInteger. This constructor will be used to construct a large integer from an array of digits. This constructor takes an int, which is the size of the array of digits, and an integer array as the second parameter. You will need to dynamically allocate the space for the digitis in your constructor (see the given constructor for an example).

3. Implement a member function named maxDigits(). This function will take a reference to a LargeInteger as its only parameter. This function should return the number of digits in the larger LargeInteger comparing the passed in object to this object.

4. Implement a member function named digitAtPlace(). This function returns the digit of this large integer object at a particular digit index. So this function takes an integer index as its input parameter, and returns an integer as its result. Again, if you ask for the digitAtPlace() index 0, this should return the 1's place 100 digit of the integer. If asked for the digit at place 1, this should return the 10's place 101 digit. If you ask for a digit place that is larger than the number of digits in the integer the member function should return 0. For example, if the integer represents 345, and you ask for the digit at place 3, then the function will return a 0. Likewise, if a negative index is given to this function, it should also return 0.

5. Implement a member function named appendDigit(). This functions takes an int digit as its only parameter. This will be a void function as it does not return any value result from calling it. The function is not something a normal user of the LargeInteger type is likely to need to do to an integer, but it will be very useful for our add function. This function appends the digit to become the new most signicant digit of the LargeInteger object. For example, if the large integer object represents the value 345 and we ask it to appendDigit(7), then the new value of the object will be 7345. This function needs to manage memory to perform its task. You need to perform the following steps 1) allocate a new array of digits of numDigits+1 (e.g. enough space to hold one more digit). 2) copy the old digits to the new array of digits you created. 3) append the new passed in digit to the end of the array. Then 4) free up the old original array of digits, and make sure you class now uses the new array of allocated digits. Also, you might want to have this function ignore the append of a '0' digit (e.g. do not grow the large integer if trying to append a 0, as this does not need to be represented by the LargeInteger).

6. And nally, implement the add() member function. This function takes a reference to another LargeInteger object, and adds the digits of the other object to this object together.

Lets discuss the algorithm for the add() member function in more detail. This function will simply take a reference parameter of type LargeInteger as its one and only parameter. You need to perform the following steps in your add() member function:

1. Dynamically allocate a new array to hold the resulting sum of this and the other LargeInteger. Use the maxDigits() member function to determine the size needed for this new array. The size of the resulting sum will either be equal to the number of digits of the larger of the 2 numbers, or this value + 1 if there is a carry on the most signicat sum. We handle needing to grow the result in the last step of the algorithm. For example if this large ineteger has the value 4537 (4 digits) and the other has the value of 23 (2 digits), the result will t in 4 digits, which is what maxDigits() should return. Only if we have a carry would we need an extra digit. For example if this is 4537 and the other is 7242 the result of adding them together would be 11779, which needs 5 digits. But as mentioned, we will grow to accomodate a nal carry in the last step of the algorithm.

2. Perform the addition, from least signicant digit to most signicant digit, handling carry as needed. Use the digitAtPlace() member function here, as this will determine if each number has a digit, or will return a 0 if you are beyond the size of each number. The resulting digits should be stored in the new array you allocated in step 1. Also make sure you keep track of the carry, and at the end, you should know if a 0 or 1 was carried from the addition of the last most signicant digits.

3. Dynamically allocate a new LargeInteger() object, using the constructor you created that takes an array as its parameter. You will pass in the array of new digits you summed up in step 2 and its size that you determined and dynamically allocated in step 1.

4. If there was a carry on the last most signicant digit, use the appendDigit() member function to add the carry value as the new most signicant digit to the new LargeInteger() you created in step 3. As mentioned above, you could also just have your appendDigit() function ignore a request to append a '0' digit, thus in your add() you could always just call appendDigit() with the nal carray, and the append would append or ignore as appropriate.

5. Finally the add() function should return a reference to the new LargeInteger() that contains the calculated sum you just computed and assigned to it.

***You should add the function prototypes to the class declaration in the LargeInteger.hpp le, and implement the class member functions asked for in the LargeInteger.cpp le. You should not add any code to the assg-03.cpp le, only remove the comments to perform the tests shown on your functions.

In: Computer Science

def sum_gt_avg(num_list): Implement a function that returns the sum of the numbers in num_list that have...

def sum_gt_avg(num_list): Implement a function that returns the sum of the numbers in num_list that have a value greater than the average value in the list. • Parameters: num_list is a list of numbers (mixed integers and floats) • Examples: sum_gt_avg([1,2,3,4,5]) → 9 # 4+5

sum_gt_avg([1,2,3,-4,5]) → 10 # 2+3+5

sum_gt_avg([-1,-2,-3,-4,-5]) → -3 # -1-2

in python

In: Computer Science

A brick laid its greatest dimension horizontal and its face parallel to the wall face called...

A brick laid its greatest dimension horizontal and its face parallel to the wall face called

A)Shiner

B) Plasticity

C) Strength

D) All of the above

Grouting brick or CMU wall serves to

  1. Increase the cross sectional area of the wall
  2. Resist vertical and lateral shear loads
  3. Bonds wythes together

D. All of the above

In: Civil Engineering

Create a SQLite Replit that creates a table representing students in a class, including at least...

Create a SQLite Replit that creates a table representing students in a class, including at least name, graduation year, major, and GPA.

Include two queries searching this student data in different ways, for example searching for all students with graduation year of 2021, or all students with GPA above a certain number.

Here is an example you can work from: https://repl.it/@klmec/SQLExample (this is the default example from Replit; you can choose among several other examples when you create a new SQLite Replit).

In: Computer Science

Apply DMAIC to improve the following at any university. Course registration.

Apply DMAIC to improve the following at any university.

Course registration.

In: Operations Management

In an experiment, subjects were asked to mentally imagine the letter 'F'. They were then instructed...

In an experiment, subjects were asked to mentally imagine the letter 'F'. They were then instructed to mentally move around the letter and make a judgement on each corner. The researchers found that

they could respond more accurately by pointing than by responding verbally.
only about half of the participants could complete the task at all.
they could respond more quickly in verbal form than by pointing.
most could not complete the task, but those who did preferred to point.

In: Psychology

For this computer assignment, you are to write and implement an interactive C++ program to find...

For this computer assignment, you are to write and implement an interactive C++ program to find and print all prime numbers, which are less than or equal to a given value of n, using the algorithm known as the Sieve of Eratosthenes. A prime number p is an integer greater than 1 that is divisible only by 1 and p (itself). The algorithm begins by initializing a set container to contain all the integers in the range 2 to n. A loop makes multiple passes over the elements in the set, using successive integer key values 2, 3, 4, … Each pass “shakes free” nonprime numbers and lets them “filter through the sieve.” At the end, only the prime numbers remain. Begin with the integer m = 2, which is the smallest prime number. The pass scans the set and removes all multiples of 2, having the form 2 * k for k >= 2. The multiples cannot be prime numbers, because they are divisible by 2. At the end of the pass, we have removed all even numbers except 2. Next, look at the integer m = 3, which is a prime number. As with value 2, remove all multiples of 3, having the form 3 * k for k >= 3. The multiples 12, 18, and so forth, are even numbers, so they have already been removed from the set. The next key integer is m = 4, which is no longer in the set, because it was removed as a multiple of 2. The pass takes no action. The process continues until it removes all multiples of prime numbers. In other words, for integer m, remove all multiples of m, having the form m * k for k >= m.

The numbers that remain in the sieve are the prime numbers in the range 2 to n. The algorithm uses an optimization feature by looking at the key values for m <= sqrt ( n ). However, in your implementation, test all numbers m such that m * m <= n, rather than computing the square root of n.

Programming Notes:

1. Use a set container to store the prime numbers. In the STL, a set is implemented as an associative container, it uses the model of a mathematical set, it stores keys that are objects of a specified data type, where duplicate keys are not allowed. To use a set in your program, you need to insert the statement: #include in your header file.

2. In addition to the main ( ) routine, implement (at least) the following two subroutines in your program: • void sieve ( set < int >& s, int n ): This routine can be used to apply the Sieve of Eratosthenes algorithm to remove all nonprime numbers from the integer set s = { 2, 3, …, n }. • void print_primes ( const set < int >& s ): This routine can be used to print the elements in the integer set s (NO_ITEMS = 16 primes per line and ITEM_W = 4 spaces allocated for each prime). Sieve of Eratosthenes 2

3. The main ( ) routine creates an empty set of integers and prompts the user for an upper limit and calls the subroutine sieve ( ) to execute the Sieve of Eratosthenes. It calls the subroutine print_primes ( ) to print the prime numbers on stdout.

4. Include your header file prog3.h, by inserting the statement: #include “prog3.h” at the top of your source file prog3.cc.

ALSO PLEASE ATTACH AN HEADER FILE

In: Computer Science

An exercise science major wants to try to use body weight to predict how much someone...

An exercise science major wants to try to use body weight to predict how much someone can bench press. He collects the data shown below on 30 male students. Both quantities are measured in pounds.

Body weight

Bench press

148

145

176

148

154

133

189

156

181

166

217

174

210

168

150

139

137

109

151

119

172

138

219

167

142

131

143

119

164

151

136

124

147

149

129

134

219

162

169

140

180

149

187

156

198

149

156

131

220

149

154

138

212

147

122

122

163

133

136

136

b) Compute a 95% confidence interval for the average bench press of 150 pound males. What is the lower limit? Give your answer to two decimal places.  

c) Compute a 95% confidence interval for the average bench press of 150 pound males. What is the upper limit? Give your answer to two decimal places.  

d) Compute a 95% prediction interval for the bench press of a 150 pound male. What is the lower limit? Give your answer to two decimal places.  

e) Compute a 95% prediction interval for the bench press of a 150 pound male. What is the upper limit? Give your answer to two decimal places.  

In: Math

The goal of this assignment is to write five short Java/Pyhton programs to gain practice with...

The goal of this assignment is to write five short Java/Pyhton programs to gain practice with expressions, loops and conditionals.

  1. Boolean and integer variables and Conditionals.

Write a program Ordered.java that reads in three integer command-line arguments, x, y, and z.   Define a boolean variable isOrdered whose value is true if the three values are either in strictly ascending order  (x < y < z) or in strictly descending order  (x > y > z), and false otherwise.

Print out the variable isOrdered using System.out.println(isOrdered).

% java Ordered 10 17 49

true

% java Ordered 49 17 10

true

% java Ordered 10 49 17

false

  1. Type conversion. There are a number of different formats for representing color.  RGB format specifies the level of red (R), green (G), and blue (B) on an integer scale from 0 to 255:

It is the primary format for LCD displays, digital cameras, and web pages. CMYK format specifies the level of cyan (C), magenta (M), yellow (Y), and black (K) on a real scale of 0.0 to 1.0:

It is the primary format for publishing books and magazines.

Write a program RGBtoCMYK.java that reads in three integers red, green, and blue from the command line and prints out equivalent CMYK parameters. The mathematical formulas for converting from RGB to an equivalent CMYK color are:

Hint.   Math.max(x, y) returns the maximum of x and y.

        % java RGBtoCMYK 75 0 130       // indigo

cyan    = 0.423076923076923

magenta = 1.0

yellow  = 0.0

black   = 0.4901960784313726

If all three red, green, and blue values are 0, the resulting color is black (0 0 0 1).

In: Computer Science

Packaging Solutions Corporation manufactures and sells a wide variety of packaging products. Performance reports are prepared...

Packaging Solutions Corporation manufactures and sells a wide variety of packaging products. Performance reports are prepared monthly for each department. The planning budget and flexible budget for the Production Department are based on the following formulas, where q is the number of labor-hours worked in a month:

Cost Formulas
Direct labor $16.20q
Indirect labor $4,000 + $2.00q
Utilities $5,500 + $0.30q
Supplies $1,600 + $0.20q
Equipment depreciation $18,300 + $2.90q
Factory rent $8,400
Property taxes $2,900
Factory administration $13,500 + $0.50q

The Production Department planned to work 4,200 labor-hours in March; however, it actually worked 4,000 labor-hours during the month. Its actual costs incurred in March are listed below:

Actual Cost Incurred in March
Direct labor $ 66,360
Indirect labor $ 11,580
Utilities $ 7,150
Supplies $ 2,650
Equipment depreciation $ 29,900
Factory rent $ 8,800
Property taxes $ 2,900
Factory administration $ 14,830

Prepare the Production Department’s flexible budget performance report for March, including both the spending and activity variances.(Indicate the effect of each variance by selecting "F" for favorable, "U" for unfavorable, and "None" for no effect (i.e., zero variance). Input all amounts as positive values.)

Packaging Solutions Corporation
Production Department Flexible Budget Performance Report
For the Month Ended March 31
Actual Results Flexible Budget Planning Budget
Labor-hours 4,000
Direct labor $66,360
Indirect labor 11,580
Utilities 7,150
Supplies 2,650
Equipment depreciation 29,900
Factory rent 8,800
Property taxes 2,900
Factory administration 14,830
Total expense $144,170

In: Accounting

Trecek Corporation incurs research and development costs of $685,000 in 2017, 30 percent of which relate...

Trecek Corporation incurs research and development costs of $685,000 in 2017, 30 percent of which relate to development activities subsequent to IAS 38 criteria having been met that indicate an intangible asset has been created. The newly developed product is brought to market in January 2018 and is expected to generate sales revenue for 10 years.

Assume that a U.S.–based company is issuing securities to foreign investors who require financial statements prepared in accordance with IFRS. Thus, adjustments to convert from U.S. GAAP to IFRS must be made. Ignore income taxes.

Required:

  1. Prepare journal entries for research and development costs for the years ending December 31, 2017, and December 31, 2018, under (1) U.S. GAAP and (2) IFRS.

  2. Prepare the entry(ies) that Trecek would make on the December 31, 2017, and December 31, 2018, conversion worksheets to convert U.S. GAAP balances to IFRS.

In: Accounting

Question #1 A bakery's use of corn sweetener is normally distributed with a mean of 80...

Question #1

A bakery's use of corn sweetener is normally distributed with a mean of 80 gallons per day and a standard deviation of four gallons per day. Lead time for delivery of the corn sweetener is normal, with a mean of six days and a standard deviation of two days. If the manager wants a service level of 99 percent, calculate the following: [Note: for a 99% service level the appropriate z value is 2.33] Equations:

  1. Assuming demand is constant at 80 gallons per day and lead time is variable as indicated above, what would the reorder point be?

  1. Assuming lead time is constant at six days and demand is variable as indicated above, what would the reorder point be?

  1. The supply chain manager for this bakery is considering two options to improve performance. Option #1 is marketing effort to gain new customers that will stabilize demand. Options #2 is a long term contract with the supplier which will guarantee delivery lead times. Which option would you recommend and why?



In: Operations Management

Here are the abbreviated financial statements for Planner’s Peanuts: INCOME STATEMENT, 2019 Sales $ 3,500 Cost...

Here are the abbreviated financial statements for Planner’s Peanuts:

INCOME STATEMENT, 2019
Sales $ 3,500
Cost 2,700
Net income $ 800
BALANCE SHEET, YEAR-END
2018 2019 2018 2019
Assets $ 4,500 $ 5,000 Debt $ 833 $ 1,000
Equity 3,667 4,000
Total $ 4,500 $ 5,000 Total $ 4,500 $ 5,000

Assets are proportional to sales. If the dividend payout ratio is fixed at 50%, calculate the required total external financing for growth rates in 2020 of (a) 20%, (b) 25%, and (c) 30%. (Do not round intermediate calculations. Round your answers to 2 decimal places.)

In: Finance