Questions
First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3...

First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3 L4 L5 L6 L7 L8 L9 P0 P1 P2 E0 E1 E2 FI ATT
------------------------------------------------------------------------------------------------------------------------------------------
Kevin Smith 90 100 100 100 98 97 87 100 85 87 89 100 100 100 100 90 100 98 90 100 98 98 98 90 90 98 88 0.00
Morgan Kelly 80 100 65 67 69 71 100 100 100 67 95 85 87 89 100 65 67 69 71 100 98 98 98 65 67 69 71 0.10
Isaac Newton 100 90 100 90 100 90 100 90 100 100 100 100 100 100 100 100 100 100 100 100 98 98 98 90 90 98 88 0.00
Cole Jones 100 100 100 87 73 75 77 79 81 87 89 91 73 75 77 79 81 100 100 100 98 100 65 67 69 71 63 0.05
Angela Allen 100 100 100 87 89 91 93 95 100 100 100 100 100 100 100 95 97 100 98 98 98 90 73 75 77 79 81 0.02
David Cooper 56 58 60 62 64 100 100 100 87 73 75 77 100 100 77 79 81 100 100 100 98 70 72 74 76 78 88 0.00
Nancy Bailey 100 87 89 91 93 95 100 100 100 100 100 100 91 93 95 97 100 98 100 100 98 98 98 90 90 98 88 0.00
Emily Synder 65 67 69 71 62 64 73 75 77 58 60 62 79 66 68 70 72 81 74 76 78 90 90 74 76 98 88 0.00
Lori Austin 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 98 98 98 90 90 98 88 0.02
Jenny Howard 56 58 60 62 71 62 64 73 100 66 68 70 72 74 76 78 100 100 100 60 62 79 66 68 70 68 70 0.03
Anne Lewis 100 86 58 60 100 71 62 64 73 94 66 68 90 72 74 76 78 67 68 69 70 71 98 88 76 78 68 0.04
Nick Johnson 100 100 89 91 73 75 77 79 81 100 100 100 98 100 100 95 85 87 89 100 98 98 98 80 76 78 98 0.01
Nick Spickler 100 93 95 97 100 98 98 98 90 100 89 91 93 95 97 100 100 89 91 93 95 97 98 98 90 90 98 0.00
Joy Williams 75 77 58 60 62 79 66 68 70 72 81 100 100 71 62 64 73 94 66 98 90 90 98 68 90 88 77 0.00
Barbara Hood 100 67 95 85 87 89 91 93 95 97 85 87 100 100 100 71 62 64 73 94 66 68 98 98 90 90 88 0.00
Joe Hoarn 62 63 64 65 66 67 68 69 70 71 100 81 100 100 71 62 64 73 100 100 98 98 64 73 94 66 68 0.08
Payton Bardzell 100 100 100 97 87 67 95 85 87 89 91 93 95 97 100 100 100 95 85 87 89 100 98 90 90 78 98 0.00
Kim Ludwig 71 62 64 73 75 77 58 60 62 79 66 68 70 72 81 100 100 79 66 68 70 72 98 98 90 90 98 0.09
Susan Honks 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 90 90 88 100 100 100 100 0.00

Write the program in C++ read the grades of all the students from the file above. For each student’s scores,

The program most be define arrays to keep scores for quizzes, labs, projects, midterms. Secondly, read in the grades for each student and define a function to calculate and return the average grade of quizzes, labs, projects and midterms. Sample prototype of this function: float getAverage(float gradeArray[], int arraySize); // a function to calculate average of array. Also, define a function to calculate and return the final letter grade of this student. Note the total grade, average project grade, and the attendance will be taken into consideration when the final grade is calculated. Last importantly, output this student’s first name, last name, and final letter grade in a nice format to a file named letter120.dat. Each student’s data is in one line. This file should be in the same location as data that is given from the above file. The format should be as following:

First Name Last Name Final Grade

Nick Johnson A

Anne Lewis B

Writing the program in C++

Use constants to keep the percentage values in the above table.

COMMENT YOUR CODE.

Give meaningful variable, array, and function names based on this program.

Arrays and functions are implemented properly.

The grade is calculated correctly and output file is generated properly.

In: Computer Science

First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3...

First Last Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 L0 L1 L2 L3 L4 L5 L6 L7 L8 L9 P0 P1 P2 E0 E1 E2 FI ATT
------------------------------------------------------------------------------------------------------------------------------------------
Kevin Smith 90 100 100 100 98 97 87 100 85 87 89 100 100 100 100 90 100 98 90 100 98 98 98 90 90 98 88 0.00
Morgan Kelly 80 100 65 67 69 71 100 100 100 67 95 85 87 89 100 65 67 69 71 100 98 98 98 65 67 69 71 0.10
Isaac Newton 100 90 100 90 100 90 100 90 100 100 100 100 100 100 100 100 100 100 100 100 98 98 98 90 90 98 88 0.00
Cole Jones 100 100 100 87 73 75 77 79 81 87 89 91 73 75 77 79 81 100 100 100 98 100 65 67 69 71 63 0.05
Angela Allen 100 100 100 87 89 91 93 95 100 100 100 100 100 100 100 95 97 100 98 98 98 90 73 75 77 79 81 0.02
David Cooper 56 58 60 62 64 100 100 100 87 73 75 77 100 100 77 79 81 100 100 100 98 70 72 74 76 78 88 0.00
Nancy Bailey 100 87 89 91 93 95 100 100 100 100 100 100 91 93 95 97 100 98 100 100 98 98 98 90 90 98 88 0.00
Emily Synder 65 67 69 71 62 64 73 75 77 58 60 62 79 66 68 70 72 81 74 76 78 90 90 74 76 98 88 0.00
Lori Austin 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 98 98 98 90 90 98 88 0.02
Jenny Howard 56 58 60 62 71 62 64 73 100 66 68 70 72 74 76 78 100 100 100 60 62 79 66 68 70 68 70 0.03
Anne Lewis 100 86 58 60 100 71 62 64 73 94 66 68 90 72 74 76 78 67 68 69 70 71 98 88 76 78 68 0.04
Nick Johnson 100 100 89 91 73 75 77 79 81 100 100 100 98 100 100 95 85 87 89 100 98 98 98 80 76 78 98 0.01
Nick Spickler 100 93 95 97 100 98 98 98 90 100 89 91 93 95 97 100 100 89 91 93 95 97 98 98 90 90 98 0.00
Joy Williams 75 77 58 60 62 79 66 68 70 72 81 100 100 71 62 64 73 94 66 98 90 90 98 68 90 88 77 0.00
Barbara Hood 100 67 95 85 87 89 91 93 95 97 85 87 100 100 100 71 62 64 73 94 66 68 98 98 90 90 88 0.00
Joe Hoarn 62 63 64 65 66 67 68 69 70 71 100 81 100 100 71 62 64 73 100 100 98 98 64 73 94 66 68 0.08
Payton Bardzell 100 100 100 97 87 67 95 85 87 89 91 93 95 97 100 100 100 95 85 87 89 100 98 90 90 78 98 0.00
Kim Ludwig 71 62 64 73 75 77 58 60 62 79 66 68 70 72 81 100 100 79 66 68 70 72 98 98 90 90 98 0.09
Susan Honks 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 90 90 88 100 100 100 100 0.00

Write the program in C++ read the grades of all the students from the file above. For each student’s scores,

The program most be define arrays to keep scores for quizzes, labs, projects, midterms. Secondly, read in the grades for each student and define a function to calculate and return the average grade of quizzes, labs, projects and midterms. Sample prototype of this function: float getAverage(float gradeArray[], int arraySize); // a function to calculate average of array. Also, define a function to calculate and return the final letter grade of this student. Note the total grade, average project grade, and the attendance will be taken into consideration when the final grade is calculated. Last importantly, output this student’s first name, last name, and final letter grade in a nice format to a file named letter120.dat. Each student’s data is in one line. This file should be in the same location as data that is given from the above file. The format should be as following:

First Name Last Name Final Grade

Nick Johnson A

Anne Lewis B

Writing the program in C++ beginners

Use constants to keep the percentage values in the above table.

COMMENT YOUR CODE.

Give meaningful variable, array, and function names based on this program.

Arrays and functions are implemented properly.

The grade is calculated correctly and output file is generated properly.

In: Computer Science

Suppose the price elasticity of demand for smartphones is 0.5 (absolute value), while the price elasticity...

Suppose the price elasticity of demand for smartphones is 0.5 (absolute value), while the price elasticity of supply is 1.9.

a) Are the demand and supply of smartphones price elastic or price inelastic? Briefly explain.

b) In order to increase total revenue, should the sellers of smartphones raise or cut the price? Explain with a diagram.

c) If the government imposes a per-unit tax of $100 on the sellers of smartphones, how will the price and quantity transacted of smartphones change? Will the sellers or the buyers bear a larger tax burden? Will the market be able to achieve economic efficiency after the tax is imposed? Explain with a diagram.

In: Economics

What is the price of an American-style call option assuming a 4% annual risk-free rate, a...

  1. What is the price of an American-style call option assuming a 4% annual risk-free rate, a strike price = $150, and 3 years to maturity.  In each year the price can either rise by a factor of 1.3 or fall by a factor of 0.9.  The current price of the underlying asset is $100 and it pays no dividends.
  2. Why is the price in part a different than you would get from inputting a 10% drift and 20% volatility into the Black Scholes equation?
  3. What would be the price of an American-style put option on the same stock with the same maturity as in part a above?

In: Finance

What is the price of an American-style call option assuming a 4% annual risk-free rate, a...

  1. What is the price of an American-style call option assuming a 4% annual risk-free rate, a strike price = $150, and 3 years to maturity.  In each year the price can either rise by a factor of 1.3 or fall by a factor of 0.9.  The current price of the underlying asset is $100 and it pays no dividends.
  2. Why is the price in part a different than you would get from inputting a 10% drift and 20% volatility into the Black Scholes equation?
  3. What would be the price of an American-style put option on the same stock with the same maturity as in part a above?

In: Finance

2. Consider the following data for three stocks. Stock         Initial Price    Final Price       Number of Outstanding...

2. Consider the following data for three stocks.

Stock         Initial Price    Final Price       Number of Outstanding Shares

Stock 1      $10                 $12                   20 million

Stock 2      $25                 $24                   5 million

Stock 3      $100               $106                 1 million

Compute the rate of return for each of the following portfolios:

(a) Price weighted

(b) Value weighted

(c) Equal weighted

In: Finance

A monopolist faces a market demand curve of q=100-p. The monopolist’s cost function is given by...

  1. A monopolist faces a market demand curve of q=100-p. The monopolist’s cost function is given by (q) = 3000 + 20q.

    a) If the monopolist can perfectly price discriminate, how many units will be sold?
    b) If the monopolist can perfectly price discriminate, how much consumer surplus will there be?
    c) If the monopolist cannot price discriminate, how much consumer surplus will there be? (For this question, think long run.)

In: Economics

Consider a call and put on the same underlying asset. The call has an exercise price...

Consider a call and put on the same underlying asset. The call has an exercise price of $100 and costs $20. The put has an exercise price of $90 and costs $12. 3.1 Graph a short position in a strangle based on these two options. [3] 3.2 What is the worst outcome from selling the strangle? [1] 3.3 At what price of the asset does the strangle have a zero profit?

In: Finance

Fill in with the correct symbolsa. The algebraic value of long Q shares of stock...

Fill in with the correct symbols

a. The algebraic value of long Q shares of stock is W = _____X.

b. At expiration the value of an October 60 Call with stock price of X is Max( _________, 0).

c. At expiration the value of an October 70 Put with stock price of 65 is ____________per share quoted price.

d. The algebraic value of long 100 shares of stock at price X and long one put of value P is W = ______________

e. At expiration if the price of the stock is 60 and the value of a call option is $7 per share quoted price then the value of the covered write is ____________per share quoted price.

In: Finance

When considering nominal vs real GDP, which one do economists calculate first. How do economists arrive...

  1. When considering nominal vs real GDP, which one do economists calculate first. How do economists arrive at the final result? Given a particular year, what does it mean when the GDP deflator > 100? When the GDP deflator > 100, which is larger, nominal or real GDP? Which one, nominal or real GDP, do economists use to judge whether or not there has been growth?

In: Economics