For this assignment you will write a C++ program to read a list of words and...

For this assignment you will write a C++ program to read a list of words and sort them in alphabetical order.

Requirements:

  • You must use a bubble sort OR selection sort algorithm - your choice. You do NOT need to do both.
  • You must print the sorted list of words to the console standard out (cout).
  • You must use a vector object to store the list of words and you must sort the list "in-place" (meaning, do not create a new list.)
  • When reading the data, your program must ignore blank lines and any line that begins with the # symbol.

NOTES:

  • Part of the grade will be based on comments according to the style guide.
  • You can implement a class if you want to. Writing a class is not required for this assignment.
  • Don't make any assumptions about the input data. I may grade using a completely separate list of words. (if so, the format will be the same - no more then one word per line. But assume that blank lines and comments can occur anywhere in the file.)

word_list.txt

_____________________________________________________________________________________________________________________________________below:

# Read the list of words below and write them out in alphabetical order.
# Your program should skip over the blank lines. 
goal
interesting
successful
job
experience
career

manage
responsibility
technology
purpose
beautiful
wonder
opportunity
leader
quality

knowledge
victory
nature
ability
dream
understand
future
hope

In: Computer Science

26.  Complete three and only three of the following: Outline the summary of events in the β-adrenergic...

26.  Complete three and only three of the following:

  1. Outline the summary of events in the β-adrenergic receptor signal transduction pathway.2.
  2. Define the Cooperativity Index (AKA Saturation Ratio) and review its significance with regard to the function of enzymes and ligand binding proteins.3.
  3. Discuss hormonal regulation of glycogen synthesis and breakdown.4
  4. Give a summary of hormonal regulation of triglyceride metabolism in adipocytes.5.
  5. Discuss the choice of substrate concentrations for enzyme kinetic experiments to determine KM. To determine Vmax.6.
  6. Review hormonal regulation of gluconeogenesis and glycolysis in liver.

In: Biology

A company issues a 25-year $6500 bond, redeemable at 95 with bond interest at j1= 6%....

A company issues a 25-year $6500 bond, redeemable at 95 with bond interest at j1= 6%. The bond is callable at the end of 15 years for $5425 or at the end of 20 years for $6870. Determine the price to guarantee the investor a yield of j1 = 10%.

In: Finance

define with details the income statement and the balance sheet, highlighting the purpose, benefits, and differences...

define with details the income statement and the balance sheet, highlighting the purpose, benefits, and differences between the two.

In: Accounting

Shelly's Boutiques and Crafts had revenue of $5,700,000 this year on sales of 575,000 units. Variable...

Shelly's Boutiques and Crafts had revenue of $5,700,000 this year on sales of 575,000 units. Variable costs were 35% and fixed costs totaled $3,150,000. Although the first five years were relatively profitable, increases in competition have led to a negative trend in profitability that has led them to the point where they have to make some changes to stay afloat. The company is evaluating two options to stay afloat.

Option 1:Purchase machinery to automate their operations. This machinery costs $625,000, but will decrease variable costs by 9%.

Option 2:Outsource the production of one of their main components that requires a substantial amount of machinery and skilled labor. This will reduce fixed costs by $425,000, but increases variable costs from their current 35% of sales to 40% of sales.

d.) Calculate the break even point in units after applying Option 1: What is the new fixed cost in total? What is the new contribution margin per unit? What is the new break even point in units?

In: Accounting

Java program written with one file not two .... Make a LandTract class with the following...

Java program written with one file not two ....

Make a LandTract class with the following fields:

• length - an int containing the tract's length
• width - an int containing the tract's width

The class should also have the following methods :

• area - returns an int representing the tract's area
• equals - takes another LandTract object as a parameter and returns a boolean saying
whether or not the two tracts have the same dimensions (This applies regardless of whether the dimensions match up. i.e., if the length of the first is the same as the width of the other and vice versa, that counts as having equal dimensions.)
• toString - returns a String with details about the LandTract object in the format:
LandTract object with length 30 and width 40
(If, for example, the LandTract object had a length of 30 and a width of 40.)

Write a separate program that asks the user to enter the dimensions for the two tracts of
land (in the order length of the first, width of the first, length of the second, width of the second). The program should print the output of two tracts' toString methods followed by a sentence stating whether or not the tracts have equal dimensions. (If the tracts have the same dimensions, print, "The two tracts have the same size." Otherwise, print, "The two tracts do not have the same size.") Print all three statements on separate lines.

****Results have to look like this****

Enter·length·of·first·land·tract:10↵
Enter·width·of·first·land·tract:55↵
Enter·length·of·second·land·tract:36↵
Enter·width·of·second·land·tract:75↵
LandTract·with·length·10,·width·55,·and·area·550↵
LandTract·with·length·36,·width·75,·and·area·2700↵
The·two·tracts·do·not·have·the·same·size.↵

In: Computer Science

Lab4: Functions, Procedures, and Testbenches in vivado Conclusion: Question4: How are statements executed inside of a...

Lab4: Functions, Procedures, and Testbenches in vivado Conclusion:

Question4: How are statements executed inside of a procedure?

Question6: How are statements executed inside of a function?

Question7: What is the difference between inertial delay and transport delay?

Question8: What is the purpose of having the use STD.textio.all; statement in the testbench file?

Question9: Why do we not have any ports declared in the entity of a testbench?

Question10: Describe what happens inside the architecture portion of a testbench design.

In: Computer Science

In Java Create an interface GainsInterest that contains two method signatures with public access modifiers for...

In Java

Create an interface GainsInterest that contains two method signatures with public access modifiers for compound daily and interestAccrued that both return BigDecimal.

Create an abstract Account class and a SavingsAccount that derives from it using best programming practices. Define an account balance that is set in the constructor of SavingAccount and passed to the constructor of the Account. SavingsAccount should implement GainsInterest, but you do not need to provide implementation for those methods beyond defining the method inside in the class and returning BigDecimal.ZERO.

In: Computer Science

Calculate the pH in the titration of 50mL of a .2M acetic acid and .312M NaOH...

Calculate the pH in the titration of 50mL of a .2M acetic acid and .312M NaOH Ka = 1.8x10^-5

- 5 mL before equivalence point

In: Chemistry

Find the pH of 25mM phosphoric acid at each point of acid-base equilibria

Find the pH of 25mM phosphoric acid at each point of acid-base equilibria

In: Chemistry

1. Start a new customer order – clear the order data (give a second chance to...

1. Start a new customer order – clear the order data (give a second chance to not clear data)  This will clear all the running totals (set them to zero).

  1. Ordering Ice Cream Sundaes – should prompt the user for the number of ice cream sundaes.

  2. Ordering Ice Cream Cones – should prompt the user for the number of ice cream cones.

  3. Ordering Milkshakes – should prompt the user for the number of milkshakes.

  4. Generate the customer receipt for their order. This should be appended to any other

    orders already written to the file. The receipt output file should be named: receipt.rpt

  5. Exit the program - Make sure to exit the program gracefully through the return 0 at the

    bottom of main( ).

Write a menu driven program that will provide the user with the 6 menu options indicated above. The user should be able to make a selection, execute the code for that selection, and then return to the menu until option (6) Exit is selected. If the end-user enters an invalid menu option, print an error message and redisplay the menu, getting a new selection.

When an option from the menu is selected your program should call a function to do the selection processing. If the end-user enters a qty that is less than 0 or enters character data, print an error message and prompt the user for a new value. Keep a running total of how many of each item is ordered.

When the option to start a new order is selected, ask the user if they are sure they want to clear the order. If the user answers ‘y’ or ‘Y’ then clear the running totals for all ice cream products. Any other input should not clear the running totals.

When the end-user selects to create a receipt, write a summary of the items ordered (don't print items that have a count of zero), calculate the subtotal, tax (using 6%), and the total order to an output file named receipt.rpt (use append mode of opening the file so each order is appended to the end of the file). If the entire order is zero, do not generate a summary; simply write the line: No order was placed. Each receipt written should have a delimiter, a new line, line of “*”, and a new line. In c++

In: Computer Science

Assume that you work in the human resources department of XYZ Corporation (“XYZ”). Your supervisor, Jane...

Assume that you work in the human resources department of XYZ Corporation (“XYZ”). Your supervisor, Jane Smith, informs you that XYZ is considering implementing an arbitration clause in its employee handbook. Since you are studying business law at , she asks you to write a memo to her summarizing the following:

  1. The (general) pros and cons of arbitration for businesses; and

  1. How an arbitration clause in an employee handbook (or an employment contract) should be drafted in order to be binding and enforceable. In other words, what should the company include in the language of the clause? What types of provisions or language should they avoid?

In: Operations Management

Make a scientific classification of the species Macrobiotus shonaicus and define its kingdom, phylum, class, order,...

Make a scientific classification of the species Macrobiotus shonaicus and define its kingdom, phylum, class, order, family, genus and species. 3) Define appearance and physical characteristics, distribution and habitat, ecologic importance (e.g. whether the species you choose important in carbon cycle or photosynthesis?) diet, reproduction and life cycle, relationship with human (e.g. is it parasitic or not?)

In: Biology

  The podcast (here) compares and contrasts the differences between Eastern and Western Germany as a case...

  The podcast (here) compares and contrasts the differences between Eastern and Western Germany as a case study in how different economic models impact societies.

In: Economics

What are the benefits of ratio analysis? What are the limitations of ratio analysis? What can...

What are the benefits of ratio analysis? What are the limitations of ratio analysis? What can be done to minimize the limitations on ratio analysis? Explain. Cite any references used.

In: Finance