Questions
Modern Kitchens specializes on sell prefabricated kitchens. The company has stores in all major capital cities...

Modern Kitchens specializes on sell prefabricated kitchens. The company has stores in all major capital cities throughout Australia. It’s been established since 2001 and has seen tremendous growth but more recently has seen several overseas competitors enter the Australian market resulting in an increase in competition. This increased competition has placed significant pressure on containing costs and drawn management’s attention to a review of working capital practices. Detailed below are relevant figures and ratios to assist you in evaluating Modern Kitchen’s working capital management.
Working Capital Ratios 2016 2017 2018 2019
Accounts Receivable Days 14.0 days 18.1 days 23.1 days 31.9 days
Inventory Days 16.0 days 19.1 days 21.9 days 25.0 days
Accounts Payable Days 14.1 days 21. days 29.0 days 37.0 days
Note: Ratios are based on assuming end year figures are the average throughout the majority of the year
Extracts from Financial Statements
Cash on hand 0.20 mill 0.15 mill .01 mill (.003 mill)
Sales – all on credit 8.1 mill 6.9 mill 8.0 mill 9.0 mill
Accounts Receivable Balance 0.3069 mill 0.3453 mill 0.5044 mill 0.7894 mill
Inventory 0.1754 mill 0.2186 mill 0.2712 mill 0.3219 mill
Cost of Goods Sold 4.0 mill 4.2 mill 4.5 mill 4.7 mill
Accounts Payable 0.1534 mill 0.2417 mill 0.3574 mill 0.4762mill
Budgeted Figures
Cash on hand 0.3 mill 0.3 mill 0.31 mill 0.32 mill
Accounts Receivable Balance 0.30 mill 0.31 mill 0.37 mill 0.38 mill
Inventory Balance 0.16 mill 0.17 mill 0.20 mill 0.21 mill
Accounts Payable 0.16 mill 0.17 mill .19 mill 0.20 mill
Accounts Receivable Terms 14 days 14 days 14 days 14 days
Accounts Payable Terms 30 days 30 days 30 days 30 days
Industry Averages
Accounts Receivable Days 14 days 14 days 15 days 16 days
Inventory Days 15 days 16 days 16 days 15 days
Accounts Payable Days 30 days 28 days 25 days 20 days
REQUIRED:
Calculate (show full workings to your answer):
(i)  the dollar value of actual net working capital each year from 2016 to 2019 for Modern Kitchens.
(ii) the duration of the operating cash cycle each year from 2016 to 2019 for Modern Kitchens.
(iii) interpret the meaning of each of the figures calculated above (40-word limit)
(a) Review Modern Kitchens’s working capital management performance utilizing calculations in (a) above and information provided such as trends / benchmark figures / industry averages and budgets (300-word limit).

(b)  Once you have analyzed their performance, provide some strategies and recommendations to assist in improving any weaknesses in working capital management referring to the management of components of working capital including cash, inventory, accounts receivable and accounts payable. As part of your recommendations identify the associated potential benefits and costs of each recommendation. (400-word limit)

In: Finance

Modern Kitchens specializes on sell prefabricated kitchens. The company has stores in all major capital cities...

Modern Kitchens specializes on sell prefabricated kitchens. The company has stores in all major capital cities throughout Australia. It’s been established since 2001 and has seen tremendous growth but more recently has seen several overseas competitors enter the Australian market resulting in an increase in competition. This increased competition has placed significant pressure on containing costs and drawn management’s attention to a review of working capital practices. Detailed below are relevant figures and ratios to assist you in evaluating Modern Kitchen’s working capital management.
Working Capital Ratios 2016 2017 2018 2019
Accounts Receivable Days 14.0 days 18.1 days 23.1 days 31.9 days
Inventory Days 16.0 days 19.1 days 21.9 days 25.0 days
Accounts Payable Days 14.1 days 21. days 29.0 days 37.0 days
Note: Ratios are based on assuming end year figures are the average throughout the majority of the year
Extracts from Financial Statements
Cash on hand 0.20 mill 0.15 mill .01 mill (.003 mill)
Sales – all on credit 8.1 mill 6.9 mill 8.0 mill 9.0 mill
Accounts Receivable Balance 0.3069 mill 0.3453 mill 0.5044 mill 0.7894 mill
Inventory 0.1754 mill 0.2186 mill 0.2712 mill 0.3219 mill
Cost of Goods Sold 4.0 mill 4.2 mill 4.5 mill 4.7 mill
Accounts Payable 0.1534 mill 0.2417 mill 0.3574 mill 0.4762mill
Budgeted Figures
Cash on hand 0.3 mill 0.3 mill 0.31 mill 0.32 mill
Accounts Receivable Balance 0.30 mill 0.31 mill 0.37 mill 0.38 mill
Inventory Balance 0.16 mill 0.17 mill 0.20 mill 0.21 mill
Accounts Payable 0.16 mill 0.17 mill .19 mill 0.20 mill
Accounts Receivable Terms 14 days 14 days 14 days 14 days
Accounts Payable Terms 30 days 30 days 30 days 30 days
Industry Averages
Accounts Receivable Days 14 days 14 days 15 days 16 days
Inventory Days 15 days 16 days 16 days 15 days
Accounts Payable Days 30 days 28 days 25 days 20 days
REQUIRED:
Calculate (show full workings to your answer):
(i)  the dollar value of actual net working capital each year from 2016 to 2019 for Modern Kitchens.
(ii) the duration of the operating cash cycle each year from 2016 to 2019 for Modern Kitchens.
(iii) interpret the meaning of each of the figures calculated above (40-word limit)
(a) Review Modern Kitchens’s working capital management performance utilizing calculations in (a) above and information provided such as trends / benchmark figures / industry averages and budgets (300-word limit).

(b)  Once you have analyzed their performance, provide some strategies and recommendations to assist in improving any weaknesses in working capital management referring to the management of components of working capital including cash, inventory, accounts receivable and accounts payable. As part of your recommendations identify the associated potential benefits and costs of each recommendation. (400-word limit)

In: Finance

QUESTION 20 Floating-point instruction names begin with the letter F to distinguish them from CPU instructions....

QUESTION 20

  1. Floating-point instruction names begin with the letter F to distinguish them from CPU instructions.

    True

    False

1 points   

QUESTION 21

  1. Which of the following exception conditions are recognized and detected by the floating point unit (FPU)?

    a.

    Inexact precision

    b.

    Divide by zero

    c.

    Numeric overflow

    d.

    Numeric underflow

1 points   

QUESTION 22

  1. How many operands can a floating-point instruction have?

    a.

    Can have zero operands.

    b.

    Can have two operands.

    c.

    Can have one immediate operand.

    d.

    Must have at least one operand.

1 points   

QUESTION 23

  1. What effect does initializing the floating point unit (FPU) have on the contents of the FPU control word.

    a.

    All floating-point exceptions are masked.

    b.

    Nothing, the FPU control word is not changed at initialization.

    c.

    Calculation precision is set to 80 bits.

    d.

    Rounding is set to nearest even.

1 points   

QUESTION 24

  1. How are unsigned comparisons performed by the floating point unit (FPU)?

    a.

    Integer subtraction is used.

    b.

    A default value is used for the sign.

    c.

    Never, floating-point values are implicitly signed.

    d.

    Twos-complement is used in the comparison.

1 points   

QUESTION 25

  1. Which of the following statements accurately describes floating point comparisons?

    a.

    They incur more runtime overhead than integer comparisons.

    b.

    The extreme accuracy of floating-point numbers makes comparing for equality much easier.

    c.

    Conditional jumps using the contents of the EFLAGS register are immediately available after a comparison.

    d.

    They incur less runtime overhead than integer comparisons.

1 points   

QUESTION 26

  1. What happens by default when you divide a floating-point number by zero?

    a.

    An exception is thrown and execution is transferred to the operating system.

    b.

    A default value is assigned to the result and execution continues.

    c.

    A default value is assigned to the result and en exception is thrown.

    d.

    The processor tries to execute an appropriate exception handler.

1 points   

QUESTION 27

  1. Which of the following statements are true regarding the x86 machine instruction format?

    a.

    The opcode overrides the deafult operand size.

    b.

    A prefix byte is never optional.

    c.

    An opcode is never optional.

    d.

    Memory displacement bytes are optional.

1 points   

QUESTION 28

  1. Use the following code snippet to identify the contents of ST(1) after execution has completed:
         .data
         dblOne    REAL8 123.45
         dblTwo    REAL8 3.1415
         dblThree REAL8 234.56
         dblFour   REAL8 101.01
         .code
         fld dblTwo
         fld dblFour
         fld dblOne
         fld dblThree

    a.

    3.1415

    b.

    101.01

    c.

    123.45

    d.

    234.56

1 points   

QUESTION 29

  1. Which of the following are fields in the FPU control word?

    a.

    Denormal operand exception mask

    b.

    Overflow exception mask

    c.

    Infinity control

    d.

    Rounding control

1 points   

QUESTION 30

  1. Which of the following statements accurately describes the exponent portion of a single precision floating-point number that uses the IEEE format?

    a.

    Stored as an 8-bit signed integer.

    b.

    Values range from -126 to +127.

    c.

    Stored as an 8-bit unsigned integer.

    d.

    Stored with a positive bias of 127.

In: Computer Science

1- Feminism is the view that women are inherently equal to men and deserve equal rights...

1-

Feminism is the view that women are inherently equal to men and deserve equal rights and opportunities. The word "inherently" means _________________. (Power Point: Week One - Key Concepts; Dictonary.com)

Select one:

a. with a less critical perspective

b. a permanent quality that exists in a person or thing

c. from a patriarchal perspective

d. the opposite of innate

2-

________________ is the study of religious faith, practice, and experience; especially the study of God and of God's relation to the world.

(Power Point: Week One - Key Concepts)

Select one:

a. Gender

b. Theology

c. Feminism

d. Patriarchy

3-

_______________involve the assumption that a particular characteristic, such as race, gender, ethnicity, or sexual orientation, is the most important in the lives of group members. (Power Point: Week One - Key Concepts)

Select one:

a. Identity politics

b. Gendering

c. Females and femaleness

d. Classical civilization and modernity

4-

Catherine MacKinnon says that women are oppressed and exploited due to the __________________. (Power Point: Week One - Key Concepts)

*MacKinnon asserts that patriarchy, as a systemic oppressor, entitles men to women’s bodies. Women are enslaved sexually through rape, marriage, sex work, and the beauty industry through a system of patriarchal commodification - turning women into objects that can be bought, sold, and discarded.

Select one:

a. social and political movement

b. social meaning of women 's bodies

c. the assumption

d. any system

5-

____________ is a word that means "man-hating." It is the dislike of, contempt for, or ingrained prejudice against males. (Power Point: Week ONe - Key Concepts)

Select one:

a. Feminism

b. Misanthropy

c. Patriarchy

d. Misandry

6-

Patriarchy is a social system in which males hold primary power, have more roles _____________ in political leadership.(Power Point: Week One - Key Concepts)

Select one:

a. not property

b. than women

c. moral authority

d. but no social privilege

7-

Gender is the state of being male or female. We typically use the word "gender" when referring to _____________ rather than biological ones. (Power Point: Week One - Key Concepts)

Select one:

a. biology

b. biological identity

c. equality

d. social and cultural differences

8-

___________ is the belief that females and males are each born with certain distinct traits. It's the belief that there are innate, essential differences between women and men. (Power Point: Week One - Key Concepts)

Select one:

a. Women's subordination

b. Subordination of peoples

c. Political and economic destiny

d. Gender essentialism

9-

The idea that we are equal but different can lead to _________________ if we forget that "equal" refers to the inherent worth of women and men.

(Power Point: Week One - Key Concepts; Inherent Worth by Rev. Dr. Mark Causey).

Select one:

a. adopting more feminine traits

b. conservatism

c. sharing caring and cooperation with females

d. discrimination

10-

People have interpreted religious beliefs in ways that say women are ______________. The sexist interpretations of religious doctrines have helped to create patriarchal systems that block women’s full participation in society. (Power Points: Week One - Key Concepts; WomanSpirit Rising pages 1-5)

Select one:

a. superior to men

b. inferior to men

c. heads of the household

d. obedient to God

In: Psychology

In Python. The file “essay.txt” attached to this assignment includes an essay. The essay includes a...

In Python. The file “essay.txt” attached to this assignment includes an essay. The essay includes a couple of sections that are separated by two consecutive newline characters (i.e. ‘\n’) that are shown as empty lines between the sections if you open the file in a text editor like Notepad. Each section starts with a title followed by a couple of paragraphs; the title and the paragraphs are separated by a newline character. Each paragraph includes a couple of sentences that are ended with either a period or a question mark which is followed by a space character if the paragraph has more sentences. Explore the explained organization of the file by opening the file in Notepad before moving on to the programming part. Use this file to write a program that:

1. Displays the number of sections, paragraphs, lines, words, and characters (excluding the white-space and punctuation characters) included in this essay.

2. Lists all the distinct words included in the essay in a lexical order (i.e. alphabetical order regardless of the length of each word.)

3. Displays a sorted list of distinct words included in the essay including the number of occurrences of each word in the essay on the screen. The output list is a two-level sorted list that is first sorted by the length of the words and second all the words of a specific length are alphabetically sorted. A sample output of this step could be like:

Length Word Number of Occurrences

1 a 24

1 I 5

2   am 5

Hint: In order to access all the words of a specific length more efficiently, you may need to create a dictionary including the items in the format of “length : listOfWords” where length is of the type of int that is used to retrieve a list including all the words of that length as the value. Assumptions and requirements

1. The file does not include any punctuation mark other than period, comma, or question mark.

2. There is either one space or a comma followed by a space between two consecutive words in a sentence.

3. There is no digit or apostrophe character included in the file.

4. This program is case-insensitive for the first letter of the words, however, a word that is all in uppercase is considered as a distinct word (i.e. it is an abbreviation). For example, the words “Air” and “air” are considered as the same word, however, the word “AIR” is not the same as any of the two previous words.

Essay.txt

What is pollution?
Environmental pollution occurs when pollutants contaminate the natural surroundings. Pollution disturbs the balance of our ecosystems, affect our normal lifestyles and gives rise to human illnesses and global warming. Pollution has reached its peak due to the development and modernization in our lives. With the development of science and technology, there has been a huge growth of human potentials. People have become prisoners of their own creations.
We waste the bounties of our nature without a thought that our actions cause serious problems. We must deepen our knowledge of nature`s laws and broaden our understanding of the laws of the human behavior in order to deal with pollution problems. So, it is very important to know different types of pollutions, their effects and causes on humanity and the environment we live in.

Types, causes, and effects of pollution
Air pollution is one of the most dangerous forms of pollution. A biological, chemical, and physical alteration of the air occurs when smoke, dust, and any harmful gases enter into the atmosphere and make it difficult for all living beings to survive as the air becomes contaminated. Burning of fossil fuels, agriculture related activities, mining operations, exhaust from industries and factories, and household cleaning products entail air pollution. People release a huge amount of chemical substances in the air every day. The effects of air pollution are alarming. It causes global warming, acid rains, respiratory and heart problems, and eutrophication. A lot of wildlife species are forced to change their habitat in order to survive.
Soil pollution occurs when the presence of pollutants, contaminants, and toxic chemicals in the soil is in high concentration that has negative effect on wildlife, plants, humans, and ground water. Industrial activity, waste disposal, agricultural activities, acid rain, and accidental oil spill are the main causes of soil pollution. This type of contamination influence health of humans, affects the growth of plants, decreases soil fertility, and changes the soil structure.
Water pollution is able to lead our world on a path of destruction. Water is one of the greatest natural resources of the whole humanity. Nothing will be able to live without water. However, we do not appreciate this gift of nature and pollute it without thinking. The key causes of the water pollution are: industrial waste, mining activities, sewage and waste water, accidental oil leakage, marine dumping, chemical pesticides and fertilizers, burning of fossil fuels, animal waste, urban development, global warming, radioactive waste, and leakage from sewer lines. There is less water available for drinking, cooking, irrigating crops, and washing.

Light pollution
Light pollution occurs because of the prominent excess illumination in some areas. Artificial lights disrupt the world`s ecosystems. They have deadly effects on many creatures including mammals, plants, amphibians, insects, and birds. Every year many bird species die colliding with needlessly illuminated buildings. Moreover, artificial lights can lead baby sea turtles to their demise.
Noise pollution takes place when noise and unpleasant sounds cause temporary disruption in the natural balance. It is usually caused by industrialization, social events, poor urban planning, household chores, transportation, and construction activities. Noise pollution leads to hearing problems, health issues, cardiovascular issues, sleeping disorders, and trouble communicating. Moreover, it affects wildlife a lot. Some animals may suffer from hearing loss while others become inefficient at hunting. It is very important to understand noise pollution in order to lower its impact on the environment.
Radioactive pollution is the presence of radioactive substances in the environment. It is highly dangerous when it occurs. Radioactive contamination can be caused by breaches at nuclear power plants or improper transport of radioactive chemicals. Radioactive material should be handled with great care as radiation destroys cells in living organisms that can result in illness or even death.

Solutions to pollution problems
Environmental pollution has negatively affected the life of both animals and human-beings. The only way to control current environmental issues is to implement conservation methods and create sustainable development strategies. We should find some effective solutions in order to restore our ecological balance.
First of all, we should make sustainable transportation choices. We should take advantage of public transportation, walk or ride bikes whenever possible, consolidate our trips, and consider purchasing an electric car. It is very important to make sustainable food choices. Choose local food whenever possible; buy organically grown vegetables and fruits or grow your own.
People should conserve energy. Turn off electronics and lights when you are not in the room. Consider what small changes can lead to big energy savings. Use energy efficient devices. It is also essential to understand the concept of reduce, Reuse and Recycle. Try to buy used items whenever possible. Choose products with minimal packaging. Buy reusable items. Remember that almost everything that you purchase can be recycled.
Conserve water as much as possible. Dispose of toxic waste properly. Do not use herbicides and pesticides. Use natural, environmentally friendly chemicals for your everyday chores.

Conclusion
Environmental pollution is one of the biggest problems caused by human activities that we should overcome to see a tomorrow and guarantee our descendants a healthy life.  There are many environmental concerns for communities around the world to address. We should always remember that pollution problems affect us all so each of us has to do his or her best to help restore ecological balance to this beautiful place we call home. Learn about the major polluters in your area to protect the air and water where you live. Encourage people to stop pollution, tell them everything you know about this problem, and protest local polluters together. The masses should be educated on the danger of different types of pollution. People should know everything about all consequences of the environmental

In: Computer Science

We are told that economy is growing and that such growth benefits all of us. However, what you see is not what you always get.

 
 
We are told that economy is growing and that such growth benefits all of us. However, what you see is not what you always get. Most people are experiencing declining economic security in response to the problems of the global system. Thus, many communities have turned to Local Exchange Systems (LESs) to help regain some control over their economic situations.
 
Local exchange systems (LESs) come in many forms. They often involve the creation of a local currency, or a system of bartering labour, or trading of agricultural products as a means of supporting the region in which they are traded. Such a system helps preserve the viability of local economies. Local currencies allow communities to diversify their economies, reinvest resources back into their region and reduce dependence on the highly concentrated and unstable global economy. Each local currency system serves as an exchange bank for skills and resources that individuals in the community are willing to trade. Whether in the form of paper money, service credits, or other units, a local currency facilitates the exchange of services and resources among the members of a community.
 
By providing incentives for local trade, communities help their small businesses and reduce under-employment by providing the jobs within the community. In addition, the local exchange of food and seeds promotes environmental conservation and community food security. Local food production reduces wasteful transportation and promotes self-reliance and genetic diversity. Each transaction within a local exchange system strengthens the community fabric as neighbours interact and meet one another.
 
There are over 1,000 local exchange programs worldwide more than 30 local paper currencies in North America and at least 800 Local Exchange Trading Systems (LETS) throughout Europe. New Zealand and Australia Local Exchange Systems vary and evolve in accordance with the needs and circumstances of the local area. This diversity is critical to the success of the local currencies. For instance, a bank in rural Massachusetts refused to lend a farmer the money needed to make it through the winter. In response, the farmer decided to print his own money Berkshire Farm Preserve Notes. In winter, customers buy the notes for $9 and they may redeem them in the summer for $10 worth of vegetables. The system enabled the community to help a farm family after being abandoned by the centralised monetary system. As small family farms continue to disappear at an alarming rate, local currencies provide tools for communities to bind together, support their local food growers and maintain their local food suppliers.
 
Local Exchange Systems are not limited to developed countries. Rural areas of Asia, Latin America and Africa have offered some of the most effective and important programs, by adopting agriculture-based systems of exchange rather than monetary ones in order to preserve genetic diversity, economic security and independence.
 
Industrial seed and chemical companies have a similar role. Many villages have developed seed saving exchange banks. For example, women in Ladakh village have begun to collect and exchange rare seeds selected for their ability to grow in a harsh mountain climate. This exchange system protects agriculture diversity while promoting self-reliance.
 
There is no one blueprint for a local exchange system, which is exactly why they are successful vehicles for localisation and sustainability. They promote local economic diversity and regional self-reliance while responding to a region’s specific needs. Local exchange systems play a pivotal role in creating models for sustainable societies. They are an effective educational too, raising awareness about the global financial system and local economic matters. Local exchange systems also demonstrate that tangible, creative solutions exist and that communities can empower themselves to address global problems.
 
 
1. Which of the following can be a suitable title for the passage? (1 point)
 
(a) Reasons LES must rule over the regular currency
 
(b) Methods to escape global economic issues
 
(c) Dependence of Asian countries on LES
 
(d) Role of LES in development of communities
 
(e) LES – A Futile Exercise
 
2. Which of the following is most nearly the OPPOSITE in meaning to the word REGAIN as used in the passage? (1 point)
 
(a) recover
 
(b) restart
 
(c) forfeit
 
(d) revalue
 
(e) liberate
 
 
3. Which of the following is the most appropriate definition of the word VIABILITY as used in the passage? (1 point)
(a) The act of causing worry and fear.
 
(b) The ability to continue or be continued for a long time.
 
(c) The thing that can be clearly seen to exist or can be touched and felt.
 
(d) The fact that something can be done and can be successful.
 
(e) The act of withdrawing support or help.
 
 
4. Which of the following is most nearly the OPPOSITE in meaning to the word BIND as used in the passage? (1 point)
(a) visionless
 
(b) separate
 
(c) associate
 
(d) loosen
 
(e) reunite
 
 
5. As mentioned in the passage, there is no set design to initiate local exchange systems as ___________. (1 point)
 
(a) they tend to work well only in select countries
 
(b) they are region specific
 
(c) They are too complicated to understand
 
 
6. As mentioned in the passage, local currencies can prove to be beneficial for the community as they ___________. (1 point)
 
(a) assist in creating job opportunities
 
(b) indirectly help in conserving the environment.
 
(c) aid in minimising reliance on global economy.
 
(d) all of the above
 
 
7. Which of the following is SAME in meaning as the word LIMITED TO as used in the passage? (1 point)
 
(a) restricted to
(b) extending beyond
(c) validated for
(d) adjusted
(e) custodial
 
8. Which of the following is the most appropriate definition of the word SUSTAINABILITY as used in the passage? (1 point)
 
(a) The act of causing worry and fear.
 
(b) The ability to continue or be continued for a long time.
 
(c) The thing that can be clearly seen to exist or can be touched and felt.
 
(d) The fact that something can be done and can be successful.
 
(e) The act of withdrawing support or help.
 
 
9. Which of the following is most nearly the OPPOSITE in meaning to the word PIVOTAL as used in the passage? (1 point)
 
(a) essential
 
(b) unnourished
 
(c) healthy
 
(d) overriding
 
(e) trivial
 
 
10. Decide if each of the following statements is true or false as per the context of the given article justifying your answer with evidence from the text.​(4 points)
 
(a) LES work well only in countries whose economies are based primarily on agriculture. ( )
__________________________________________________________________________________________________________________________________________
 
 
(b) LES increase unhealthy competition between communities from different regions. ( )
__________________________________________________________________________________________________________________________________________
 
 
(c) LESs encourage communities to become self-supporting. ( )
__________________________________________________________________________________________________________________________________________
 
 
(d) LESs are restricted to trading with paper money only. ( )
__________________________________________________________________________________________________________________________________________
 
​
 
11. Which of the following is the meaning of the phrase ‘what you see is not what you always get’ as mentioned in the passage with respect to the present economic situation? (1 point)
 
(a) Sharing information without hiding facts.
 
(b) Being pessimistic while presenting information.
 
(c) Modifying information after taking consent from every stakeholder.
 
(d) Waiting to share positive information.
 
(e) What is presented may not necessarily be true.
 
 
12. As mentioned in the passage, the statistics with respect to LES highlight that__________. (1 point)
 
(a) very few countries are aware about such programmes
 
(b) they face more resistance from, developed countries than developing ones.
 
(c) they are becoming popular among communities across the globe.
 
(d) they lack support of farmers.
 
(e) the gap between the rich and the poor is increasing.
 
 

In: Advanced Math

Please comments this C++ code and show screenshots of the outputs main.cpp #include<iostream> #include<vector> #include<string> #include"BST.h"...

Please comments this C++ code and show screenshots of the outputs

main.cpp

#include<iostream>
#include<vector>
#include<string>
#include"BST.h"
#include"BST.cpp"
using namespace std;

std::vector<std::string> tokenize(char line[])
{
   std::vector<std::string> tok;
       std::string word = "";
       for (int i = 0; i < strlen(line); i++)
       {
           if (i == strlen(line) - 1)
           {
               word += line[i];
               tok.push_back(word);
               return tok;
           }
           else if (line[i] == ' ')
           {
               tok.push_back(word);
               word = "";
               continue;
           }
           word += line[i];
       }
       return tok;
}
int main()
{
   char line[100];
   cout << "Enter a line: ";
   cin.getline(line, sizeof(line));

   vector<string> tokens = tokenize(line);
   cout << "********** TOKENS **********" << endl;
   for (auto token : tokens)
   {
       cout << token << endl;
   }
   cout << "****************************" << endl << endl;

   BST<string> T1;
   for (auto token : tokens)
       T1.insert(token);

   cout << "************ T1 ************" << endl;
   T1.postOrder();
   cout << "****************************" << endl;
   cout << "T1 Leaf Nodes = " << T1.CLeaves() << endl;
   cout << "T1 Height = " << T1.height() << endl;
   cout << "****************************" << endl << endl;

   BST<string> T2;
   vector<string> T2x = T1.getPostOrder();
   for (auto token : T2x)
       T2.insert(token);

   cout << "************ T2 ************" << endl;
   T2.preOrder();
   cout << "****************************" << endl;
   cout << "T2 Leaf Nodes = " << T2.CLeaves() << endl;
   cout << "T2 Height = " << T2.height() << endl;
   cout << "****************************" << endl << endl;

   BST<string> T3;
   vector<string> T3x = T2.getPreOrder();
   for (auto token : T3x)
       T3.insert(token);

   cout << "************ T3 ************" << endl;
   T3.inOrder();
   cout << "****************************" << endl;
   cout << "T3 Leaf Nodes = " << T3.CLeaves() << endl;
   cout << "T3 Height = " << T3.height() << endl;
   cout << "****************************" << endl << endl;
   return 0;
}

BST.CPP

#include "BST.h"

template <typename gen>
void BST<gen>::insert(gen x)
{
   insert(root, x);
}

template <typename gen>
bool BST<gen>::remove(string value)
{
   return remove(NULL, root, value);
}

template <typename gen>
void BST<gen>::preOrder()
{
   preOrder(root);
}

template <typename gen>
void BST<gen>::postOrder()
{
   postOrder(root);
}

template <typename gen>
void BST<gen>::inOrder()
{
   inOrder(root);
}

template <typename gen>
vector<string> BST<gen>::getPreOrder()
{
   vector<string> temp;
   getPreOrder(root, temp);
   return temp;
}

template <typename gen>
vector<string> BST<gen>::getPostOrder()
{
   vector<string> temp;
   getPostOrder(root, temp);
   return temp;
}

template <typename gen>
vector<string> BST<gen>::getInOrder()
{
   vector<string> temp;
   getInOrder(root, temp);
   return temp;
}

template <typename gen>
int BST<gen>::CLeaves()
{
   int s = 0;
   CLeaves(root, s);
   return s;
}

template <typename gen>
int BST<gen>::height()
{
   return HeightL(root);
}

template <typename gen>
void BST<gen>::DestroyRecursive(BNode<gen>* node)
{
   if (node)
   {
       DestroyRecursive(node->LChild);
       DestroyRecursive(node->RChild);
       delete node;
   }
}

template <typename gen>
BST<gen>::~BST()
{
   DestroyRecursive(root);
   root = nullptr;
}

template <typename gen>
void BST<gen>::insert(BNode<gen>*& t, gen x) {
   if (!t) { t = new BNode<gen>; t->data = x; t->LChild = t->RChild = nullptr; }
   else if (x < t->data)
       insert(t->LChild, x);
   else
       insert(t->RChild, x);
}

template <typename gen>
void BST<gen>::preOrder(BNode<gen>* t) {
   if (t) {
       cout << t->data << "\n";
       preOrder(t->LChild);
       preOrder(t->RChild);
   }
}

template <typename gen>
void BST<gen>::postOrder(BNode<gen>* t) {
   if (t) {
       postOrder(t->LChild);
       postOrder(t->RChild);
       cout << t->data << "\n";
   }
}

template <typename gen>
void BST<gen>::inOrder(BNode<gen>* t) {
   if (t) {
       inOrder(t->LChild);
       cout << t->data << "\n";
       inOrder(t->RChild);
   }
}

template <typename gen>
void BST<gen>::getPreOrder(BNode<gen>* t, vector<string>& temp) {
   if (t) {
       temp.push_back(t->data);
       getPreOrder(t->LChild, temp);
       getPreOrder(t->RChild, temp);
   }
}

template <typename gen>
void BST<gen>::getPostOrder(BNode<gen>* t, vector<string>& temp) {
   if (t) {
       getPostOrder(t->LChild, temp);
       getPostOrder(t->RChild, temp);
       temp.push_back(t->data);
   }
}

template <typename gen>
void BST<gen>::getInOrder(BNode<gen>* t, vector<string>& temp) {
   if (t) {
       getInOrder(t->LChild, temp);
       temp.push_back(t->data);
       getInOrder(t->RChild, temp);
   }
}

template <typename gen>
int BST<gen>::HeightL(BNode<gen>* P) {
   if (P == NULL)
       return 0;
   else
   {
       /* compute the depth of each subtree */
       int lDepth = HeightL(P->LChild);
       int rDepth = HeightL(P->RChild);

       /* use the larger one */
       if (lDepth > rDepth)
           return(lDepth + 1);
       else return(rDepth + 1);
   }
}

template <typename gen>
void BST<gen>::CLeaves(BNode<gen>* P, int& s) {
   if (P) {
       if (IsLeaf(P))
           s++;
       CLeaves(P->LChild, s);
       CLeaves(P->RChild, s);
   }
}

BST.h

#pragma once
#include<iostream>
#include<vector>
#include<Windows.h>

using namespace std;

template <typename gen>
struct BNode
{
   gen data;
   BNode<gen>* RChild;
   BNode<gen>* LChild;
   BNode()
   {
       RChild = nullptr;
       LChild = nullptr;
   }
};

template <class gen>
class BST
{
public:

   BST()
   {
       root = nullptr;
   }
   void insert(gen x);
   bool remove(string value);
   void preOrder();
   void postOrder();
   void inOrder();
   vector<string> getPreOrder();
   vector<string> getPostOrder();
   vector<string> getInOrder();
   int CLeaves();
   int height();
   void DestroyRecursive(BNode<gen>* node);
   ~BST();

private:

   BNode<gen>* root;

   void insert(BNode<gen>*& t, gen x);
   void preOrder(BNode<gen>* t);
   void postOrder(BNode<gen>* t);
   void inOrder(BNode<gen>* t);
   void getPreOrder(BNode<gen>* t, vector<string>& temp);
   void getPostOrder(BNode<gen>* t, vector<string>& temp);
   void getInOrder(BNode<gen>* t, vector<string>& temp);
   int HeightL(BNode<gen>* P);
   bool IsLeaf(BNode<gen>* P)
   {
       return (!(P->LChild) && !(P->RChild));
   }
   void CLeaves(BNode<gen>* P, int& s);
};
text.file

Enter a line: this is a line and it is with spaces and without semicolons
********** TOKENS **********
this
is
a
line
and
it
is
with
spaces
and
without
semicolons
****************************

************ T1 ************
and
and
a
is
it
semicolons
spaces
line
is
without
with
this
****************************
T1 Leaf Nodes = 4
T1 Height = 5
****************************

************ T2 ************
and
a
and
is
it
is
semicolons
line
spaces
without
with
this
****************************
T2 Leaf Nodes = 4
T2 Height = 9
****************************

************ T3 ************
a
and
and
is
is
it
line
semicolons
spaces
this
with
without
****************************
T3 Leaf Nodes = 4
T3 Height = 9
****************************

In: Computer Science

10 points    QUESTION 9 True or false: The top position on a search engine results...

10 points   

QUESTION 9

  1. True or false: The top position on a search engine results website that attracts the most attention is also the most profitable position for a search advertisement.

True

False

10 points   

QUESTION 10

  1. Which of the following choices is a way that big data and data science can help today’s marketer?

The use of big data helps in marketing decision making because it keeps marketing information more “pure” by eliminating other business units from the marketing decision-making process.

Big data can help firms react to market conditions more quickly, leading to optimized pricing practices.

Data science has helped simplify promotional decisions because it has shown that simple promotions reaching large audiences work the best.

Real-time inventory management often helps marketers plan promotional campaigns that are more effective.

Big data has been useful in determining what other companies a firm should merge with to be a more effective marketer.

10 points   

QUESTION 11

  1. After a few years of work in the marketing department of a small firm, you are placed in charge of the firm’s inbound marketing. What are you most likely to be in charge of?

The firm’s efforts in creating and placing television and print advertising

Creating content for and monitoring consumer actions on the firm’s social media platforms, such as Facebook and Twitter

Efforts of the firm to capture consumers no matter where they are

Ensuring that consumers can find the firm when they search for information on products and services

Creating display advertising, finding websites on which to place such advertising, and ensuring that inquiries made from such advertising are responded to properly.

10 points   

QUESTION 12

  1. Which of the following factors correctly explain(s) the importance of social media for marketers?

Customers acquired through word-of-mouth avenues are worth twice as much as are those attracted through other channels.

According to Intuit co-founder Scott Cook, “A brand is no longer what we tell the consumer it is—it is what consumers tell each other it is.”

Social interactions contribute to the retention of existing customers.

All of these factors correctly explain the importance of social media for marketers.

McKinsey and Company estimates that between 20% and 50% of all purchases are driven primarily by word-of-mouth recommendations.

In: Operations Management

) In the mid-1990s, Colgate-Palmolive developed a new toothpaste for the U.S. market, Colgate Total, with...

) In the mid-1990s, Colgate-Palmolive developed a new toothpaste for the U.S. market, Colgate Total, with an antibacterial ingredient that was already being successfully sold overseas. At that time, the word antibacterial was not allowed for such products by the Food and Drug Administration (FDA). In response, the name “Total” was given to the product in the United States. The one word would convey that the toothpaste is the “total” package of various benefits. Young & Rubicam developed several commercials illustrating Total’s benefits and tested the commercials with focus groups. One commercial touting Total’s long-lasting benefits was particularly successful. The product was launched in the United States in January of 1998 using commercials that were designed from the more successful ideas of the focus group tests. Suppose 32% of all people in the United States saw the Total commercials. Of those who saw the commercials, 40% purchased Total at least once in the first 10 months of its introduction. According to U.S. Census Bureau data, approximately 20% of all Americans were in the 45-64 age category. Suppose 24% of the consumers who purchased Total for the first time during the initial 10-month period were in the 45-64 age category. Within three months of the Total launch, Colgate-Palmolive grabbed the number one market share for toothpaste. Ten months later, 21% of all U.S. households had purchased Total for the first time. The commercials and the new product were considered a success. During the first 10 months of its introduction, 43% of those who initially tried Total purchased it again. a) What percentage of U.S. households purchased Total at least twice in the first 10 months of its release? b) Can you conclude the initial purchase of Total was independent of age? Use a quantitative argument to justify your answer. c) Calculate the probability that a randomly selected U.S. consumer is either in the 45-64 age category or purchased Total during the initial 10-month period. d) What is the probability that a randomly selected person purchased Total in the first 10 months given that the person is in the 45-64 age category? e) What percentage of people who did not see the commercials purchased Total at least once in the first 10 months of its introduction?

In: Economics

You are a songwriter, tired and upset because of all the lame easy rhymes that are...

You are a songwriter, tired and upset because of all the lame easy rhymes that are in the most popular songs today. You decide to write a program that checks if two words rhyme. The program ignores and discards perfect rhymes such as rat and bat or glove and dove. The program returns a rhyme percentage based on the pronunciation of the words.

Because the program ignores perfect rhymes, words that rhyme perfectly will receive a score higher than a certain amount. If a pair of pronunciations receive a score of 75% or higher, it is considered a perfect rhyme. In such a case the program must return -1. However, if the pronunciations receive a score of 40% or lower, the rhyme is too weak to use and the program must return -999. Otherwise the program must return the rhyme (percentage) score.

A rhyme score is calculated by comparing the letters of each syllable of two words:

  1. If one letter matches, that should add a score of 0 to the overall rhyme score
  2. If two consecutive letters match a score of 2 should be added to the overall rhyme score.
  3. If three consecutive letters match a score of 3 should be added, and so on.
  4. An underscore "_" represents the ending and starting of two syllables.

The rhyme score is then determined by the total score divided by the total number of letters in the largerpronunciation (excluding the underscores if any).

Write a function bRhymes() that accepts 2 pronunciations as strings and returns the rhyme percentage rounded to 1 decimal place, -1 if it is a perfect rhyme or -999 if the rhyme is too weak.

Code is already provided for the program which runs your function  bRhymes().

Input Format

[PROGRAM INPUT]

Two lines each containing a string, such as ahi_dee_uhl_ahiz (in Line 1) and ree_uhl_ahiz (in Line 2). The first line for the pronunciation of the first word and the second line for the pronunciation of the second word. An example of the exact input would appear as:

ahi_dee_uhl_ahiz

ree_uhl_ahiz

.

[FUNCTION bRhymes() INPUT]

2 strings which represents rhyme pronunciations

Constraints



where w1 and w2 are pronunciations

Output Format

[PROGRAM OUTPUT]

A single float, such as 69.2 which represents the rhyme percentage rounded to 1 decimal place, -1 if it is a perfect rhyme or -999 if the rhyme is too weak. An example of the exact output would appear as:

69.2

In: Computer Science