As Economic Analyst for High Desert Bank, analyze the amounts of commercial, consumers, and real estate loans.
|
Population |
|
|
Mean |
63668.57 |
|
Standard Deviation |
35989.61 |
|
Count |
350 |
|
Commercial Sample |
|
|
Mean |
61780.70 |
|
Standard Deviation |
35620.92 |
|
Count |
171 |
|
Consumer Sample |
|
|
Mean |
61439.66 |
|
Standard Deviation |
36977.32 |
|
Count |
116 |
|
Real Estate Sample |
|
|
Mean |
72896.83 |
|
Standard Deviation |
34206.58 |
|
Count |
63 |
|
Table 4: High Desert Bank Loan Amounts |
||||
|
Tuition Fees |
Population |
Commercial |
Consumer |
Real Estate |
|
Mean |
63668.57 |
61780.70 |
61439.66 |
72896.83 |
|
St. Deviation |
35989.61 |
35620.92 |
36977.32 |
34206.58 |
|
Confidence Interval |
||||
|
Confidence Interval |
||||
In: Math
In your own words, explain the core principle of the MapReduce algorithm (6 pts)
In: Operations Management
What are some of the common types of attacks against networks and devices on networks? apa format
In: Computer Science
In C++, I have 3 files (Main.cpp, Point.cpp, Point.h). When Compiled and run, it produces 2 errors, in Main.cpp "cannot convert from double to point" and in Point.cpp "name followed by :: must be a class or namespace name". How do you go about fixing these errors without editing Main.cpp? Thanks in advance.
//main.cpp
#include <iostream>
#include <cmath>
#include "Point.h"
using namespace std;
const double PI = 3.14159265359;
const double TOL = .0000001; //allows us to do a comparison for
double value equality
int main()
{
int toTest = 0;
//TEST AS YOU DEVELOP COMMENT OUT EVERYTHING BUT WHAT
YOU HAVE IMPLEMENTED
//AND UNCOMMENT AS YOU CREATE.
//(you can look below to see what I make this variable
to test given things)
cout << "MUST IMPLEMENT GETTERS BEFORE TESTING
\n";
cout << "What would you like to test? \n";
cout << "1-value constructor \n";
cout << "2-copy constructor \n";
cout << "3-setters test \n";
cout << "4-translation test \n";
cout << "5-scaling test \n";
cout << "6-reflect over x-axis test \n";
cout << "7-reflect over y-axis test \n";
cout << "8-rotation \n";
cout << "9-assignment operator \n";
cout << "10-operator equals equals \n";
cout << "11-cin overload \n";
cout << "12-cout overload \n";
cin >> toTest;
Point a; // a should be at (0,0)
Point b(5.0); //b should be at (5.0,0)
/* incremental test line
Point c(-15.3, -32.22); //c should be at (-15.3,
-32.33)
if(toTest==1)
{
cout<<"**Value Constructor
Test: \n";
if(abs(a.get_x())<TOL &&
abs(a.get_y())<TOL &&
abs(b.get_x()-5)<TOL && abs(b.get_y())<TOL
&&
abs(-15.3-c.get_x())<TOL &&
abs(-32.22-c.get_y())<TOL)
{
cout<<"
Value Constructor Works\n" <<endl;
}
else
{
cout<<"
Value Constructor Failed\n"<<endl;
}
}
/* Point d(c);
if(toTest==2)
{
cout<<"\n**Copy Constructor
Test: \n";
if(abs(d.get_x()-c.get_x())<TOL
&& abs(d.get_y()-c.get_y())<TOL)
{
cout<<"
Copy Constructor Works\n"<<endl;
}
else
{
cout<<"
Copy Constructor Failed\n"<<endl;
}
}
if(toTest==3)
{
cout<<"\n**Setters Test:
\n";
a.set_x(5.3); a.set_y(-3.2);
if(abs(a.get_x()-5.3)<TOL
&& abs(a.get_y()+3.2)<TOL)
{
cout<<"
Setters Work\n"<<endl;
}
else
{
cout<<"
Setters Failed\n"<<endl;
}
}
if(toTest==4)
{
cout<<"\n**Translation Test:
\n";
a.translate(5.3,-3.2);
if(abs(a.get_x()-5.3)<TOL
&& abs(a.get_y()+3.2)<TOL)
{
cout<<"
Translate Works\n"<<endl;
}
else
{
cout<<"
Translate Failed\n"<<endl;
}
}
if(toTest==5)
{
cout<<"\n**Scale Test:
\n";
c.scale(-3);
if(abs(c.get_x()-45.9)<TOL
&& (abs(c.get_y()-96.66)<TOL))
{
cout<<"
Scale Works\n"<<endl;
}
else
{
cout<<"
Scale Failed\n"<<endl;
}
}
if(toTest==6)
{
cout<<"\n**Reflect Over
X-Axis Test: ";
c.reflect_x();
if(abs(c.get_y()-32.22)<TOL)
{
cout<<"
Reflect Over X-axis Works\n"<<endl;
}
else
{
cout<<"
Reflect Over X-Axis Failed\n"<<endl;
}
}
if(toTest==7)
{
cout<<"\n**Reflect Over
Y-Axis Test: ";
c.reflect_y();
if(abs(c.get_x()-15.3)<TOL)
{
cout<<"
Reflect Over Y-Axis Works\n"<<endl;
}
else
{
cout<<"
Reflect Over Y-Axis Failed\n"<<endl;
}
}
if(toTest==8)
{
Point e(-1,0); //e shoule be at
(-1, 0)
cout<<"\n**Rotation of Point
Test: ";
e.rotate(PI/2);
if(abs(e.get_x())<TOL &&
abs(e.get_y()+1)<TOL)
{
cout<<"
Rotation Of PI/2 (90 deg CCW) Worked\n"<<endl;
}
else
{
cout<<"
Rotation Of PI/2 (90 deg CCW) Failed\n"<<endl;
}
}
if(toTest==9)
{
cout<<"\n**Operator equals
Test: ";
d=b;
if((abs(d.get_x()-b.get_x())<TOL) &&
(abs(d.get_y()-b.get_y())<TOL))
{
cout<<"
Operator Equals Test Passed\n"<<endl;
}
else
{
cout<<"
Operator Equals Test Failed\n"<<endl;
}
}
if(toTest==10)
{
cout<<"\n**Operator equals
equals Test: ";
Point e(-15.3, -32.22);
if(e==c)
{
cout<<"
Operator equals equals Test Passed \n"<<endl;
}
else
{
cout<<"
Operator equals equals Test Failed \n"<<endl;
}
}
if(toTest==11)
{
cout<<"\n**CIN Test: \ncin
the values 10 and 20 to test this with (10,20): ";
cin>>d;
if(abs(d.get_x()-10)<TOL
&& abs(d.get_y()-20)<TOL)
{
cout<<"CIN
Test Passed\n"<<endl;
}
else
{
cout<<"CIN
Test Failed\n"<<endl;
}
}
if(toTest==12)
{
cout<<"**COUT Test: coutting
Points a,b,c: \n";
cout<<a;
cout<<b;
cout<<c;
}*/
}
//Point.cpp
#include "Point.h"
#include <iostream>
#include <cstdlib>
using namespace std;
double x = 0;
double y = 0;
void Point::point()
{
x = 0;
y = 0;
}
void Point::point(double inX)
{
x = inX;
y = 0;
}
void Point::point(double inX, double inY)
{
x = inX;
y = inY;
}
double getX()
{
return x;
}
double getY()
{
return y;
}
void setPoint(double a, double b)
{
}
//Point.h
#include <iostream>
#ifndef Point_H;
using namespace std;
class Point
{
public:
static double x;
static double y;
void point();
void point(double x);
void point(double x, double y);
double getX();
double getY();
void setPoint(double a, double b);
};
#endif
In: Computer Science
l = [0 1 -2 1 1];
d = [2 -2 4 2 2];
r = [-1 1 -1 -2 0];
b = [2 0 -6 1 4];
n = length(d);
x= zeros(n,1);
for i = 2:n
factor = l(i)/d(i-1);
d(i) = d(i) - factor*r(i-1);
b(i) = b(i) - factor*b(i-1);
end
x(n) = b(n)/d(n);
for i = n-1:-1:1
x(i) = b(i)-r(i)*x(i+1) / d(i);
end
x1 = x(1);
x2 = x(2);
x3 = x(3);
x4 = x(4);
fprintf('\nx1 = %f\nx2 = %f\nx3 = %f\nx4 = %f\n',x1,x2,x3,x4);
this is matlab code!
It's a question of getting answers using the Thomas method.
The answer should be x1=1, x2=0, x3=-1, x4=2, x5=1.
Please fix what's wrong.
In: Computer Science
What is the purpose of a planning and control system related to scheduling?
In: Operations Management
Andalus Furniture Company has two manufacturing plants, one at Aynor and another at Spartanburg. The cost in dollars of producing a kitchen chair at each of the two plants is given here. The cost of producing Q1 chairs at Aynor is: 25Q1+2.5Q12+100 and the cost of producing Q2 kitchen chairs at Spartanburg is: 75Q2+2.5Q22+150. Andalus needs to manufacture a total of 40 kitchen chairs to meet an order just received. How many chairs should be made at Aynor, and how many should be made at Spartanburg in order to minimize total production cost? If required, round your answers to the nearest whole number. Round intermediate calculations to two decimal places.
Aynor
Spartanburg
Total cost $
In: Operations Management
Contribution Margin, Break-Even Sales, Cost-Volume-Profit Chart, Margin of Safety, and Operating Leverage
Belmain Co. expects to maintain the same inventories at the end of 20Y7 as at the beginning of the year. The total of all production costs for the year is therefore assumed to be equal to the cost of goods sold. With this in mind, the various department heads were asked to submit estimates of the costs for their departments during the year. A summary report of these estimates is as follows:
| Estimated Fixed Cost |
Estimated Variable Cost (per unit sold) |
||||||
| Production costs: | |||||||
| Direct materials | — | $26 | |||||
| Direct labor | — | 17 | |||||
| Factory overhead | $530,800 | 13 | |||||
| Selling expenses: | |||||||
| Sales salaries and commissions | 110,300 | 6 | |||||
| Advertising | 37,300 | — | |||||
| Travel | 8,300 | — | |||||
| Miscellaneous selling expense | 9,100 | 5 | |||||
| Administrative expenses: | |||||||
| Office and officers' salaries | 107,800 | — | |||||
| Supplies | 13,300 | 2 | |||||
| Miscellaneous administrative expense | 12,540 | 3 | |||||
| Total | $829,440 | $72 | |||||
It is expected that 6,480 units will be sold at a price of $360 a unit. Maximum sales within the relevant range are 8,000 units.
Required:
1. Prepare an estimated income statement for 20Y7.
| Belmain Co. | |||
| Estimated Income Statement | |||
| For the Year Ended December 31, 20Y7 | |||
| Sales | $ | ||
| Cost of goods sold: | |||
| Direct materials | $ | ||
| Direct labor | |||
| Factory overhead | |||
| Total cost of goods sold | |||
| Gross profit | $ | ||
| Expenses: | |||
| Selling expenses: | |||
| Sales salaries and commissions | $ | ||
| Advertising | |||
| Travel | |||
| Miscellaneous selling expense | |||
| Total selling expenses | $ | ||
| Administrative expenses: | |||
| Office and officers' salaries | $ | ||
| Supplies | |||
| Miscellaneous administrative expense | |||
| Total administrative expenses | |||
| Total expenses | |||
| Operating income | $ | ||
2. What is the expected contribution margin
ratio? Round to the nearest whole percent.
%
3. Determine the break-even sales in units and dollars.
| Units | units |
| Dollars | $ |
4. Construct a cost-volume-profit chart on your
own paper. What is the break-even sales?
$
5. What is the expected margin of safety in dollars and as a percentage of sales?
| Dollars: | $ | |
| Percentage: (Round to the nearest whole percent.) | % |
6. Determine the operating leverage. Round to one decimal place.
In: Accounting
A student becomes very stressed while taking an exam. Explain how cortisol and epinephrine are affected by this increased level of stress and explain the effects it has on the student.
In: Anatomy and Physiology
Bronner’s Christmas Store is one of the largest in America. Bronner’s currently has one store located in Frankenmuth, Michigan. Bronner’s has decided to open up a second store in Heidelberg, Germany. Reflecting on each chapter in our textbook, respond to each of the following questions as though you were hired to be a consultant to Bronner’s.
What are some of the import/export issues that Bronner's may face with the new location?
In: Operations Management
Using jGRASP, write a Java program named LastnameFirstname11.java, using your last name and your first name, that does the following:
In: Computer Science
In: Operations Management
Please fllll this out thank you
/**
*
* Creates a six-sided die and rolls it 20 times. It outputs the
face values and also
* the number of times the die lands on 6.
*
* Creates 2 eight-sided dice and rolls the pair 10 times. It prints
out a sequence
* of pairs representing the face values as well as the number of
doubles.
*
* Allows the user to repeat the above steps as often as (s)he
wishes.
*
* @author (put your name here!!!)
* @version (3-20-19)
*/
import java.util.*;
public class TestDie
{
public static void main (String [] args)
{
Scanner keyIn = new Scanner(System.in);
// display output heading
System.out.println ("Programmer: put your name here!!");
System.out.println ("Course: COSC 111, Winter '19");
System.out.println ("Lab: Exam 2, part 2");
System.out.println ("Due date: 3-20-19\n");
// create a six-sided die
// create a Die object and then call the method setSides to set the
number of sides to 6
// roll the die 20 times, output the face value of each roll (4 per
line), and the
// number of times the die lands on 6.
// set up a loop that iterates exactly 20 times, and each time
through the loop do the following:
// roll the die by calling the method 'roll'; output the face value
of the die; check the face
// value to keep track of 6s, and check to see if you have printed
4 numbers already, if yes,
// then advance to the next line.
System.out.println("Rolling a 6-sided die 20 times:" );
// create two eight-sided dice
// create two 'Die' objects and then use the method 'setSides' with
each object to set its number of sides to 8
System.out.println("\nRolling a pair of 8-sided dice 10 times:");
// throw a pair of eight-sided dice 10 times, output the face
values of each throw as a pair
// and also the number of doubles (both dice land on the same face
value)
// set up a loop that iterates exactly 10 times, and each time
through the loop do the following:
// roll both die by calling the method 'roll' twice; print out
their face values as a pair;
// and check to see if both face values are the same, if yes, keep
track of it.
// add a do-while loop to repeat the above code as often as the user wishes
}
}
In: Computer Science
Andre, a student preparing for his final exams, has an argument with his parents regarding the use of IPod during study hours. According to his parents, listening to music while studying affects cognitive performance and will pose serious impediments in Andre’s ability to focus. But Andre provides a counter-argument, as he believes that music acts as a stress buster. He says that it helps in the release of dopamine that relieves stress and relaxes the mind. Do you agree with Andre? Provide justification for your answer in about 200-300 words.
DO NOT COPY PASTE. PLEASE TYPE.
In: Psychology
Is it Fair to Dock Employees’ Pay for Bathroom Breaks?
Consider a company whose employees include both smokers and nonsmokers. The smokers take numerous paid smoking breaks, while the nonsmokers do not. Is there an ethical issue here? Discuss.
In: Operations Management