Questions
A travel agent (TA) in Athens named “Thomas o Mageiras” has contracts with 135 hotels from...

A travel agent (TA) in Athens named “Thomas o Mageiras” has contracts with 135
hotels from all categories (stars) in the three major Greek summer destinations,
namely Crete, Ionian Islands and South Aegean Islands. In order to better support its
clients the TA yearly collects and updates data regarding the performance of these
hotels.
The dataset in the table that follows, provides various measures of
all 135 hotels, summarized in the following variables:
Variables Description
STARS Hotel class category
Total_Rooms Total number of rooms per hotel

Region_ID

1= Crete
2=Southern Aegean Islands
3=Ionian Islands

ARR_MAY Average Room Rate in May (in €)
ARR_AUG Average Room Rate in August (in €)
L_COST Labor cost per hotel (in €)
Note: The empty cells in the given Excel spreadsheet indicate missing values.


Question 1:
1.1 Construct the frequency distribution, the percentage distribution and the frequency
histogram of the variables ARR_MAY and ARR_AUG for ALL 135 hotels. Use
the same class width = 25 for both frequency distributions. Comment on the
characteristics of the distributions.
1.2 Construct separately, the frequency distributions and the percentage distributions
of the variable ARR_AUG for each of the three destinations. Use the same class
width = 35 for each of the three frequency distributions.
1.3 Construct separately, the frequency distributions and the percentage distributions
of the variable ARR_MAY for hotels with a) Number of rooms ≤ 50 considered
as small size hotels b) Number of rooms > 50 considered as large size hotels. Use
the same class width = 25 for both frequency distributions.

1.4 Plot three histograms of the frequency distributions of the variable ARR_AUG,
one for each of the three destinations, and comment on the main characteristics of
the three distributions.
1.5 Plot two histograms of frequency distributions of the variable ARR_MAY, one
for the small and one for the large size hotels, and comment on the main
characteristics of the two distributions.
1.6 What conclusions can you reach concerning the differences in distribution a) of
ARR_AUG among the three destinations and b) of ARR_MAY between the
small and the large size hotels?

STARS Total_Rooms Region_ID ARR_MAY ARR_AUG L_COST
1 44 2 16 35
1 18 2 16 20
1 21 3 16 40 30.000
1 21 3 16 40 20.000
1 31 2 18 35 10.450
2 32 3 19 45 6.500
1 46 3 19 23 43.549
4 38 1 22 51 59.200
2 73 2 22 41 70.000
4 65 1 25 63 83.000
3 122 2 25 33 568.536
1 16 2 25 70 379.498
1 13 3 25 45 15.000
1 16 3 25 31 27.084
2 29 1 26 44 30.000
2 42 2 28 40
2 17 1 29 53 6.121
1 23 1 30 35 50.237
2 30 2 30 55 40.000
2 15 2 30 45 4.296
1 11 2 30 50
1 22 2 30 35 1.520
3 39 3 30 68 50.000
3 32 3 30 100 40.000
2 49 3 30 73 41.000
1 13 3 30 50 9.500
1 21 3 30 40 10.000
1 8 1 31 49 7.888
2 25 3 32 55 61.766
1 57 1 35 90 11.720
1 20 1 35 45
1 18 1 35 40 112.181
2 26 1 35 40 3.575
2 37 2 35 95 270.000
2 14 3 35 70 5.500
3 98 2 38 75 150.000
3 44 2 38 84 75.704
3 75 1 40 60 37.735
3 32 1 40 60 3.500
2 23 1 40 50 6.500
1 11 1 40 55
1 15 1 40 55 3.500
3 23 1 40 55
3 10 2 40 70 10.000
1 22 2 40 100 20.000
1 12 2 40 65
4 112 3 40 56 363.825
3 72 3 40 75 177.833
1 21 1 42 54 5.700
5 378 3 44 128 2.429.367
2 68 1 45 55 199.000
3 75 2 45 70 220.000
3 62 2 45 90 50.302
3 25 2 45 95 118.049
2 15 1 47 50 19.670
4 221 2 47 102 623.117
3 27 1 48 55 20.906
4 117 2 48 91 360.000
3 62 3 50 90 252.390
3 30 3 50 80 45.000
2 41 3 50 90 166.903
2 14 3 50 80 4.000
3 66 1 51 65 230.000
2 48 1 52 60 284.569
2 39 1 53 104 107.447
3 102 3 53 91 173.481
4 62 2 55 75 249.205
2 21 2 55 100 12.000
2 53 3 55 80 48.200
4 10 1 57 97 30.000
4 70 1 59 128 437.684
1 25 1 59 128 156.316
3 69 1 60 70 256.658
3 47 1 60 120 255.020
3 170 2 60 104 538.848
2 18 2 60 100 10.000
5 270 3 60 90 1.934.820
5 240 2 61 132 1.312.601
4 241 1 64 109 793.009
4 121 1 64 132 494.566
3 54 1 65 90 200.000
4 172 1 68 148 1.383.854
5 57 2 68 140 300.000
4 227 3 69 123 1.538.000
4 322 1 70 159 1.608.013
4 27 1 70 100 130.000
2 10 2 70 100 12.500
4 56 3 70 100 96.000
3 78 3 70 120 377.182
2 24 3 70 120 116.056
2 20 3 70 120 96.713
5 133 1 71 136 801.469
4 96 3 73 134 210.000
3 93 1 76 130 626.000
4 200 2 77 178 796.026
2 35 1 80 110 64.702
1 25 2 80 120 36.277
1 25 2 80 120 36.277
3 16 2 80 100 14.300
4 216 3 80 124 1.339.903
3 74 3 80 95 111.000
5 265 1 81 174 1.393.550
5 280 3 81 138 903.000
5 127 1 85 114 1.072.000
3 33 3 85 120 238.000
4 353 2 87 152 1.511.457
5 172 1 90 195 1.151.600
4 10 1 90 105 15.950
5 219 3 93 162 1.675.995
5 313 1 94 173 2.214.985
3 18 1 94 104 722.069
4 97 3 94 120 441.737
2 43 3 94 120 195.821
5 412 1 95 160 2.165.000
4 276 2 95 160 2.050.000
3 11 3 95 120 3.000
5 166 3 98 183 900.000
3 33 2 99 218 271.724
5 139 2 100 130 495.000
5 50 2 100 180 517.729
2 25 2 100 150 60.000
5 181 3 100 187 1.143.850
5 119 3 100 150 600.000
4 9 3 100 180
5 174 3 102 211 2.500.000
5 124 3 103 160 1.103.939
5 330 2 112 240 434.237
4 324 2 112 211 1.800.000
4 161 3 112 213 1.370.968
5 306 2 113 235 2.074.000
5 261 3 119 211 3.000.000
5 204 1 131 225 2.460.634
4 34 2 133 218 96.619
4 27 2 180 250 51.000
4 12 2 215 265 45.000

In: Statistics and Probability

Question 2 Rawhide, Inc. builds a tannery in Curley's neighborhood. Before the tannery opens for business,...

Question 2

Rawhide, Inc. builds a tannery in Curley's neighborhood. Before the tannery opens for business, Curley moves to another neighborhood. However, he retains ownership of his property near the tannery. Curley leases out the property near the tannery to Mo. Once the tannery begins operating, it gives off foul odors that Mo can smell from his property. If Curley sues the tannery for nuisance, is he likely win his case? Explain why or why not.

Question 3

Rawhide, Inc. builds a tannery in Curley's neighborhood. The tannery gives off foul odors that Curley can smell from his property. If Curley sues the tannery for nuisance and wins, which of the following is the court most likely award? Explain why you chose your answer.

a. Compensation for Curley's damages.
b. Nominal Damages.
c. An injunction against the tannery.
d. Nothing.

Question 4

SureShot, Inc., is a manufacturer of special equipment used by hunters. One of their leading products is a machine that simulates the calls of elk. Each piece of equipment can make several high frequency sounds that are not audible to the human ear. In order to ensure the quality of their equipment, SureShot tests each piece of equipment several times. These tests involve testing the range of sounds that each piece of equipment makes. Therefore, dozens of high frequency sound waves are emitted from SureShot's manufacturing plant every day. Not knowing of the high frequency sounds, Kelly’s Kennels Inc., opens a dog breeding school next door to SureShot. The high frequency noises, while not audible to humans are audible and very disturbing, to dogs. The sound waves cause the dog to howl for hours every day and interfere with Kelly’s Kennels business. If Kelly’s Kennels brings an action against SureShot to recover damages for interfering with Kelly’s Kennels business, what is the most likely outcome for SureShot? Explain your answer.

a. Lose, because Kelly’s Kennels came to the nuisance after Sure Shot had already been there.
b. Lose, because Kelly’s Kennels business is abnormally sensitive to the sound waves.
c. Win, because the sound waves represent a trespass onto Kelly’s Kennels property.
d. Win, because the sound waves have seriously interfered with Kelly’s Kennels business.

Question 5

Mike is an avid collector of western art. One of his favorite pieces is a sculpture of a cowboy riding an unsaddled horse made out of old soup cans, tin foil and duct tape. Mike places the sculpture in his backyard so that he can look at it whenever he sits on his porch. Unfortunately, Stu, who lives next door to Mike and who hates the sculpture, can also see it from his porch. In fact, Stu hates the sculpture so much that he does not go out onto his porch anymore. If Stu tries to get Mike to remove the sculpture by suing him for nuisance, will Stu win? Defend your answer.

Question 6

An oil tanker belonging to Oil Finders, Inc. runs aground and causes a massive oil spill that damages several miles of the Texas coastline. As a result, several public beaches are rendered unusable to the public. Riker and Picard are avid surfers who like to hit the waves as often as they can. Because of the oil spill, they will not be able to surf for at least six months. They file suit against Oil Finders, Inc. for nuisance. Will the court hear their suit? Defend your answer.

Question 7

An oil tanker belonging to Oil Finders, Inc. runs aground and causes a massive oil spill that damages several miles of the Texas coastline. As a result, several public beaches are rendered unusable to the public. Riker and Picard make their living harvesting clams and oysters at the various beaches in the area and their business has been destroyed as a result of the oil spill. They file suit against Oil Finders, Inc. for nuisance. Will the court hear their suit? Defend your answer.

Question 8

John and Kelsey live in a house in Missouri that they purchased for $250,000. The town has never had a garbage dump and the city government has spent millions of dollars over the years sending the town's trash to a dump located in a different part of the state. In order to save money, the town contracts with Mr. Barr, the president of a waste management company, to build and maintain a landfill at the edge of the town. Within six months, the landfill is operational. Eventually, as more and more of the town's trash gets dumped into the landfill, the residents of the town are subjected to the odor that the landfill gives off. The odor is not constant but, on windy days, it is noticeable. As a result, the house that John and Kelsey bought for $250,000 is reduced in value to $240,000. If John sues the town for nuisance, which of the following is most likely to occur? Defend your answer/

a. Win, because his house's value has been reduced.
b. Win, because John moved to the neighborhood before the landfill opened.
c. Lose, because the odor is not constant.
d. Lose, because benefits of the landfill outweigh the damage done to John.

In: Economics

2008 Summer Olympics in Beijing, China, in a world record of 9.58 seconds. That works out...

2008 Summer Olympics in Beijing, China, in a world record of 9.58 seconds. That works out to be about 23.4 miles per hour over the course of the race. For a brief period during that sprint, Bolt reached an astounding 40 feet per second (27.51 mph). As a physical activity, running is very different from walking. In running, a person's legs flex and the muscles stretch and then contract during acceleration. As the runner's muscles release and absorb energy, the overall energy in the person's body changes and leads to increased speed. What Makes An Elite Runner? Scholars believe that the fastest runners — the elite sprinters like Bolt - are those who use a low amount of energy for every foot that they run, compared to other people. The ability to do that is influenced by a number of different factors, including their age, sex and distribution of muscles. The fastest of the elite runners are young men. The way in which a person's body moves in time and space is called biomechanics. The possible speed of a runner is influenced by their biomechanics, especially how their legs move as they run. Many different factors could influence a person's running speed, including how much time the foot spends touching the ground, how far the legs swing and the angle and distance of the stride. In particular, sprint runners maximize their acceleration and top speed by applying more force relative to their body weight. Their ankles move faster and they take more steps per minute. Long-Distance Runners: When considering speed, sports researchers also look at long-distance runners, who race distances between 3 and 26 miles. The fastest of these runners use considerable plantar pressure, which is the amount of pressure the foot puts on the ground. Changes in biomechanical factors, or how the legs move over time and space, also seem to have a significant effect. As with sprinters, the fastest group in marathon running is men aged between 25 and 29. Those men have an average speed between 558 and 577 feet per minute. This information was gathered from the marathons that were run in Chicago and New York between 2012 and 2016. The New York City marathon runs in waves. There are four groups of runners who begin the race roughly 30 minutes apart. As a result, statistics are available for runner speeds at 3-mile segments throughout the race. Researcher Zhenquan Lin and his team used that data to show that one factor of speed is competition. Runners increase speed and change positions more frequently at the end of the race. The Upper Limits In comparison to other animals, humans are very slow. The fastest animal on record is the cheetah, which can run up to 70 mph. Even Usain Bolt can only attain a fraction of that. Recent research on the most elite runners has led sports medicine expert Peter Weyand and his team to suggest that the upper limit might reach 35-40 mph. So far though, no one has been willing to confirm that in an official publication. In other words, scientists still need to find more Proof. Statistics: According to Rankings.com, the fastest three male sprinters in the world today are Usain Bolt, Tyson and Asafa Powell. Bolt and Powell are Jamaican, and tyson is American. Bolt set the 100-meter record at the 2008 Summer Olympic Games in Beijing, China, completing the race in 9.58 seconds. His speed was 34.25 feet per second. tyson's fastest time is 9.69 seconds. Powell's is 9.72 seconds. The fastest three female sprinters are Florence Griffith Joyner, Carmelita Jeter and Marion Jones, who are all American. Joyner's fastest time in the 100-meter was 10.49 seconds, set in the 1988 Olympics in Seoul, South Korea, at a speed of 31.27 feet per second. Jeter's fastest time is 10.64 seconds. Jones' is 10.65 seconds. The three fastest male marathon runners are, according to Runners World, Dennis Kimetto of Kenya, Kenenisa Bekele of Ethiopia and Eliud Kipchoge of Kenya. Kimetto set the record for the fastest marathon time at the Berlin Marathon in 2014. He completed the 26.2-mile race in just 2 hours, 2 minutes and 57 seconds. Bekele finished the Berlin Marathon in 2:03:03 in 2016. Kipchoge ran the London Marathon in 2:03:05 in 2016. The three fastest female marathon runners are Paula Radcliffe of England, Mary Keitany of Kenya and Tirunesh Dibaba of Kenya. Radcliffe completed the 2003 London Marathon in 2:15:25. Keitany completed the 2017 London Marathon at 2:17:01. Dibaba finished the same race in 2:17:56.

Examine the ideas in the article. in a short paragraph that explains the central idea of the article. Use at least two details from the article to support your response.

In: Statistics and Probability

Raymond Santana created Computer Solutions on October 1, 2019. The company has been successful, and its...

Raymond Santana created Computer Solutions on October 1, 2019. The company has been successful, and its list of customers has grown.

In response to requests from customers, R. Santana will begin selling computer software. The company will extend credit terms of 1/10, n/30, FOB shipping point, to all customers who purchase this merchandise. However, no cash discount is available on consulting fees. Also, Business Solutions does not use reversing entries and, therefore, all revenue and expense accounts have zero beginning balances as of January 1, 2020. Its transactions for January through March follow:

Jan.

4

The company paid cash to Lyn Addie for five days’ work at the rate of $125 per day. Four of the five days relate to wages payable that were accrued in the prior year.

5

Ray Santana invested an additional $20,000 cash in the company in exchange for more common stock.

7

The company purchased $5,800 of merchandise from Kansas Corp. with terms of 1/10, n/30, FOB shipping point, invoice dated January 7.

9

The company received $2,750 cash from Gomez Co. as full payment on its account.

11

The company completed a five-day project for Alex’s Engineering Co. and billed it $5,500, which is the total price of $7,000 less the advance payment of $1,500.

13

The company sold merchandise with a retail value of $5,200 and a cost of $3,560 to Liu Corp., invoice dated January 13.

15

The company paid $600 cash for freight charges on the merchandise purchased on January 7.

16

The company received $4,000 cash from Delta Co. for computer services provided.

17

The company paid Kansas Corp. for the invoice dated January 7, net of the discount.

20

Liu Corp. returned $500 of defective merchandise from its invoice dated January 13. The returned merchandise, which had a $320 cost, is discarded. (The policy of Computer Solutions is to leave the cost of defective products in cost of goods sold.)

22

The company received the balance due from Liu Corp., net of both the discount and the credit for the returned merchandise.

24

The company returned defective merchandise to Kansas Corp. and accepted a credit against future purchases. The defective merchandise invoice cost, net of the discount, was $496.

26

The company purchased $8,000 of merchandise from Kansas Corp. with terms of 1/10, n/30, FOB destination, invoice dated January 26.

26

The company sold merchandise with a $4,640 cost for $5,800 on credit to KC, Inc., invoice dated January 26.

31

The company paid cash to Lyn Addie for 10 days’ work at $125 per day.

Feb.

1

The company paid $2,475 cash to Hillside Mall for another three months’ rent in advance.

3

The company paid Kansas Corp. for the balance due, net of the cash discount, less the $496 amount in the credit memorandum.

5

The company paid $600 cash to the local newspaper for an advertising insert in today’s paper.

11

The company received the balance due from Alex’s Engineering Co. for fees billed on January 11.

15

The company paid $4,800 cash in dividends.

23

The company sold merchandise with a $2,660 cost for $3,220 on credit to Delta Co., invoice dated February 23.

26

The company paid cash to Lyn Addie for eight days’ work at $125 per day.

27

The company reimbursed Ray Santana for business automobile mileage (600 miles at $0.32 per mile).

Mar.

8

The company purchased $2,730 of computer supplies from Harris Office Products on credit, invoice dated March 8.

9

The company received the balance due from Delta Co. for merchandise sold on February 23. (Note discount period versus payment)

11

The company paid $960 cash for minor repairs to the company’s computer.

16

The company received $5,260 cash from Dream, Inc., for computing services provided.

19

The company paid the full amount due to Harris Office Products, consisting of amounts created on December 15 (of $1,100) and March 8.

24

The company billed West Leasing for $9,045 of computing services provided.

25

The company sold merchandise with a $2,002 cost for $2,800 on credit to Wildcat Services, invoice dated March 25.

30

The company sold merchandise with a $1,048 cost for $2,220 on credit to IFM Company, invoice dated March 30.

31

The company reimbursed R. Santana for business automobile mileage (400 miles at $0.32 per mile).

I am mainly interested in COGS and inventory transactions (journal entries), and both of the account end balances. Please show the work. Thank you

In: Accounting

Develop and pseudocode for the code below: #include <algorithm> #include <iostream> #include <time.h> #include "CSVparser.hpp" using...

Develop and pseudocode for the code below:

#include <algorithm>
#include <iostream>
#include <time.h>

#include "CSVparser.hpp"

using namespace std;

//============================================================================
// Global definitions visible to all methods and classes
//============================================================================

// forward declarations
double strToDouble(string str, char ch);

// define a structure to hold bid information
struct Bid {
string bidId; // unique identifier
string title;
string fund;
double amount;
Bid() {
amount = 0.0;
}
};

//============================================================================
// Static methods used for testing
//============================================================================

/**
* Display the bid information to the console (std::out)
*
* @param bid struct containing the bid info
*/
void displayBid(Bid bid) {
cout << bid.bidId << ": " << bid.title << " | " << bid.amount << " | "
<< bid.fund << endl;
return;
}

/**
* Prompt user for bid information using console (std::in)
*
* @return Bid struct containing the bid info
*/
Bid getBid() {
Bid bid;

cout << "Enter Id: ";
cin.ignore();
getline(cin, bid.bidId);

cout << "Enter title: ";
getline(cin, bid.title);

cout << "Enter fund: ";
cin >> bid.fund;

cout << "Enter amount: ";
cin.ignore();
string strAmount;
getline(cin, strAmount);
bid.amount = strToDouble(strAmount, '$');

return bid;
}

/**
* Load a CSV file containing bids into a container
*
* @param csvPath the path to the CSV file to load
* @return a container holding all the bids read
*/
vector<Bid> loadBids(string csvPath) {
cout << "Loading CSV file " << csvPath << endl;

// Define a vector data structure to hold a collection of bids.
vector<Bid> bids;

// initialize the CSV Parser using the given path
csv::Parser file = csv::Parser(csvPath);

try {
// loop to read rows of a CSV file
for (int i = 0; i < file.rowCount(); i++) {

// Create a data structure and add to the collection of bids
Bid bid;
bid.bidId = file[i][1];
bid.title = file[i][0];
bid.fund = file[i][8];
bid.amount = strToDouble(file[i][4], '$');

//cout << "Item: " << bid.title << ", Fund: " << bid.fund << ", Amount: " << bid.amount << endl;

// push this bid to the end
bids.push_back(bid);
}
} catch (csv::Error &e) {
std::cerr << e.what() << std::endl;
}
return bids;
}

// FIXME (2a): Implement the quick sort logic over bid.title

/**
* Partition the vector of bids into two parts, low and high
*
* @param bids Address of the vector<Bid> instance to be partitioned
* @param begin Beginning index to partition
* @param end Ending index to partition
*/
int partition(vector<Bid>& bids, int begin, int end) {

int l = begin;
int h = end;


int pivot = (begin + (end - begin) / 2);
bool finished = false;

// this while loops continually increments the low point as long as it's below the pivot
// then continually decrements the high point as long as it's above the pivot
while(!finished) {

while(bids[l].title.compare(bids[pivot].title) < 0) {
++l;
}

while(bids[pivot].title.compare(bids[h].title) < 0) {
--h;
}

if (l >= h) {
finished = true;
// if variable l is not greater than or equal to h the two bids are swapped
} else {
swap(bids[l] , bids[h]);


//bring end points closer to one another

++l;
--h;
}
}
return h;
}

/**
* Perform a quick sort on bid title
* Average performance: O(n log(n))
* Worst case performance O(n^2))
*
* @param bids address of the vector<Bid> instance to be sorted
* @param begin the beginning index to sort on
* @param end the ending index to sort on
*/
void quickSort(vector<Bid>& bids, int begin, int end) {
}

// FIXME (1a): Implement the selection sort logic over bid.title

/**
* Perform a selection sort on bid title
* Average performance: O(n^2))
* Worst case performance O(n^2))
*
* @param bid address of the vector<Bid>
* instance to be sorted
*/
void selectionSort(vector<Bid>& bids) {
// this creates an index to the smallest minimum bid found
unsigned int smallest;
unsigned int largest = bids.size();

// place designates the position at which bids are sorted/unsorted
for (unsigned place = 0; place < largest; ++place) {
smallest = place;

for (unsigned j = place + 1; j < largest; ++j) {
if (bids[j].title.compare(bids[smallest].title) < 0) {
smallest = j;
}
}

if (smallest != place)
swap(bids[place], bids[smallest]);
}

}

/**
* Simple C function to convert a string to a double
* after stripping out unwanted char
*
* credit: http://stackoverflow.com/a/24875936
*
* @param ch The character to strip out
*/
double strToDouble(string str, char ch) {
str.erase(remove(str.begin(), str.end(), ch), str.end());
return atof(str.c_str());
}

/**
* The one and only main() method
*/
int main(int argc, char* argv[]) {

// process command line arguments
string csvPath;
switch (argc) {
case 2:
csvPath = argv[1];
break;
default:
csvPath = "eBid_Monthly_Sales_Dec_2016.csv";
}

// Define a vector to hold all the bids
vector<Bid> bids;

// Define a timer variable
clock_t ticks;

int choice = 0;
while (choice != 9) {
cout << "Menu:" << endl;
cout << " 1. Load Bids" << endl;
cout << " 2. Display All Bids" << endl;
cout << " 3. Selection Sort All Bids" << endl;
cout << " 4. Quick Sort All Bids" << endl;
cout << " 9. Exit" << endl;
cout << "Enter choice: ";
cin >> choice;

switch (choice) {

case 1:
// Initialize a timer variable before loading bids
ticks = clock();

// Complete the method call to load the bids
bids = loadBids(csvPath);

cout << bids.size() << " bids read" << endl;

// Calculate elapsed time and display result
ticks = clock() - ticks; // current clock ticks minus starting clock ticks
cout << "time: " << ticks << " clock ticks" << endl;
cout << "time: " << ticks * 1.0 / CLOCKS_PER_SEC << " seconds" << endl;

break;

case 2:
// Loop and display the bids read
for (int i = 0; i < bids.size(); ++i) {
displayBid(bids[i]);
}
cout << endl;

break;

// FIXME (1b): Invoke the selection sort and report timing results
    ticks = clock();

// call selectionSort method to sort the loaded bids
selectionSort(bids);

cout << bids.size() << " bids read" << endl;

// Calculate elapsed time and display result
ticks = clock() - ticks; // current clock ticks minus starting clock ticks
cout << "time: " << ticks << " clock ticks" << endl;
cout << "time: " << ticks * 1.0 / CLOCKS_PER_SEC << " seconds" << endl;

break;

// FIXME (2b): Invoke the quick sort and report timing results

   ticks = clock();

// call quickSort method to sort the loaded bids
quickSort(bids, 0, bids.size() - 1);

cout << bids.size() << " bids read" << endl;

// Calculate elapsed time and display result
ticks = clock() - ticks; // current clock ticks minus starting clock ticks
cout << "time: " << ticks << " clock ticks" << endl;
cout << "time: " << ticks * 1.0 / CLOCKS_PER_SEC << " seconds" << endl;

break;

}

cout << "Good bye." << endl;

return 0;
}

In: Computer Science

Which of the following statements about value is FALSE? Value includes the concept of quality, but...

Which of the following statements about value is FALSE?

Value includes the concept of quality, but it is broader in scope.

Value takes into account every marketing program element.

Unlike quality, value means the same thing to all customers.

Value is critical to maintaining long-term customer relationships.

Value allows for the necessary balance among the types of utility.

2.Relevance is a critical criterion in formulating a value claim for a positioning statement. The makers of Cialis, an erectile dysfunction (ED) drug, are considering a value claim that it "enhances intimacy and relationship." To assess the relevance of this claim, Cialis must determine if the claim:

is unique among value claims of competitor brands.

aligns with the specific needs of the target market.

can be endorsed by an authority figure or a celebrity.

is supportable by scientific evidence.

3.Assume that Park Paper Products believes its customers typically use satisficing decision making when purchasing paper products. Which of the following would likely be the least effective market strategy?

Make products easy to find

Offer products at an affordable price

Design colorful packaging to make products stand out from other offerings

Secure a large amount of shelf space

Focus advertising on the technical reasons why products are best in class

4.All of the following should be part of Best Buy's in-store marketing strategy to influence sales of consumer electronics in its stores EXCEPT:

recognizability of the brand name.

method of product delivery.

acceptability of the price point.

the decision to display the product or not.

5.

Line is the most widely used messaging app in Japan, Thailand, and Taiwan. After achieving success by focusing on chatting, video calling, photo sharing, and other communication functions, the firm leveraged its large customer base to expand beyond these functions. Line now offers online purchasing, delivery, taxi-hailing, and financial services.
of the three major product policy decisions faced by a firm, Line has been primarily engaged in:

Increasing product line depth

Widening product accessibility

Increasing product line breadth

Increasing product line breadth

6.In the case study about the marketing of Propecia, who were the two key decision-makers involved in the purchase and use of Propecia?

Merck and consumers

Consumers and physicians

Primary care physicians and dermatologists

Buyers and users

Merck and health care insurance providers

7.You are the vice president of marketing for a regional chain of fine dining restaurants. You have created policies to ensure that every fulltime employee has the training and skills to deliver the highest quality customer experiences. For example, every server is authorized to surprise customers with one-bite appetizers as part of the company's Customer Delight program. The company refers to these policies as employee empowerment. This is an example that best matches which of the four sets of activities for creating a customer-centric culture?

Coordination

Cooperation

Capability

Connection

In: Operations Management

Carpenter Cornices, Ltd., produces a wide variety of cornice moldings for windows at a plant located...

Carpenter Cornices, Ltd., produces a wide variety of cornice moldings for windows at a plant located in Evergreen Park, Illinois. Because there are hundreds of products, some of which are made only to order, the company uses a job-order costing system. On July 1, the start of the company’s fiscal year, inventory account balances were as follows:

Raw

materials

$ 12,800

Work in

process

$ 6,800
Finished goods

$

10,500

The company applies overhead cost to jobs on the basis of machine-hours. Its predetermined overhead rate for the fiscal year starting July 1 was based on a cost formula that estimated $200,600 of manufacturing overhead for an estimated activity level of 59,000 machine-hours. During the year, the following transactions were completed (Assume all purchases and services were acquired on account):

a. Raw materials purchased on account, $204,000.
b.

Raw materials requisitioned for use in production, $165,000 (materials costing $154,000 were chargeable directly to jobs; the remaining materials were indirect).

c. Costs for employee services were incurred as follows:
Direct labor $ 112,000
Indirect labor $ 48,800
Sales commissions $ 35,000
Administrative salaries $ 54,000
d.

Prepaid insurance expired during the year, $28,500 ($17,900 of this amount related to factory operations, and the remainder related to selling and administrative activities).

e. Utility costs incurred in the factory, $26,000.
f. Advertising costs incurred, $15,000.
g.

Depreciation recorded on equipment, $40,000. ($26,000 of this amount was on equipment used in factory operations; the remaining $14,000 was on equipment used in selling and administrative activities.)

h.

Manufacturing overhead cost was applied to jobs, $?. (The company recorded 30,000 machine-hours of operating time during the year.)

i. Goods that had cost $328,000 to manufacture according to their job cost sheets were completed.
j.

Sales (all on account) to customers during the year totaled $619,000. These goods had cost $327,000 to manufacture according to their job cost sheets.

1.

Prepare journal entries to record the transactions for the year. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field.)

Prepare T-accounts for inventories, Manufacturing Overhead, and Cost of Goods Sold. Post relevant data from your journal entries to these T-accounts (don’t forget to enter the opening balances in your inventory accounts). Compute an ending balance in each account. (Round your intermediate calculations to 2 decimal places.

is Manufacturing Overhead underapplied or overapplied for the year? (Round your intermediate calculations to 2 decimal places.)

Manufacturing overhead was by for the year.


3-bPrepare a journal entry to close any balance in the Manufacturing Overhead account to Cost of Goods Sold.

Record the entry to close any balance in the Manufacturing Overhead account to Cost of Goods Sold.\

4-

Prepare an income statement for the year. (Round your intermediate calculations to 2 decimal places.)

        

In: Accounting

Matt’s Landscaping Pty Ltd is registered for GST purposes. It accounts for GST on the accruals...

Matt’s Landscaping Pty Ltd is registered for GST purposes. It accounts for GST on the accruals basis and submits its Business Activity Statements monthly. Assume that all amounts in the question include GST when applicable.

The business operates from Brisbane’s north-side and its main business is to design and establish new gardens at shopping centres and office parks, and to provide ongoing garden maintenance services to clients.

During October 2018, Matt’s Landscaping Pty Ltd was involved in the following transactions:

* Designing and establishing a new garden at the refurbished Westfield shopping centre at North Lakes. The invoice issued on 25 October 2018 totalled $27,600.

* Ongoing garden maintenance services for clients. Invoices issued in October 2018 totalled $55,200.

* Matt’s Landscaping Pty Ltd prepared plans for the elaborate gardens of a new hotel being built in Dubai in the United Arab Emirates. The plans were sent to Dubai by airfreight on 1 October 2018. Matt’s Landscaping Pty Ltd issued an invoice for $17,500 on 15 October 2018.

* Purchases of plants, fertiliser and decorative stones from Brunnings Warehouse, one of Australia’s largest household hardware chains, totalled $9,900.

* The company purchased 100 square meters of Buffalo lawn from a retired school teacher who decided to dig up the lawn of his acreage in Caboolture to put down asphalt so that he no longer had to mow his lawn. The school teacher charged Matt’s Landscaping Pty Ltd $660 on 19 October 2018.

*The company purchased a second-hand lawnmower from a large supplier in Perth for $990 on 1 October 2018. The lawnmower was delivered a day later by a nationwide courier company that charged $110 for this service.

* Salaries and wages paid to staff in October 2018 totalled $12,000.

* Fuel costs for the company’s vehicles, lawnmowers and hedge trimmers totalled $1,980 during October 2018.

* The business operated from rented offices in North Lakes owned by a listed property group. Rent for October 2018 totalled $1,000.

* The October invoice that Matt’s Landscaping Pty Ltd received from the electricity and gas supplier for the rental property totalled $275.

* Purchases of milk, sugar, tea bags and coffee powder from a grocery store totalled $100 in October 2018. These were placed in a tea room in the rented offices for the exclusive use of staff.

* On 1 October 2018, Matt’s Landscaping Pty Ltd purchased a new one and a half tonne utility vehicle for $82,500.

* The company purchased specialised pruning shears from a company in France during October 2018. The shears cost $1,500 and international freight and insurance cost $100.

* Interest paid to the Commonwealth Bank of Australia in October 2018 on an overdraft facility totalled $660.

You are required to:

Calculate the GST payable or GST refundable for October 2018. Show all your calculations and provide reasons for your answers

In: Accounting

The town of Malvern engages in the following transactions during its fiscal year ending September 30,...

The town of Malvern engages in the following transactions during its fiscal year ending September 30, 2021. All dollar amounts are in thousands. Prepare summary journal entries in its governmental funds. Base entries on generally accepted accounting principles now in effect.

(1)   At the beginning of the fiscal year 2021, the town levied property taxes of $180,000. It estimated that $6,000 will be uncollectible.

(2)   During fiscal year 2021, the town collected $150,000 prior to September 30, 2021.

(3)   The town collected $4,000 each month in October and November 2021, prior to preparing its 2021 financial statements. It expected to receive $4,000 each month for the next four months.

(4)   During the remainder of fiscal year 2022, the town collected $16,000 in tax relating to 2021, $140,000 related to 2022, and $10,000 applicable to 2023.

(5)   On November 20, 2021, it received $42,000 from the state for sales taxes collected on its behalf. The payment was for sales made in September that merchants were required to remit to the state by October 15.

(6)   In April, the town was awarded a state training grant of $500 for the period June 1, 2021, through May 31, 2022. In fiscal 2021, the town received the entire $500 but spent only $400.

(7)   The town requires each vendor who sells at its farmers' market to obtain an annual permit. The funds generated by the sale of these permits are used to maintain the market. The permits, which cover the period from June 1 through May 31, are not refundable. During fiscal year 2021, the town issued $66 worth in permits. It expects to collect an additional $12 within 60 days of the close of the fiscal year.

(8)   On May 1, 2021, a developer (in exchange for exemptions to zoning restrictions) donated several acres of land that the town intended to convert to a park. The land had cost the developer $100,000. At the time of the contribution, its fair market value was $280,000.

(9)   Several years earlier the town received a donation of a parcel of land, upon which it expected to build. During fiscal 2021, it opted to sell the land for $185. When acquired by the town, the land had a market value of $119.

At the beginning of the fiscal year 2021, The town of Marlvern acquired six police cars at a total cost of $200,000. The vehicles are expected to have a useful life of four years. Prepare the journal entries that the town would make in its governmental funds in the fiscal year based on the following scenarios:

(10)It paid for the cars in cash at the time of acquisition.

(11)It issued $200,000 in installment notes to the car dealer, agreeing to repay them in four annual payments of $63,095 at the end of each fiscal year (effective interest rate is 10%), starting in the year of acquisition.

In: Finance

The weights (in pounds) and ages (in months) of 35 randomly selected male bears in Yellowstone...

The weights (in pounds) and ages (in months) of 35 randomly selected male bears in Yellowstone Park were recorded in a file male_bears.csv. A researcher runs the following code in R to read in the data.

> bears <- read.table(file="male_bears.csv", header=T, sep=",")

The researcher then runs the following code in R to fit a simple linear regression model oftheformyi =α+βxi +εi, i=1,2...n.Notethatsomevaluesintheoutputhave been removed.

> result <- lm(WEIGHT ~ AGE, data=bears) > summary(result)

Call:
lm(formula = WEIGHT ~ AGE, data Residuals:

Min 1Q Median 3Q -204.96 -45.82 -11.69 22.78

Coefficients:
Estimate Std. Error

(Intercept) 73.6415 19.3023
AGE 3.2052 0.3695
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘’1

Residual standard error: 75.13 on 33 degrees of freedom Multiple R-squared: 0.6952, Adjusted R-squared: 0.6859
F-statistic: 75.25 on 1 and 33 DF, p-value: **REMOVED**

  1. i) Identify the response and predictor variables in the output above. [2]

  2. ii) Using values from the output, write out the estimated linear regression equation.

    [2]

= bears)

Max 174.33

t value 3.815 8.675

Pr(>|t|) 0.000567 *** **REMOVED**

‘*’ 0.05 ‘.’ 0.1

2

  1. iii) Provide an interpretation of the coefficient of the variable AGE in the output. [1]

  2. iv) Write out the hypotheses being tested by the t-statistic circled in the output.

    [1]

  3. v) What are your conclusions about the hypotheses in (iv)? Use statistical tables to arrive at your conclusion. [3]

The researcher then produced the following analysis for variance for the regression model.

> anova(result)
Analysis of Variance Table
Response: WEIGHT
          Df Sum Sq Mean Sq F value    Pr(>F)

AGE 1 424736 424736 75.251 5.017e-10 *** Residuals 33 186260 5644

  1. vi) Using values from the analysis of variance output, compute the coefficient of determination for the regression model. [2]

  2. vii) Provide an interpretation of the coefficient of determination. [1]

Some summary statistics for the variable AGE are provided below. > summary(bears$AGE)

Min. 1st Qu. Median Mean 3rd Qu. Max. 8.00 16.50 32.00 39.34 53.00 177.00

  1. viii) Is the estimated regression equation in (ii) suitable for predicting the weight of a male bear who is 100 months old? Give a reason for your answer. If your answer was yes, find the predicted weight of a 100-month old male bear. [3]

  2. ix) Is the estimated regression equation in (ii) suitable for predicting the weight of a female bear who is 100 months old? Give a reason for your answer. [2]

The researcher then produced the following diagnostic plots in R.

> qqnorm(result$residuals)
> qqline(result$residuals)

3

> plot(result$fitted, result$residuals)
  1. x) For each of the plots above, explain the specific purpose of the plot. [2]

  2. xi) State your conclusions made from observing each plot. [2]

In: Statistics and Probability