A study was conducted to determine whether the final grade of a student in an introductory psychology course is linearly related to his or her performance on the verbal ability test administered before college entrance. The verbal scores and final grades for 10 students are shown in the table below.
Student 1 2 3 4 5 6 7 8 9 10
Score 65 42 32 43 59 73 31 25 74 71
Grade 79 63 85 93 93 79 86 74 67 92
Find the following: (a) The correlation coefficient: r=
(b) The least squares line: y^=
(c) The predicted grade for the eighth student:
(d) The residual for the eighth student:
In: Statistics and Probability
The common stock of Texas Energy Company is selling at $90. A
1-year call option
written on Texas’s stock is selling for $8. The call’s exercise
price is $100. The risk-free
interest rate is 1% per year. Suppose that puts on Texas stock are
not tradable, but you
want to hold one. How would you do it? Suppose that puts are
traded, what should a 1-
year put with an exercise price of $100 sell for?
In: Finance
C++ UNIX
car.txt
0001|Mercury|LeSabre|2005|Brown|11000|2019-09-01
0002|Chevrolet|Aveo|2013|Blue|12000|2019-09-02
0003|Datsun|240Z|1979|Orange|13000|2019-09-03
0004|Ford|Galaxie|1964|Black|14000|2019-09-04
0005|Porsche|Boxster|2014|Green|15000|2019-09-0
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main()
{
const int RECORDS = 42;
ifstream reader("car.txt");
if(!reader) {
cout << "Error: cannot open
input file" << endl;
return -1;
}
string item[RECORDS];
int i = 0;
while(!reader.eof()) {
if((i+1) % 7 == 0)
getline(reader,item[i++],'\n');
else
getline(reader,item[i++],'|');
}
i = 0;
while(i < RECORDS) {
cout << "(1) carID= "
<< item[i++] << endl;
cout << "(2) carManufacturer=
" << item[i++] << endl;
cout << "(3) carModel= "
<< item[i++] << endl;
cout << "(4) carYear= "
<< item[i++] << endl << endl;
cout << "(5) carColor= "
<< item[i++] << endl << endl;
cout << "(6) carPrice= "
<< item[i++] << endl << endl;
cout << "(7)
carInventoryDate= " << item[i++] << endl << endl;
}
reader.close();
return 0;
}
this is my code to read that text file.
and output should be
(1) carID=0001
(2) carManufacturer=Mercury
(3) carModel=LeSabre
(4) carYear=2005
(5) carColor=Brown
(6) carPrice=11000
(7) carInventoryDate=2019-09-01
and so on.
but my output is
(1) carID= 0001
(2) carManufacturer= Mercury
(3) carModel= LeSabre
(4) carYear= 2005
(5) carColor= Brown
(6) carPrice= 11000
(7) carInventoryDate= 2019-09-01
like this. I don't know why there is space between 4, 5, 6, 7
please help me to fix
Thank you
In: Computer Science
Giant Screen TV, Inc., is a Miami-based importer and distributor of 60-inch screen HDTVs for residential and commercial customers. Revenue and cost relations are as follows:
TR = $4,500Q - $0.1Q2
TC = $2,000,000 + $1500Q + $0.5Q2
In: Economics
In: Math
List indicators that a company may be an agent, not a principal, in a revenue transaction and explain the significance of this relationship in revenue recognition.
In: Accounting
Q4. What is the y/y revenue trend? in apple company
In: Finance
Explain the characteristics and fundamental differences of ‘Blue Ocean and Red Ocean’ strategies (Kim & Mauborgne, 2005). Please elaborate more.
In: Operations Management
The demand for DVDs is P = 60 – 0.05Q and the supply is P = 0.025Q. For each of the following scenarios calculate: i) price paid by buyers, ii) price received by sellers, iii) quantity supplied, iv) quantity demanded, v) quantity traded, vi) consumer surplus, vii) producer surplus, viii) tax revenue, ix) deadweight loss. Include a detailed and well-labeled graph with each scenario. Also include a list of which group(s) (either Consumers, Producers, or Government) are most likely to be in favor of each scenario.
Scenario A: An unregulated market (no price ceilings, price floors, subsidies, or taxes)
Scenario B: A market with a price ceiling of $15.
Scenario C: A market with a price floor of $30.
Scenario D: A market with a $15 per unit tax.
In: Economics
Brown Inc. acquired a delivery van on October 1, 2017 at a cost of $45,000. The useful life of the van was 12 years with a residual value of $3,000. Assume that the company used straight-line method with fractional years rounded to the nearest whole month. The delivery van was traded-in with a new one as of end of the year of 2018 (December 31, 2018). The list price of the new delivery van was $56,000. The Brown Inc. accepted a trade-in allowance of $40,850 and paid the remaining amount in cash to get the new van. In recording the trade-in, which of the following is correct?(3 Points)
Accumulated depreciation of the old van is debited by $3,375
Accumulated depreciation of the old van is debited by $4,375
Accumulated depreciation of the old van is credited by $4,375
Accumulated depreciation of the old van is credited by $3,375
In: Accounting