Questions
Find and describe five (5) stocks or bonds from Caribbean based companies. For example you may...

Find and describe five (5) stocks or bonds from Caribbean based companies. For example you may pick 2 stocks and 3 bonds, you decide. Be sure to quote the latest stated price.

In: Finance

Directions: Write a program to calculate students’ average test scores and their grades. You may assume...

Directions:

Write a program to calculate students’ average test scores and their grades. You may assume the following input data:

Johnson 85 83 77 91 76

Aniston 80 90 95 93 48

Cooper 78 81 11 90 73

Gupta 92 83 30 69 87

Blair 23 45 96 38 59

Clark 60 85 45 39 67

Kennedy 77 31 52 74 83

Bronson 93 94 89 77 97

Sunny 79 85 28 93 82

Smith 85 72 49 75 63

Use three arrays: a one-dimensional array to store the students’ names, a (parallel) two-dimensional array to store the test scores, and a parallel one-dimensional array to store grades. Your program must contain at least the following functions: a function to read and store data into two arrays, a function to calculate the average test score and grade, and a function to output the results. Have your program also output the class average.

So below is my code so far.

I'm getting the error "readData (inputFile, name, scores)"

Is there another way to do this? Please help thanks.

#include <iostream>

#include <fstream>

#include <string>

#include <iomanip>

using namespace std;

const int MAX = 50;

void getdata(ifstream& infile, string name[],int grades[][5], int& n)

{

n = 0;

int i = 0, j = 0;

while (!infile.eof())

{

infile >> name[i];

for (int j = 0; j < 5; j++)

infile >> grades[i][j];

i++;

}

n = i;

}

char calculateGrade(double average)

{

if(average >=90)

   cout<<"A" << endl;

else if(average >=80)

   cout<<"B" << endl;

else if(average >=70)

   cout<<"C\n";

else if(average >=60)

   cout<<"D\n";

else

   cout<<"F\n";

return 0;

}

void calculateaverage(int a[][5],char grade[], double avg[])

{

for(int i = 0; i < 10; i++)

{

double sum = 0.0;

for (int j = 0; j<5; j++)

sum += a[i][j];

avg[i] = sum / 5.0;

grade[i] = calculateGrade(avg[i]);

}

}

void print(string names[], double avg[], int scores[][5], char grade[], int n)

{

cout << setw(10) << "Student name" << setw(20) << "Test Scores" << endl;

for (int i = 0; i<n; i++) {

cout << setw(10) << names[i];

for (int k = 0; k < 5; k++)

cout << setw(8) << scores[i][k];

cout << endl;

}

}

int main()

{

string name[MAX];

int scores[MAX][5];

double avg[MAX];

char grade[MAX];

  

ifstream inputFile("/Users/veronicadean/Desktop/1501/RandomTemp/2110/Lab8");

if(!inputFile)

{

cout << "Unable to open the input file.";

return 1;

}

readData (inputFile, name, scores)

inputFile.close();

calculateaverage (scores, grade, avg);

cout << name << avg << scores << grade;

  

return 0;

}

In: Computer Science

Who are the top 3 key players in the smart home market and why?

Who are the top 3 key players in the smart home market and why?

In: Operations Management

i)Show that infinite decidable language has infinite decidable subset ? ii)Show that any infinite decidable language...

i)Show that infinite decidable language has infinite decidable subset ?


ii)Show that any infinite decidable language L has an infinite decidable subset J with the property that L − J is also infinite. ​

iii. Does the statement in part i of this problem still true if L is only recognizable ? Show or Counter example.

No Spam please.

In: Computer Science

Construct a table showing the first-year costs, annual costs, and the annual benefits for the following...

  1. Construct a table showing the first-year costs, annual costs, and the annual benefits for the following investment proposal:

Costs:

  • Initial investment (software, hardware, implementation) $180,000, incurred in year zero.
  • Software maintenance (starting in year two) $30,000 per year, increasing at a rate of 3% per year thereafter

Benefits:

  • Labor savings $140,000 per year, starting in year two
  • Equipment savings $55,000, year one only.
  • Increased clinic revenue, $50,000 per year, starting in year one.
  • All yearly savings increase at the rate of inflation, assumed to be 3% per year.

Calculate the Net Present Value of this proposed investment at the end of the five-year planning cycle using a discount rate of 5%. Show your work. Assume that one-time costs are incurred in year zero, and annual costs and savings are incurred in years 1 through 5.

In: Accounting

In your opinion, what role does culture play in international expansion by a corporation? must be...

In your opinion, what role does culture play in international expansion by a corporation? must be at least 200 words. 2 paragraphs

In: Operations Management

How does technology impact public health practices? What are the different ways that technology has improved...

How does technology impact public health practices?

What are the different ways that technology has improved public health?

List and discuss 3 ways.

In: Nursing

In this assignment, you will play the role of a senior analyst. You work for Blackhawk...

In this assignment, you will play the role of a senior analyst.

You work for Blackhawk Company, a lighting fixture manufacturer.

Upper management at Blackhawk is concerned with the traditional costing system it has relied on for the past few years. In particular, upper management is concerned about the accuracy of cost information and thus has ordered a “pilot” test of an activity-based costing approach.

You will receive an analysis prepared by your junior staff. Your task is to interpret the analysis, and communicate related implications and other considerations.

Note: Please read all of the provided information, including the required deliverables, before beginning the assignment.

Case Information

Use the information provided here to answer the questions.

Blackhawk Company manufactures and sells many different types of lighting fixtures.

Historically, indirect costs have been allocated to products based on direct labor dollars, via a traditional costing system. The overhead rate is pre-determined, based on budgeted volumes and budgeted direct labor.

For the upcoming year, Blackhawk compiled the following projected per-unit information for its deluxe model – one of many products that Blackhawk produces and sells.

Product Information (Traditional Costing System)

Selling price $900

Direct materials $250

Direct labor $120

Indirect costs $340

Profit per unit $190

The CFO has suggested that an activity-based costing system could be valuable to help facilitate strategic and operational decisions for the coming year. She ordered a pilot test of the activity-based costing system using the deluxe product.

Your staff obtained the following information to compute an activity-based version of the deluxe product’s cost.

Note: These totals are company-wide (i.e., not just for the deluxe model).

Activity Cost Driver Cost Total
Setups # batches $500,000 725 batches
Machine-related # of machine-hours $44,100,000 650,000 MHs
Packing # of shipments $5,000,000 250,000 shipments

In addition, the following information is known for the deluxe model.

Number of units per batch = 125

Number of machine hours per unit = 10

Number of units per shipment = 1

Analysis

A junior staff member provided the following analysis.

Activity Pool Rates

Setups: $500,000 / 725 batches = $689.66 per batch

Machine time: $44,100,000 / 650,000 machine hrs = $67.85 per machine hr

Packing: $5,000,000 / 250,000 shipments = $20 per shipment

Using the activity pool rates and the estimated usage of each activity by the deluxe model, the junior analyst provided the following cost estimate on a per unit basis:

Setups: $689.66 per batch / (125 units per batch) = $5.52 per unit

Machine time: $67.85 per machine hour x 10 machine hours per unit = $678.50 per unit

Packing: $20 per shipment / (1 unit per shipment) = $20 per unit

Total per unit cost = $5.52 + $678.50 + $20 = 704.02

The analyst also provided the revised profit per unit information:

Selling price = $900

Revised costs (rounded) (per activity-based costing) = $704

Profit per unit = $900 - 704 = $196

The analyst noted that the per-unit cost, as well as the profit per unit were approximately equivalent across the two systems (i.e., the original/traditional system and the activity-based costing system).

Given this small difference, the analyst concluded that the original system is reasonably accurate, and that activity-based costing may not be worthwhile for Blackhawk Company.

Question 1:

Write a critique of the analysis and conclusion prepared by your analyst.

In particular, is the analyst’s conclusion (i.e., that activity-based costing is not worthwhile for Blackhawk Company) correct?

Question 2:

Prepare a memo to Blackhawk’s upper management regarding the advantages and disadvantages of activity-based costing.

Use an example scenario to communicate the advantages and disadvantages.

In: Accounting

Air flows through a nozzle which has inlet areas of (10 cm2 ). If the air...

Air flows through a nozzle which has inlet areas of (10 cm2
). If the air has a velocity of (120 m/s) a
temperature (300K) and a pressure of (700kpa) at the inlet section and a pressure of (250kpa) at the exit,
find the mass flow rate through the nozzle and the velocity at the exit of the nozzle, assuming one-
dimensional isentropic flow. (R=287 J/kg. K), (K=1.4). (25%)

In: Mechanical Engineering

The adjacent table contains the details of four bonds currently traded in the market. Using this...

The adjacent table contains the details of four bonds currently traded in the market. Using this information calculate the no arbitrage price of a 3 year 8% annual coupon bond.

Maturity

Price

Coupon

1

$   97.29

4.00%

2

$   93.41

3.50%

3

$   94.00

5.00%

4

$   96.65

6.50%

In: Finance

What are some of the actions taken by Ken Lay as the CEO of Enron and...

What are some of the actions taken by Ken Lay as the CEO of Enron and what were the ethical issues?

In: Economics

After watching a Ted talk actually the world isn't flat in reading the supplemental materials about...

After watching a Ted talk actually the world isn't flat in reading the supplemental materials about the original book the world is flat I think about how the differences between the promises of the flat world and the reality that we are not there yet if we are not there yet will we ever be? What will it take to get there? do we want to get there? Benefits and challenges of obtaining a flat world from Friedmans perspective?

In: Operations Management

Consider the consumption theories a) Explain the Keynes’ consumption puzzle? b) How does Modigliani’s consumption theory...

Consider the consumption theories

a) Explain the Keynes’ consumption puzzle?

b) How does Modigliani’s consumption theory resolve the puzzle?

c) How does Friedman’s consumption theory resolve the puzzle?

In: Economics

Lourdes Corporation's 15% coupon rate, semiannual payment, $1,000 par value bonds, which mature in 10 years,...

Lourdes Corporation's 15% coupon rate, semiannual payment, $1,000 par value bonds, which mature in 10 years, are callable 4 years from today at $1,075. They sell at a price of $1,359.25, and the yield curve is flat. Assume that interest rates are expected to remain at their current level.

  1. What is the best estimate of these bonds' remaining life? Round your answer to the nearest whole number.

      years

  2. If Lourdes plans to raise additional capital and wants to use debt financing, what coupon rate would it have to set in order to issue new bonds at par?
    1. Since the bonds are selling at a premium, the coupon rate should be set at the going rate, which is the YTC.
    2. Since the bonds are selling at a premium, the coupon rate should be set at the going rate, which is the YTM.
    3. Since Lourdes wishes to issue new bonds at par value, the coupon rate should be set the same as that on the existing bonds.
    4. Since Lourdes wishes to issue new bonds at par value, the coupon rate should be set the same as the current yield on the existing bonds.
    5. Since interest rates have risen since the bond was first issued, the coupon rate should be set at a rate above the current coupon rate.

    select correcthe t number. ?

In: Finance

Those with Serious Persistent Mental Illness (SPMI) are many times difficult to treat.  Why? Please try not...

Those with Serious Persistent Mental Illness (SPMI) are many times difficult to treat.  Why? Please try not to copy and paste off google

In: Psychology