Questions
JAVA Write a program that reads the integers between -100 and 100 and counts the occurrences...

JAVA Write a program that reads the integers between -100 and 100 and counts the occurrences of each with ascending order.

input: line1:number of figures

line2:number

Sample Input

5
-3
100
-1
-2
-1

Sample Output

-3 1
-2 1
-1 2
100 1

In: Computer Science

Today is 1 July 2020. Joan has a portfolio which consists of two different types of...

Today is 1 July 2020. Joan has a portfolio which consists of two different types of financial instruments (henceforth referred to as instrument A and instrument B). Joan purchased all instruments on 1 July 2012 to create this portfolio and this portfolio is composed of 28 units of instrument A and 50 units of instrument B.

Instrument A is a zero-coupon bond with a face value of 100. This bond matures at par. The maturity date is 1 January 2030.


Instrument B is a Treasury bond with a coupon rate of j2 = 3.93% p.a. and face value of 100. This bond matures at par. The maturity date is 1 January 2023.

(a) Calculate the current price of instrument A per $100 face value. Round your answer to four decimal places. Assume the yield rate is j2 =2.96% p.a.

Select one:

a. 59.7976

b. 75.6434

c. 58.9255

d. 57.4510

In: Finance

Praveen Co. manufactures and markets a number of rope products. Management is considering the future of...


Praveen Co. manufactures and markets a number of rope products. Management is considering the future of Product XT, a special rope for hang gliding, that has not been as profitable as planned. Since Product XT is manufactured and marketed independently of the other products, its total costs can be precisely measured. Next year’s plans call for a $250 selling price per 100 yards of XT rope. Its fixed costs for the year are expected to be $500,000, up to a maximum capacity of 550,000 yards of rope. Forecasted variable costs are $150 per 100 yards of XT rope.

1.  iEstimate Product XT’s break-even point in terms of sales units and sales dollars. (1 unit = 100 yards)

2. Prepare a contribution margin income statement showing sales, variable costs, and fixed costs for Product XT at the break-even point.

In: Accounting

Suppose there are two firms in a market who each simultaneously choose a quantity. Firm 1’s...

Suppose there are two firms in a market who each simultaneously choose a quantity. Firm 1’s quantity is q1, and firm 2’s quantity is q2. Therefore the market quantity is Q = q1 + q2. The market demand curve is given by P = 100 – 2Q. Also, each firm has constant marginal cost equal to 10. There are no fixed costs. The marginal revenue of the two firms are given by: MR1 = 100 – 4q1 – 2q2 MR2 = 100 – 2q1 – 4q2. A) How much output will each firm produce in the Cournot equilibrium? B) What will be the market price of the good? C) What is the deadweight loss that results from this duopoly? D) How much profit does each firm make? E) Suppose Firm 2 produced 25 units of output. How much output should Firm 1 produce in order to maximize profit?

In: Economics

Cheap airline and Discount airline fly around the U.S. from their Hub in Sanford Florida. A...

Cheap airline and Discount airline fly around the U.S. from their Hub in Sanford Florida. A sample of two-way ticket price of 10 cities where these two companies fly is taken.

City Cheap Airline Discount Airline
Panama City, Florida

$230

$230

Reno, Nevada

$190

$230

Los Angeles, California

$100

$200

Syracuse, New York

$130

$99

Seattle, Washington

$230

$430

Miami, Florida

$170

$130

San Antonio, Texas

$220

$330

Chicago, Illinois

$100

$330

Atlanta, Georgia

$100

$130

Minneapolis, Minnesota

$230

$330



At 95 %, is there a statistical difference between these two populations?   

a. Not enough information is given to answer this question

b. The null hypothesis should be rejected

c.The null hypothesis should not be rejected

d.I have no idea

In: Statistics and Probability

Acme Corp has a target debt/equity ratio of 0.35. It was $350 million in bonds outstanding...

Acme Corp has a target debt/equity ratio of 0.35. It was $350 million in bonds outstanding with a yield of 7% and 50 million shares of stock outstanding with a current market price of $20 per share. The company’s beta is 1.32 and the risk-free rate of interest is 4% with a market risk premium of 6%. The firm has a tax rate of 25%. The company is looking to raise $250 million to build a second factory. The new factory will increase output substantially. The table below shows the anticipated cash flows generated from the new factory including a salvage value in year 5. What is the IRR of this project?

Year Cash Flow ($mill)
0 -250
1 50
2 50
3 100
4 100
5 100

Group of answer choices

13.47%

14.21%

15.58%

12.26%

In: Finance

Write a program that will calculate numerical and letter grades for a student and output a...

Write a program that will calculate numerical and letter grades for a student and output a report:

  1. The information will be in the provided data file studentGrades.txt. The data file consists of several rows of data containing a student name and information for 3 types of assignments:
  2. First Name, Last Name, number of homework grades, values for homework grades, percentage of total grade, number of program grades, values for program grades, percental of total grade, number of ex-am grades, values for ex-am grades, percentage of ex-am grades. For example, the first row of the data file contains the following:

Sherlock Holmes 3 100 100 100 0.15 3 75 80 90 0.40 3 60 70 70 0.45

The student, Sherlock Holmes, has three homework grades, each with a value of 100. Homework is 15% of total grade. He has three program grades with values of 75, 80, 90. Program is 40% of grade. He has three exa-ms grades of 60, 70, 70. Exa-ms are 45% of grade.

  1. Request the name of the input file from the user. Do not “hard-code” the file name in the program. Check to ensure the input file opens. If it does not open, display an appropriate message to the user and exit the program.
  2. Using a looping construct, read until end of file. Do not hard code the number of rows in the loop. The file must be read using an outer loop and three inner/nested loops to read all the data properly. The first number will aid in determining the NUMBER of grades to read. Do NOT assume there will be only 3 values in each category. Code for a variable number of values in each category.
  3. The maximum points for each assignment, homework and ex am are 100. The maximum points for each may be calculated by multiplying the number of assignments in the group by 100. Calculate final grade using the following formula:

((total HOMEWORK Points earned/maximum HOMEWORK points) * percent of total grade) + (total PROGRAM Points earned/maximum PROGRAM points) * percent of total grade) + (total EX-AM Points earned/maximum EX-AM points) * percent of total grade)) * 100

  1. Use the final numerical grade to look up corresponding letter grade as follows:

90 - 100 = A

80 - 89 = B

70 - 79 = C

60 - 69 = D

< 60 = F

  1. Use the final letter grade to look up a "witty" comment of your choice, using a SWITCH statement. A statement must be output for each letter grade above. For example:

A = "Most excellent work”

B = "IMHO You Passed"

etc.

  1. Request an output file name from the user. Do not “hard-code” the file name in the program. Check to ensure the output file opens. If it does not open, display an appropriate message to the user and exit the program.
  2. For each student, output the following to the console (screen) and the output file in a neat, readable format. Output each input line on one output line. Use manipulators to output values in readable columns:

Student Name, Total Points (numerical grade): NN. Letter Grade: X. Depending on letter grade, The witty comment.

  1. Include the following documentation. Points will be deducted if you do not include the following documentation:

The name of your C++ file

Your name

Some kind of date, either the due date or the date you finished

The type of input

The type of output

A brief description of the algorithm/program

Watch for 1-off errors; truncated grade values; infinite loops

Turn in file code *.cpp; README file; input file (even though provided) and ALL output files. You DO NOT need to submit the executable (*.exe). You MAY zip all the files and submit if you choose. You MUST include all the files indicated or points will be deducted.

README must contain instructions for location of input/output files

STUDENT .TXT

Sherlock Holmes 3 100 100 100 0.15 3 75 80 90 0.40 3 60 70 70 0.45
Constant Success 4 100 88 100 92 0.15 3 75 80 90 0.40 2 100 89 0.45
Happy Grant 3 79 82 77 0.15 3 80 82 93 0.40 3 86 90 76 0.45
Reach Further 3 100 99 98 0.15 3 98 97 93 0.40 3 88 90 99 0.45

In: Computer Science

Write a program that will calculate numerical and letter grades for a student and output a...

  1. Write a program that will calculate numerical and letter grades for a student and output a report:
  2. The information will be in the provided data file studentGrades.txt. The data file consists of several rows of data containing a student name and information for 3 types of assignments:
  3. First Name, Last Name, number of homework grades, values for homework grades, percentage of total grade, number of program grades, values for program grades, percental of total grade, number of ex-am grades, values for ex-am grades, percentage of ex-am grades. For example, the first row of the data file contains the following:

Sherlock Holmes 3 100 100 100 0.15 3 75 80 90 0.40 3 60 70 70 0.45

The student, Sherlock Holmes, has three homework grades, each with a value of 100. Homework is 15% of total grade. He has three program grades with values of 75, 80, 90. Program is 40% of grade. He has three exa-ms grades of 60, 70, 70. Exa-ms are 45% of grade.

  1. Request the name of the input file from the user. Do not “hard-code” the file name in the program. Check to ensure the input file opens. If it does not open, display an appropriate message to the user and exit the program.
  2. Using a looping construct, read until end of file. Do not hard code the number of rows in the loop. The file must be read using an outer loop and three inner/nested loops to read all the data properly. The first number will aid in determining the NUMBER of grades to read. Do NOT assume there will be only 3 values in each category. Code for a variable number of values in each category.
  3. The maximum points for each assignment, homework and ex am are 100. The maximum points for each may be calculated by multiplying the number of assignments in the group by 100. Calculate final grade using the following formula:

((total HOMEWORK Points earned/maximum HOMEWORK points) * percent of total grade) + (total PROGRAM Points earned/maximum PROGRAM points) * percent of total grade) + (total EX-AM Points earned/maximum EX-AM points) * percent of total grade)) * 100

  1. Use the final numerical grade to look up corresponding letter grade as follows:

90 - 100 = A

80 - 89 = B

70 - 79 = C

60 - 69 = D

< 60 = F

  1. Use the final letter grade to look up a "witty" comment of your choice, using a SWITCH statement. A statement must be output for each letter grade above. For example:

A = "Most excellent work”

B = "IMHO You Passed"

etc.

  1. Request an output file name from the user. Do not “hard-code” the file name in the program. Check to ensure the output file opens. If it does not open, display an appropriate message to the user and exit the program.
  2. For each student, output the following to the console (screen) and the output file in a neat, readable format. Output each input line on one output line. Use manipulators to output values in readable columns:

Student Name, Total Points (numerical grade): NN. Letter Grade: X. Depending on letter grade, The witty comment.

  1. Include the following documentation. Points will be deducted if you do not include the following documentation:

The name of your C++ file

Your name

Some kind of date, either the due date or the date you finished

The type of input

The type of output

A brief description of the algorithm/program

Watch for 1-off errors; truncated grade values; infinite loops

Turn in file code *.cpp; README file; input file (even though provided) and ALL output files. You DO NOT need to submit the executable (*.exe). You MAY zip all the files and submit if you choose. You MUST include all the files indicated or points will be deducted.

README must contain instructions for location of input/output files

STUDENT .TXT

Sherlock Holmes 3 100 100 100 0.15 3 75 80 90 0.40 3 60 70 70 0.45
Constant Success 4 100 88 100 92 0.15 3 75 80 90 0.40 2 100 89 0.45
Happy Grant 3 79 82 77 0.15 3 80 82 93 0.40 3 86 90 76 0.45
Reach Further 3 100 99 98 0.15 3 98 97 93 0.40 3 88 90 99 0.45

In: Computer Science

What price do farmers get for their watermelon crops? In the third week of July, a...

What price do farmers get for their watermelon crops? In the third week of July, a random sample of 41 farming regions gave a sample mean of x bar = $6.88 per 100 pounds of watermelon. Assume that σ is known to be $2.00 per 100 pounds.

(c) A farm brings 15 tons of watermelon to market. Find a 90% confidence interval for the population mean cash value of this crop (in dollars). What is the margin of error (in dollars)? Hint: 1 ton is 2000 pounds. (For each answer, enter a number. Round your answers to two decimal places.)

lower limit $

upper limit $

margin of error

In: Statistics and Probability

The table below provides information about price and output produced in country X for the years...

The table below provides information about price and output produced in country X for the years 2010 and 2015. The base year is 2010.

                                                            p2010              y2010              p2015             y2015

Clothing                                              20                    100                  20                    150

Food                                                   10                    50                    12                    60

Government pension payments        75                    500                  100                  750

Military equipment                            250                  750                  250                  800

  1. Using the GDP deflator, determine whether inflation or deflation occurred during the period. Enter the value of the GDP deflator and the inflation or deflation rate.
  1. Enter the percent change in the value of production over the period.
  1. Enter the value of government purchases in 2015 as a percentage of RGDP

In: Economics