Suppose an economy under fixed (pegged) exchange rates is currently facing:
a balanced current account (NX = 0),
a negative output gap (excess unemployment), and
a balanced budget.
Using an NX/ (S-I) model depict the above situation in relation to the internal and external balance diagrammatically.
Now suppose as an advisor to the government your recommendation is to employ an expenditure-changing policy to attain the Internal Balance. Explain in details what this policy is made up and what the consequences of your recommendations will be. Show diagrammatically and explain fully.
In light of your answer above would you agree with this statement? “A trade deficit and low savings go hand in hand.” Evaluate fully.
Defend this proposition “attaining the two policy objectives of internal and external balance requires two polices”. Explain and illustrate diagrammatically.
In: Economics
In: Computer Science
This is an assignment done using the terminal of linux.
In this assignment, you will
• use make to modify a c++ program and
• gdb a debugging tool.
Part 1
From the course website (or the departmental dropbox) download the program source files for the project myname.
Part 2: myname program (5 points)
1. Using your favorite text editor, modify the source code to print out your name instead of mine when the binary file is executed. Hint: YOU ARE NOT ”THOMAS THE TANK ENGINE”
2. Modify the makefile to include a rule that creates a backup of the source files, makefile, and readme in an archive directory in your home directory structure.
Submit a compressed, archived tar file [yourUserID].assignment4_1.tar.[Z,gz] with your modified source code.
3. Use the gdb debugger to step through the program. Check to ensure the Makefile is modified to allow for debugging. Submit a text file [yourUserID].assignment4_2.txt containing the gdb output for the following sequence of commands:
gdb myname
start
step [issue this command until you get the “program exited normally” message]
quit
Submission This time, there should be two files that you are uploading
[yourUserID].assingment4_1.tar.[Z,gz] and [yourUserID].assingment4_2.txt
• When you have finished, submit the files using the
departmental dropbox.
Here are the contents of CSCE215 directory that contains the program and files associated with it:
main.cpp
#include <iostream>
#include <string>
using namespace std;
#include "name.h"
int main () {
name myName;
myName.SetLast(LAST);
myName.SetMiddle(MI);
myName.SetFirst(FIRST);
cout <<"My name
is: ";
myName.PrintFirst();
myName.PrintMiddle();
myName.PrintLast();
return 0;
}
Makefile
# makefile to build a program
# program depends on components: name and main
myname: main.o name.o
g++ -g main.o name.o -o myname
# name.cpp has it's own header file
name.o: name.cpp
name.h
g++ -c -g name.cpp
# main.cpp also uses the header file name.h
main.o:
main.cpp name.h
g++ -c -g main.cpp
clean:
/bin/rm -f myname *.o
name.cpp
#include <iostream>
#include <string>
using namespace std;
#include "name.h"
void name::GetFirst(string str) {
str=first;
}
void name::SetFirst(string str) {
first=str;
}
void name::GetMiddle(string str) {
str=middle;
}
void name::SetMiddle(string str) {
middle=str;
}
void name::GetLast(string str) {
str=last;
}
void name::SetLast(string str) {
last=str;
}
void name::PrintLast() {
cout << last << "\n";
}
void name::PrintMiddle() {
cout <<
middle;
}
void name::PrintFirst() {
cout <<
first;
}
name.h
#define LAST "tankengine"
#define MI "the "
#define FIRST "thomas "
class name {
private:
string first;
string middle;
string last;
public:
void SetFirst(string str);
void GetFirst(string str);
void SetMiddle(string str);
void GetMiddle(string str);
void SetLast(string str);
void GetLast(string str);
void PrintLast();
void PrintMiddle();
void PrintFirst();
};
readme
/*
Copyright: 2005, All rights reserved.
Program: myname
Version: 1.1
Created: 9/6/05
Revised: 1/22/09
Files: name.cpp, name.h, main.cpp, Makefile
Programmer: Patrick O'Keefe who gratefully acknowledges Dr. Jason
Bakos's kind assistance.
Course: CSCE-215
Assignment: Class Project
Compiler: GNU Gcc version 4.2.3
Target: Linux
Description:
This program attempts string assigment. and other stuff....
Revisions:
There have been no major revisions of this program.
Constants and Variables:
See code for constant and variable descriptions.
or
you could put that kind of info here. Like:
FIRST -> your first name
MIDDLE -> ditto
LAST -> and ditto.
ok here is a change.
ALL OF THOSE FILES ARE LOCATED IN A DIRECTORY /CSCE215
In: Computer Science
In: Economics
In: Chemistry
Coaching vs mentoring. What is the difference between them. Provide examples.
A detailed research paper on this topic with citation and bibliography.
In: Operations Management
If Mamata was able to work 24 hours a day she could produce 4 tonnes of rice (the principal food crop cultivated in West Bengal) each day. You are told that Mamata’s utility maximising choice is to work for 8 hours and produce 3 tonnes of rice.
Now you are informed that Mamata is no longer an independent farmer. Instead, she works as a bargadar and rents the land on which she works from a landowner and keeps 75% of the rice that she produces (as is the case after the adoption of Operation Barga).
Q7 Using your answer to Q6 as a starting point, show (on a separate model) Mamata’s new optimal choice as a sharecropper. Again, be sure to label and define each of the relevant points and lines on your diagram. List each of the assumptions you made when developing your model.
Q8 Discuss how the models developed in Q6 and Q7 can be used by economists to evaluate the fairness of economic outcomes?
In: Economics
On an ECG printout, explain the three parts of the cardiac cycle and what each represents in terms of heart action.
What is the benefit of looking at a 12-lead vs. a 4 or 6 lead ECG?
In: Anatomy and Physiology
M&M candies have 6 different color coatings in a standard single serving bag: blue, brown, green, orange, red and yellow. However, the number of each color that occurs in an individual bag may not be proportional. If bags of M&M Milk Chocolate candies contained proportional counts by color, there should be about 17% green M&M’s. A sample of M&M Milk Chocolate bags consisted of 1093 M&Ms. There were 273 green M&M’s of the total M&M’s in the sample. Determine with an acceptable error rate of 1% if our M&M sample is consistent with the equal color proportion of 17% green M&M’s. H0: p = 0.17 The percentage of green M&M’s in bags of Milk Chocolate M&M’s is 17%. HA: p 0.17 The percentage of green M&M’s in bags of Milk Chocolate M&M’s is not 17%. 8. What is the sample proportion for green M&M’s? (2 points) 9. What would be the value of the appropriate test statistic for this hypothesis test? (5 points) 10. What is the P-value of the test statistic determined in question #9? (5 points) 11. What would be the decision for this hypothesis test? (i.e. reject or do not reject the null hypothesis?) (4 points) 12. State your conclusion, based on the selected decision in question #11, appropriate to the hypothesis test on percentage of green M&M’s in M&M bags. (5 points) 13. If we wish to have a margin of error of 0.05 or less, at least how many M&M’s should we have had in our sample? (Was our sample large enough?) (4 points)
In: Math
When two lenses are used in combination, the first one forms an image that then serves as the object for the second lens. The magnification of the combination is the ratio of the height of the final image to the height of the object. A 1.60cm -tall object is 51.0cm to the left of a converging lens of focal length 40.0cm . A second converging lens, this one having a focal length of 60.0cm , is located 300cm to the right of the first lens along the same optic axis.
A)
Find the location and height of the image (call it I1) formed by the lens with a focal length of 40.0cm .
Enter your answer as two numbers separated with a comma in cm
B)
I1 is now the object for the second lens. Find the location and height of the image produced by the second lens. This is the final image produced by the combination of lenses.
Enter your answer as two numbers separated with a comma in cm
In: Physics
Part A
The pressure inside a hydrogen-filled container was 2.10 atm at 21 ?C. What would the pressure be if the container was heated to 93?C ?
|
Part A The pressure inside a hydrogen-filled container was 2.10 atm at 21 ?C. What would the pressure be if the container was heated to 93?C ? Express your answer numerically in atmospheres.
Part B At standard temperature and pressure (0 ?C and 1.00 atm ), 1.00 mol of an ideal gas occupies a volume of 22.4 L. What volume would the same amount of gas occupy at the same pressure and 65?C ? |
In: Chemistry
What are the major similarities and differences between IAS 32 Financial Instruments: Disclosure and Presentation and IFRS 7 Financial Instruments: Disclosures?
In: Accounting
a. What construct did you use? Insert the snip of your SQL code here:
b. Display the contents of the score table for event 5. Be sure student 12 is displayed. Insert your snip here:
*************************************************************
DATABASE
************************************************************
#---Create and open the database
drop database if exists Class;
CREATE DATABASE Class;
#-- Using the database
USE Class;
# create student table
DROP TABLE IF EXISTS student;
CREATE TABLE student
(
name VARCHAR(20) NOT NULL,
gender ENUM('F','M') NOT NULL,
student_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY (student_id)
);
# create grade event table
DROP TABLE IF EXISTS grade_event;
CREATE TABLE grade_event
(
date DATE NOT NULL,
category ENUM('T','Q') NOT NULL,
event_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY (event_id)
);
# create score table
# The PRIMARY KEY comprises two columns to prevent any
combination
# of event_id/student_id from appearing more than once.
DROP TABLE IF EXISTS score;
CREATE TABLE score
(
student_id INT UNSIGNED NOT NULL,
event_id INT UNSIGNED NOT NULL,
score INT NOT NULL,
PRIMARY KEY (event_id, student_id),
INDEX (student_id),
FOREIGN KEY (event_id) REFERENCES grade_event (event_id),
FOREIGN KEY (student_id) REFERENCES student (student_id)
);
# create absence table
DROP TABLE IF EXISTS absence;
CREATE TABLE absence
(
student_id INT UNSIGNED NOT NULL,
date DATE NOT NULL,
PRIMARY KEY (student_id, date),
FOREIGN KEY (student_id) REFERENCES student (student_id)
);
#--Populate the student table
INSERT INTO student VALUES ('Megan','F',NULL);
INSERT INTO student VALUES ('Joseph','M',NULL);
INSERT INTO student VALUES ('Kyle','M',NULL);
INSERT INTO student VALUES ('Katie','F',NULL);
INSERT INTO student VALUES ('Abby','F',NULL);
INSERT INTO student VALUES ('Nathan','M',NULL);
INSERT INTO student VALUES ('Liesl','F',NULL);
INSERT INTO student VALUES ('Ian','M',NULL);
INSERT INTO student VALUES ('Colin','M',NULL);
INSERT INTO student VALUES ('Peter','M',NULL);
INSERT INTO student VALUES ('Michael','M',NULL);
INSERT INTO student VALUES ('Thomas','M',NULL);
INSERT INTO student VALUES ('Devri','F',NULL);
INSERT INTO student VALUES ('Ben','M',NULL);
INSERT INTO student VALUES ('Aubrey','F',NULL);
INSERT INTO student VALUES ('Rebecca','F',NULL);
INSERT INTO student VALUES ('Will','M',NULL);
INSERT INTO student VALUES ('Max','M',NULL);
INSERT INTO student VALUES ('Rianne','F',NULL);
INSERT INTO student VALUES ('Avery','F',NULL);
INSERT INTO student VALUES ('Lauren','F',NULL);
INSERT INTO student VALUES ('Becca','F',NULL);
INSERT INTO student VALUES ('Gregory','M',NULL);
INSERT INTO student VALUES ('Sarah','F',NULL);
INSERT INTO student VALUES ('Robbie','M',NULL);
INSERT INTO student VALUES ('Keaton','M',NULL);
INSERT INTO student VALUES ('Carter','M',NULL);
INSERT INTO student VALUES ('Teddy','M',NULL);
INSERT INTO student VALUES ('Gabrielle','F',NULL);
INSERT INTO student VALUES ('Grace','F',NULL);
INSERT INTO student VALUES ('Emily','F',NULL);
INSERT INTO student VALUES ('Rachel','F',NULL);
#--Populate grade event table
INSERT INTO grade_event VALUES('2015-09-03', 'Q', NULL);
INSERT INTO grade_event VALUES('
2015-09-06', 'Q', NULL);
INSERT INTO grade_event VALUES('
2015-09-09', 'T', NULL);
INSERT INTO grade_event VALUES('
2015-09-16', 'Q', NULL);
INSERT INTO grade_event VALUES(
'2015-09-23', 'Q', NULL);
INSERT INTO grade_event VALUES('
2015-10-01', 'T', NULL);
#--Populate the score table
INSERT INTO score VALUES (1,1,20);
INSERT INTO score VALUES (3,1,20);
INSERT INTO score VALUES (4,1,18);
INSERT INTO score VALUES (5,1,13);
INSERT INTO score VALUES (6,1,18);
INSERT INTO score VALUES (7,1,14);
INSERT INTO score VALUES (8,1,14);
INSERT INTO score VALUES (9,1,11);
INSERT INTO score VALUES (10,1,19);
INSERT INTO score VALUES (11,1,18);
INSERT INTO score VALUES (12,1,19);
INSERT INTO score VALUES (14,1,11);
INSERT INTO score VALUES (15,1,20);
INSERT INTO score VALUES (16,1,18);
INSERT INTO score VALUES (17,1,9);
INSERT INTO score VALUES (18,1,20);
INSERT INTO score VALUES (19,1,9);
INSERT INTO score VALUES (20,1,9);
INSERT INTO score VALUES (21,1,13);
INSERT INTO score VALUES (22,1,13);
INSERT INTO score VALUES (23,1,16);
INSERT INTO score VALUES (24,1,11);
INSERT INTO score VALUES (25,1,19);
INSERT INTO score VALUES (26,1,10);
INSERT INTO score VALUES (27,1,15);
INSERT INTO score VALUES (28,1,15);
INSERT INTO score VALUES (29,1,19);
INSERT INTO score VALUES (30,1,17);
INSERT INTO score VALUES (31,1,11);
INSERT INTO score VALUES (1,2,17);
INSERT INTO score VALUES (2,2,8);
INSERT INTO score VALUES (3,2,13);
INSERT INTO score VALUES (4,2,13);
INSERT INTO score VALUES (5,2,17);
INSERT INTO score VALUES (6,2,13);
INSERT INTO score VALUES (7,2,17);
INSERT INTO score VALUES (8,2,8);
INSERT INTO score VALUES (9,2,19);
INSERT INTO score VALUES (10,2,18);
INSERT INTO score VALUES (11,2,15);
INSERT INTO score VALUES (12,2,19);
INSERT INTO score VALUES (13,2,18);
INSERT INTO score VALUES (14,2,18);
INSERT INTO score VALUES (15,2,16);
INSERT INTO score VALUES (16,2,9);
INSERT INTO score VALUES (17,2,13);
INSERT INTO score VALUES (18,2,9);
INSERT INTO score VALUES (19,2,11);
INSERT INTO score VALUES (21,2,12);
INSERT INTO score VALUES (22,2,10);
INSERT INTO score VALUES (23,2,17);
INSERT INTO score VALUES (24,2,19);
INSERT INTO score VALUES (25,2,10);
INSERT INTO score VALUES (26,2,18);
INSERT INTO score VALUES (27,2,8);
INSERT INTO score VALUES (28,2,13);
INSERT INTO score VALUES (29,2,16);
INSERT INTO score VALUES (30,2,12);
INSERT INTO score VALUES (31,2,19);
INSERT INTO score VALUES (1,3,88);
INSERT INTO score VALUES (2,3,84);
INSERT INTO score VALUES (3,3,69);
INSERT INTO score VALUES (4,3,71);
INSERT INTO score VALUES (5,3,97);
INSERT INTO score VALUES (6,3,83);
INSERT INTO score VALUES (7,3,88);
INSERT INTO score VALUES (8,3,75);
INSERT INTO score VALUES (9,3,83);
INSERT INTO score VALUES (10,3,72);
INSERT INTO score VALUES (11,3,74);
INSERT INTO score VALUES (12,3,77);
INSERT INTO score VALUES (13,3,67);
INSERT INTO score VALUES (14,3,68);
INSERT INTO score VALUES (15,3,75);
INSERT INTO score VALUES (16,3,60);
INSERT INTO score VALUES (17,3,79);
INSERT INTO score VALUES (18,3,96);
INSERT INTO score VALUES (19,3,79);
INSERT INTO score VALUES (20,3,76);
INSERT INTO score VALUES (21,3,91);
INSERT INTO score VALUES (22,3,81);
INSERT INTO score VALUES (23,3,81);
INSERT INTO score VALUES (24,3,62);
INSERT INTO score VALUES (25,3,79);
INSERT INTO score VALUES (26,3,86);
INSERT INTO score VALUES (27,3,90);
INSERT INTO score VALUES (28,3,68);
INSERT INTO score VALUES (29,3,66);
INSERT INTO score VALUES (30,3,79);
INSERT INTO score VALUES (31,3,81);
INSERT INTO score VALUES (2,4,7);
INSERT INTO score VALUES (3,4,17);
INSERT INTO score VALUES (4,4,16);
INSERT INTO score VALUES (5,4,20);
INSERT INTO score VALUES (6,4,9);
INSERT INTO score VALUES (7,4,19);
INSERT INTO score VALUES (8,4,12);
INSERT INTO score VALUES (9,4,17);
INSERT INTO score VALUES (10,4,12);
INSERT INTO score VALUES (11,4,16);
INSERT INTO score VALUES (12,4,13);
INSERT INTO score VALUES (13,4,8);
INSERT INTO score VALUES (14,4,11);
INSERT INTO score VALUES (15,4,10);
INSERT INTO score VALUES (16,4,20);
INSERT INTO score VALUES (18,4,11);
INSERT INTO score VALUES (19,4,15);
INSERT INTO score VALUES (20,4,17);
INSERT INTO score VALUES (21,4,13);
INSERT INTO score VALUES (22,4,20);
INSERT INTO score VALUES (23,4,13);
INSERT INTO score VALUES (24,4,12);
INSERT INTO score VALUES (25,4,10);
INSERT INTO score VALUES (26,4,15);
INSERT INTO score VALUES (28,4,17);
INSERT INTO score VALUES (30,4,11);
INSERT INTO score VALUES (31,4,19);
INSERT INTO score VALUES (1,5,15);
INSERT INTO score VALUES (2,5,12);
INSERT INTO score VALUES (3,5,11);
INSERT INTO score VALUES (5,5,13);
INSERT INTO score VALUES (6,5,18);
INSERT INTO score VALUES (7,5,14);
INSERT INTO score VALUES (8,5,18);
INSERT INTO score VALUES (9,5,13);
INSERT INTO score VALUES (10,5,14);
INSERT INTO score VALUES (11,5,18);
INSERT INTO score VALUES (12,5,8);
INSERT INTO score VALUES (13,5,8);
INSERT INTO score VALUES (14,5,16);
INSERT INTO score VALUES (15,5,13);
INSERT INTO score VALUES (16,5,15);
INSERT INTO score VALUES (17,5,11);
INSERT INTO score VALUES (18,5,18);
INSERT INTO score VALUES (19,5,18);
INSERT INTO score VALUES (20,5,14);
INSERT INTO score VALUES (21,5,17);
INSERT INTO score VALUES (22,5,17);
INSERT INTO score VALUES (23,5,15);
INSERT INTO score VALUES (25,5,14);
INSERT INTO score VALUES (26,5,8);
INSERT INTO score VALUES (28,5,20);
INSERT INTO score VALUES (29,5,16);
INSERT INTO score VALUES (31,5,9);
INSERT INTO score VALUES (1,6,100);
INSERT INTO score VALUES (2,6,91);
INSERT INTO score VALUES (3,6,94);
INSERT INTO score VALUES (4,6,74);
INSERT INTO score VALUES (5,6,97);
INSERT INTO score VALUES (6,6,89);
INSERT INTO score VALUES (7,6,76);
INSERT INTO score VALUES (8,6,65);
INSERT INTO score VALUES (9,6,73);
INSERT INTO score VALUES (10,6,63);
INSERT INTO score VALUES (11,6,98);
INSERT INTO score VALUES (12,6,75);
INSERT INTO score VALUES (14,6,77);
INSERT INTO score VALUES (15,6,62);
INSERT INTO score VALUES (16,6,98);
INSERT INTO score VALUES (17,6,94);
INSERT INTO score VALUES (18,6,94);
INSERT INTO score VALUES (19,6,74);
INSERT INTO score VALUES (20,6,62);
INSERT INTO score VALUES (21,6,73);
INSERT INTO score VALUES (22,6,95);
INSERT INTO score VALUES (24,6,68);
INSERT INTO score VALUES (25,6,85);
INSERT INTO score VALUES (26,6,91);
INSERT INTO score VALUES (27,6,70);
INSERT INTO score VALUES (28,6,77);
INSERT INTO score VALUES (29,6,66);
INSERT INTO score VALUES (30,6,68);
INSERT INTO score VALUES (31,6,76);
#--Populate the absence table
INSERT INTO `absence` VALUES (3,'2015-09-03');
INSERT INTO `absence` VALUES (5,'2015-09-03');
INSERT INTO `absence` VALUES (10,'2015-09-06');
INSERT INTO `absence` VALUES (10,'2015-09-09');
INSERT INTO `absence` VALUES (17,'2015-09-07');
INSERT INTO `absence` VALUES (20,'2015-09-07');
INSERT INTO `absence` VALUES (22,'2015-09-15');
In: Computer Science
Formulate the outline of a precision pricing policy for a four-star hotel designed to accommodate business guests as well as tourists from all over the world. Explain your answer
In: Operations Management
The chosen Company is Amazon. Financial statements for the years 2016, 2017 and 2018.
A. Analyze the income statement for any potential risk factors and compliance issues with Generally Accepted Accounting Principles (GAAP) or International Financial Recording Standards (IFRS).
B. Analyze the risk factors and compliance issues with GAAP or IFRS on the balance sheet.
C. Using the internal control, analyze the cash and revenue for potential risk factors.
1. What risks need to be documented?
2. How does this information compare to the company or industry averages, or the company’s past performance?
D. Explain the audit universe and how you identified it.
E. Based on your analysis of risk, devise a sampling program for the audit universe.
F. Choose the most preferable audit testing procedures that could be used in the field, based on the audit universe items sampled in this situation.
Please do not copy and paste.
Thank you
In: Accounting