Questions
Write a C++ program using produces Huffman code for a string of text entered by the...

Write a C++ program using produces Huffman code for a string of text entered by the user. The string given by the user can be either 1 word or 1000 words.

Must accept all ASCII characters.


Please do not copy from the internet. This is my 3rd time posting the same question and I have not received a correct answer.

In: Computer Science

Sociology Milgram's Obedience Experiment Write 1-3 paragraphs in which you discuss the implications of the findings....

Sociology Milgram's Obedience Experiment

Write 1-3 paragraphs in which you discuss the implications of the findings. In other words, how does this research add to our understanding of the extent to which groups and/or authority can have power over behavior?
a. In your discussion of the implications of the research, use information from Chapter 5 in order to argue the ways by which this research demonstrates the power of groups/authority on an individual’s behavior.
b. You must use at least two concepts/terms/theories from Chapter 5. Be sure that these terms are relevant to the study’s findings and that you show you understand the concept/term/theory in your writing. You must bold or underline the concept/term/theory that you use or else it will not be counted.

In: Psychology

Perform all of these questions using MATLAB software. 5. The relative error in computation of x-y...

Perform all of these questions using MATLAB software.

5. The relative error in computation of

x-y for = 12.05 and y = 8.02 having absolute errors x=0.005 and y=-0.001.

6. Find the relative error in computation of x-y for x=9.05 and y= 6.56 having absolute errors x = 0.001

and y 0.003 respectively.

7.Find the relative error in computation of x+y for x= 11.75 and y= 7.23 having absolute errors x = 0.002

and y=0.005.

8. If y=4x^6-5x, find the percentage error in y at x=1, if the error is x=0.04.

In: Computer Science

Since 911, heightened airline security has increased frustrations for both airline employees and passengers. Passengers have...

Since 911, heightened airline security has increased frustrations for both airline employees and passengers. Passengers have to abide by the ever more rules that airline employees must enforce. For instance, on a flight from Europe to the United States, a simple passenger request escalated quickly. “John Murphy asked a flight attendant about a sign telling passengers not to venture beyond the curtain separating the economy class from the rest of the plane.”, the New York Times reported. “He wanted to stretch his legs and visit his wife seated on the opposite aisle., using the passageway behind the gallery in the plane’s midsection. But when he questioned a flight attendant, on the policy and began recording their conversation using his cell phone, the situation quickly escalated. The flight attendant grabbed his phone, and nearby federal air marshalls intervened.”

The marshalls held him against the wall with his hands behind his back. Murphy said, “ I wasn’t violent. I didn’t use four-letter words. All I did was ask this guy, about the sign on the curtain and they flipped out.”. Afterwards, Murphy wandered about his rights and the rules., such as being restricted to particular cabins and not just bathrooms, as well as the right to video/audio record flight crew. A spokesperson of the Federal Aviation Administration responded that there is no rule limiting passengers movement on planes, but no person may assault, threaten, intimidate, or interfere with a crew member in the performance of the crew member's duties..”

1. Identify as many problems as possible

2. What are some ways to deal with these problems?

3. Analyze and discuss.

4. Decision Criteria and Alternatives.

5. What are your future recommendations?

In: Operations Management

1)The ability to refinance short-term obligations on a long-term basis can be demonstrated if the company...

1)The ability to refinance short-term obligations on a long-term basis can be demonstrated if the company has already refinanced those obligations after the date of the balance sheet but before it is issued.

True

False  

2)

Which of the following statements does not describe an essential characteristic of a liability?

The transaction or event obligating the enterprise has already occurred.

The identity of the recipient must be known to the obligated party.

The obligated entity has little or no discretion to avoid the future sacrifice.

A liability is a present obligation that will be settled by a probable future transfer or use of assets.

In: Accounting

Question 1 (a) As an engineer who has just finished taking engineering materials course, your first...

Question 1

(a) As an engineer who has just finished taking engineering materials course, your first task is to investigate the causes of an automobile accident. Your findings show that the right rear wheel has broken off at the axle. The axle is bent. The fracture surface reveals a Chevron pattern pointing toward the surface of the axle. Suggest a possible cause for the fracture and why?

(b)A cylindrical specimen of a hypothetical metal alloy is stressed in compression. If its original and final diameters are 30.00 and 30.04 mm, respectively, and its final length is 105.20 mm, compute its original length if the deformation is totally elastic. The elastic and shear moduli for this alloy are 65.5 and 25.4 GPa, respectively.

(b) A titanium pipe used to transport a corrosive material at 400°C is found to fail after several months. How would you determine the cause for the failure?

In: Mechanical Engineering

I'm looking for a Sources and Uses of Funds statement/spreadsheet based on the info below: Cash...

I'm looking for a Sources and Uses of Funds statement/spreadsheet based on the info below:

Cash Flows from Investing Activities:
      Purchases of fixed assets and equipment -45 0 0 -15 -60
      Proceeds from investors 100 0 0 150 250
      Other investing activities 5 2 7 -2 12
          Net cash used in investing activities 60 2 7 133 202
Cash Flows from Financing Activities:
     Short-term loans payment -5 -5 -5 -5 -20
     Long-term loans payment -24 -24 -24 -24 -96
        Net cash used in financing activities -29 -29 -29 -29 -116
Increase (decrease) in cash and cash equivalents $47 ($17) ($37) $157 $70
Cash and cash equivalents—beginning of Quarter & year 50 $97 $80 $43 255
Cash and cash equivalents—end of quarter & year $97 $80 $43 $200 $325

In: Accounting

Answer each essay question thoroughly in a minimum two paragraph (9-10 sentence each paragraph). 1. Was...

Answer each essay question thoroughly in a minimum two paragraph (9-10 sentence each paragraph).

1. Was it unavoidable that political parties would arise in the United States?

In: Psychology

A) A mixture of hydrogen and methane gases, in a 5.00 L flask at 73 °C,...

A) A mixture of hydrogen and methane gases, in a 5.00 L flask at 73 °C, contains 0.381 grams of hydrogen and 2.42 grams of methane. The partial pressure of methane in the flask is _____ atm and the total pressure in the flask is ____ atm.

B) A mixture of carbon dioxide and nitrogen gases is maintained in a 9.24 L flask at a pressure of 3.39 atm and a temperature of 66 °C. If the gas mixture contains 23.1 grams of carbon dioxide, the number of grams of nitrogen in the mixture is ____ g.

C) The stopcock connecting a 1.07 L bulb containing neon gas at a pressure of 4.94 atm, and a 5.84 L bulb containing hydrogen gas at a pressure of 4.26atm, is opened and the gases are allowed to mix. Assuming that the temperature remains constant, the final pressure in the system is ____ atm.

In: Chemistry

Discuss the microchip and social life as it relates to the effect of the microchip on...

Discuss the microchip and social life as it relates to the effect of the microchip on education, business, and the waging of war

In: Psychology

Compare and contrast SEMMA and CRISP-DM. Discuss when application of SEMMA or CRISP-DM might be most...

Compare and contrast SEMMA and CRISP-DM. Discuss when application of SEMMA or CRISP-DM might be most appropriate by providing a specific example related to each of the two processes.

In: Computer Science

I was advised the answer is not b QUESTION 1 This theory states that nature should...

I was advised the answer is not b

QUESTION 1 This theory states that nature should be protected because it is useful to humanity: a. Instrumental model of environmental value. b. Deep ecology model. c. Stewardship model. d. None of the answer choices are correct.

In: Psychology

Address the following questions on ISO standards on information security management and ethics. -Describe the Plan-Do-Check-Act...

Address the following questions on ISO standards on information security management and ethics.

-Describe the Plan-Do-Check-Act process.

-What does this process accomplish?

-Discuss the difference between law and ethics; Research the Sarbanes-Oxley Act of 2002 and discuss how it has impacted information security in an organization.

In: Operations Management

What is the C programming code to find the inverse of a 2*2 matrix?

What is the C programming code to find the inverse of a 2*2 matrix?

In: Computer Science

Program: Java Write a Java program using good programming principles that will aggregate the values from...

Program: Java


Write a Java program using good programming principles that will aggregate the values from several input files to calculate relevant percentages and write the values to an output file.

You have been tasked with reading in values from multiple files that contains different pieces of information by semester. The Department of Education (DOE) would like the aggregate values of performance and demographic information by academic year. A school year begins at the fall semester and concludes at the end of the summer semester the following year. Fall 2019 - Summer 2020 is considered one academic year.

Input Files

  • Input files named Fall2019Analytics.txt, Spring2020Analytics.txt, and Summer2020Analytics.txt have been placed in Canvas.   Each have the same layout but differ by semesters.
  • Each file contains several pieces of data by program - total enrollment, enrollment by gender, completion by gender, enrollment by ethnicity, completion by ethnicity, among other pieces of data.  
  • The program should read in the values from these input files, aggregate the data, and write the information to an output file that will be sent to Tallahassee.
  • From there, the DOE will use this output file as input to aggregate the data from other schools within the state of Florida.
  • It is important that this file is formatted in the proper sequence that the DOE needs - otherwise the college will be heavily fined and may lose accreditation.


These input files contain the data for three programs on campus:

Program code 3624
Program code 5651
Program code 6635

Input file layout (all integer values) by semester:

  • program number
  • total number of students enrolled in the program
  • total number of student completers in the program
  • total number of female students enrolled in the program
  • total number of male students enrolled in the program
  • total number of unknown/not reported gender students enrolled in the program
  • total number of female student completers in the program
  • total number of male student completers in the program
  • total number of unknown/not reported student completers in the program
  • total number of Asian students enrolled in the program
  • total number of Black students enrolled in the program
  • total number of Hispanic students enrolled in the program
  • total number of Multiracial students enrolled in the program
  • total number of Native American students enrolled in the program
  • total number of Native Hawaiian students enrolled in the program
  • total number of Unknown/not reported ethnicity students enrolled in the program
  • total number of White students enrolled in the program
  • total number of Asian student completers in the program
  • total number of Black student completers in the program
  • total number of Hispanic student completers in the program
  • total number of Multiracial student completers in the program
  • total number of Native American student completers in the program
  • total number of Native Hawaiian student completers in the program
  • total number of Unknown ethnicity student completers in the program
  • total number of White students completer in the program


Notes

  • Each value within the file for a program is separated by one space.
  • Each program code is on its own line in each file. There are three lines per file.
  • Use an array or arrayList to hold the values within each file.
  • Each semester should be coded within their own class.


Calculations

The following values must be calculated:

For each semester:
   - the percentage of students completers (total number of student completers / total number of students enrolled)

For each individual program code:
   - grand totals for each category (enrolled, completers, gender, and ethnicity)

Aggregate for all semesters:

   - the total number of students enrolled
   - the total number of student completers
   - the total number by gender
   - the total number by each ethnicity
   - the percentage of student completers (total completers / total enrolled)
   - the percentage of female completers (total number of female completers / total number of female enrolled)
   - the percentage of male completers
   - the percentage of each ethnicity


Output


The output for this project will be two-fold.   The output will be displayed in a Message dialog box and an output file.

The Message Dialog boxes:

Each percentage calculated should be displayed in percentage format with one decimal place.

A sample format (the values are not accurate, this is only for formatting purposes):

Santa Fe College
Academic Year 2019 - 2020
Program codes: 3624, 5651, and 6635

Aggregate total number of student enrolled:       5555
Aggregate total number of student completers: 4444

Aggregate percentage of students completing for the academic year: 81.2%

Percentage of students completing Fall 2019:             76.9%
Percentage of students completing Spring 2020:        85.3%
Percentage of students completing Summer 2020:     84.1%

On the next dialog screen, display the following:

Santa Fe College
Academic Year 2019 - 2020
Program codes: 3624, 5651, and 6635

Aggregate values for:

Female student completers:     88.8%
Male student completers:                        88.7%
Unknown/not reported completers:    89.1%

Asian completers:    90.1%
Black completers:                                        90.2%
Hispanic completers:                                 90.3%
Multiracial completers:                             90.4%
Native American completers:      90.5%
Native Hawaiian completers:                  90.6%
Unknown/Not Reported completers:   90.7%
White completers:                                       90.8%

Fall2019Analytics.txt: 3624 3729 2946 1774 1445 510 1442 1087 417 627 1021 939 216 47 15 122 742 572 977 735 181 39 11 84 3475651 4074 3585 1956 1977 141 1782 1731 72 413 927 893 314 56 37 395 1039 387 912 803 273 49 30 327 8046635 2116 1837 609 1058 449 582 1031 224 341 402 363 146 89 74 297 404 303 377 321 113 76 57 270 320

Spring2020Analytics.txt: 3624 3496 3102 1579 1238 679 1486 1017 599 703 1137 842 224 32 21 103 434 688 1007 774 221 30 21 101 2605651 3942 3711 1421 2213 308 2148 1349 214 443 739 804 310 46 37 173 1390 439 727 799 216 46 36 162 12866635 2101 1979 797 1273 31 752 1039 188 601 739 426 173 21 15 3 123 592 701 399 162 18 13 2 92

Summer2020Analytics.txt: 3624 2021 1983 771 1137 113 717 1083 183 307 526 601 211 27 4 13 332 297 506 600 208 26 4 13 3295651 3013 2883 1267 1393 353 1240 1297 346 226 402 373 102 16 13 17 1864 214 401 369 96 15 13 17 17586635 1731 1546 663 817 251 612 799 135 107 392 649 81 30 21 71 380 103 384 621 80 30 20 70 238

In: Computer Science