Objective: The purpose of this assignment is to: You understand and can work with C++ arrays,...

Objective:
The purpose of this assignment is to:

  • You understand and can work with C++ arrays, characters, and strings.
  • You are comfortable with writing functions in C++.
  • You are familiar with repetitive structures (loops) and selection statements (if/else or switch) in any combination and can use them in functions and manipulate array data.
  • You can approach a complex problem, break it down into various parts, and put together a solution.
  • You will be able to:
    • Use the basic set of Unix commands to manipulate directories and files
    • Create and edit files using a standard text editor
    • Transfer files from a laptop to the Unix server
    • Use the G++ compiler to compile programs
    • Execute C++ programs that you have written

Directions:

Write a C++ program that will create a menu driven program with the following options:

Menu Options:
A) Text to Morse code
B) Quit

If user selects A or a:

  • The user is asked to input a string of characters
  • Each character is converted into Morse code and displayed to the screen (see http://www.sckans.edu/~sireland/radio/code.html (Links to an external site.))
  • If the user enters a string that contains items not listed in the table below "Error : word contains symbols" is displayed to the screen

If user selects B or b:

  • The application ends

Otherwise:

  • The user is asked to enter a valid menu option

Make sure your program conforms to the following requirements:

1. This program should be called MorseCode.cpp

2. It must provide the functions defined above. You are required to use and define proper C++ functions, but for this program, you are allowed to define them (80 points).

3. Add comments wherever necessary. (5 points)

4. Run the program in linprog.cs.fsu.edu - select option A - redirect output to a file called OutputA.txt (include OutputA.txt in submission and Unix command executed) (5 points)

Sample Runs:

NOTE: not all possible runs are shown below.

Welcome to the Morse code program
Menu Options:
A) Text to Morse code
B) Quit
h
Menu Options:
A) Text to Morse code
B) Quit
a
Enter a word and I will translate it to Morse code.
-> sos
...
---
...
Menu Options:
A) Text to Morse code
B) Quit
A
Enter a word and I will translate it to Morse code.
-> ok
---
-.-
Menu Options:
A) Text to Morse code
B) Quit
a
Enter a word and I will translate it to Morse code.
-> ??
Error : word contains symbols
Menu Options:
A) Text to Morse code
B) Quit
a
Enter a word and I will translate it to Morse code.
-> ok
---
-.-
Menu Options:
A) Text to Morse code
B) Quit
B

General Requirements:

1) Include the header comment with your name and other information on the top of your files.

2. Please make sure that you're conforming to specifications (program name, print statements, expected inputs and outputs, etc.). Not doing so will result in a loss of points. This is especially important for prompts. They should match mine EXACTLY.

3. If we have listed a specification and allocated point for it, you will lose points if that particular item is missing from your code, even if it is trivial.

4. No global variables (variables outside of main()) unless they are constants.

5. All input and output must be done with streams, using the library iostream

6. You may only use the iostream, iomanip, vector, and string libraries. Including unnecessary libraries will result in a loss of points.

7. NO C style printing is permitted. (Aka, don't use printf). Use cout if you need to print to the screen.

8. When you write source code, it should be readable and well-documented (comments).

9. Make sure you either develop with or test with g++ (to be sure it reports no compile errors or warnings) before you submit the program.

In: Computer Science

According for FITT recommendations for women who are pregnant, what is the intensity for aerobic activity?...

According for FITT recommendations for women who are pregnant, what is the intensity for aerobic activity?

Select one or more:

a. Moderate intensity (3-5.9 METS; RPE 12-13); Vigorous intensity (>6 METs' RPE 14-17)

b. Intensity that permits multiple submax repetitions (8-10 or 12-15) to be preformed to a point of moderate fatigue  

c. A variety of weight and non-weight bearing activities are well tolerated

In: Anatomy and Physiology

Why is it preferable, if possible, to take a narrow spectrum antibiotic over a broad spectrum...

Why is it preferable, if possible, to take a narrow spectrum antibiotic over a broad spectrum antibiotic?

Group of answer choices

narrow spectrum antibiotics have a limited range of effectiveness among different bacterial species but they each have several modes of action which make them more effective than broad spectrum antibiotics

narrow spectrum antibiotics are less likely to be overcome by antimicrobial resistance mechanisms compared to broad spectrum antibiotics

narrow spectrum antibiotics always have a high theraputic index compared to broad spectrum antibiotics

narrow spectrum antibiotics are less likely to destroy the normal gut microflora which can lead to development of super-infections after treatment

narrow spectrum antibiotics attack many more species of bacteria compared to broad spectrum antibiotics

In: Biology

Marketing at Pepe’s Pizzeria focuses on the development, growth, and maintenance of cost-effective, high-value relationships with...

Marketing at Pepe’s Pizzeria focuses on the development, growth, and maintenance of cost-effective, high-value relationships with each of its customers. This type of marketing is known as _____.

a. direct marketing b. relationship marketing c. transaction-based marketing d. value-based marketing

The relationship between Pepe’s Pizzeria and its customers functions at which level of the relationship marketing continuum?

a. Fourth Level b. Third Level c. Second Level d. First Level

Pepe’s Pizzeria indulges in social interaction and interactive marketing with its customers on Twitter and Facebook. Thus, Pepe’s Pizzeria builds buyer–seller relationships through _____.

a. grassroots marketing b. database marketing c. frequency marketing d. interactive television

If Pepe’s Pizzeria built its brand equity by letting satisfied customers get the word out about its pizzas to other consumers, the type of marketing initiative used is known as _____.

a. affinity marketing b. ambush marketing c. viral marketing d. direct marketing

How can Pepe’s Pizzeria determine the costs it incurs to serve each customer and thus develop ways to increase its profitability?

a. By calculating the customer churn b. Through the payback method c. Through tracking rebates, coupons, and credit card purchases d. By calculating the lifetime value of its customers

In: Accounting

Write a java program that calculates the total amount of money a person has made over...

Write a java program that calculates the total amount of money a person has made over the last year. The program will prompt the user for dollar amounts showing how much the user has made per job. Some users will have had more than one job, make sure your program allows for this. The program will print out the total made (all jobs) and will print out the federal and state taxes based on the total made. For this program, the federal tax will be 8.5% and the state tax will be 14.5%.

  1. Use appropriate comments throughout the program. ***PLEASE BE AS DETAILED AS POSSIBLE TO UNDERSTAND CODE FORMAT***
  2. Create a header at the top showing the programmer, date of creation and class.
  3. Make sure you insert appropriate instructions for the user.

In: Computer Science

1. Determine if the following statements are correct and then explain briefly. a. Policymakers in a...

1. Determine if the following statements are correct and then explain briefly.

a. Policymakers in a closed economy could promote economic growth by encouraging saving.

b. When the government removes the minimum wage law, natural unemployment will fall.

c. If inflation is lower than expected, creditors gain at the expense of debtors.

d. Increase unemployment benefit payment to the unemployed will increase unemployment.

In: Economics

Which sets of data can be used to identify business cycles? Select all that apply. Choose...

Which sets of data can be used to identify business cycles? Select all that apply.
Choose one or more:A.real GDP data

B.salary or wage data

C.unemployment rate data

In: Economics

or the current year, Custom Craft Services Inc. (CCS), a C corporation, reports taxable income of...

or the current year, Custom Craft Services Inc. (CCS), a C corporation, reports taxable income of $302,000 before paying salary to Jaron the sole shareholder. Jaron’s marginal tax rate on ordinary income is 35 percent and 15 percent on dividend income. Assume CCS’s tax rate is 35 percent. a. How much total income tax will Custom Craft Services and Jaron pay (combining both corporate and shareholder level taxes) on the $302,000 taxable income for the year if CCS doesn’t pay any salary to Jaron and instead distributes all of its after-tax income to Jaron as a dividend (assume Jaron is not subject to the net investment income tax or the additional Medicare tax)?

b. How much total income tax will Custom Craft Services and Jaron pay (combining both corporate and shareholder level taxes) on the $302,000 of income if CCS pays Jaron a salary of $212,000 and distributes its remaining after-tax earnings to Jaron as a dividend (assume Jaron is not subject to the net investment income tax or the additional Medicare tax)?


      

In: Accounting

In the modern business ethics reality, Canadian corporations - and those in most English - speaking...

In the modern business ethics reality, Canadian corporations - and those in most English - speaking countries - are increasingly accountable for their actions (and inactions) to a broad range of stakeholders. Moreover, because the support of stakeholders is now generally regarded as essential for a corporation to reach its strategic objectives, measures to gain and keep this support are now expected to be integrated into governance procedures, policies, strategies and actions in the workplace. Discuss.

In: Accounting

Calculate the pH of a 0.335 M solution of ethylenediamine (H2NCH2CH2NH2). The pKa values for the...

Calculate the pH of a 0.335 M solution of ethylenediamine (H2NCH2CH2NH2). The pKa values for the acidic form of ethylenediamine ( H3NCH2CH2NH3 ) are 6.848 (pKa1) and 9.928 (pKa2).

pH=

Calculate the concentration of each form of ethylenediamine in this solution at equilibrium.

[H2NCH2CH2NH2]=

[H2NCH2CH2NH3+]=

[H3+NCH2CH2NH3+]=

In: Chemistry

A 2.00 mol sample of an ideal gas with a molar specific heat of CV =...

A 2.00 mol sample of an ideal gas with a molar specific heat of CV = 5/2 R always starts at pressure 1.50 ✕ 10^5 Pa and temperature 350 K. For each of the following processes, determine the final pressure (Pf, in kPa), the final volume (Vf, in L), the final temperature (Tf, in K), the change in internal energy of the gas (ΔEint, in J), the energy added to the gas by heat (Q, in J), and the work done on the gas (W, in J) a.) The gas is heated at constant pressure to 460 K. b.) The gas is heated at constant volume to 460 K. c.) The gas is compressed at constant temperature to 200 kPa d.) The gas is compressed adiabatically to 200 kPa.

In: Physics

You are graduating from college at the end of this semester and have decided to invest...

You are graduating from college at the end of this semester and have decided to invest ​$4,500 at the end of each year into a Roth​ IRA, which is a retirement investment account that grows tax free and is not taxed when it is​ liquidated, for the next 50 years. If you earn 10 percent compounded annually on your investment of ​$4,500 at the end of each​ year, how much will you have when you retire in 50 ​years? How much will you have if you wait 10 years before beginning to save and only make 40 payments into your retirement​ account? 

When you retire in 50 ​years, you will have ​$__________ ​(Round to the nearest​ dollar.)

In: Finance

4 questions 1. Legal consultant Jathan Janove recommended that progressive discipline policies be ended because they:...

4 questions

1. Legal consultant Jathan Janove recommended that progressive discipline policies be ended because they:

A. require time-consuming procedures that often lead managers to procrastinate in dealing with poorly-performing employees.

B. have been shown to be a significant deterrent in recruiting good employees.

C. are becoming increasingly irrelevant in the era of the gig economy and contract workers.

D. are nothing more than a legalistic tool that employers have used to exploit employees and deprive them of their rights.

E. have long been used by unions as a "rallying cry" for advocating unionization.

2. Which of the following is not a common goal of a strategic compensation policy?

A. to control the compensation budget

B. to attract new employees

C. to comply with EEO comparable worth laws

D. to reward employees' past performance

E. to remain competitive in the labor market

3. Lajos works at a company that uses a variety of heavy machines. Lajos knows how to operate three of the machines, and if he learns to use another one, his pay will increase. Which type of compensation plan is most likely used by Lajos's employer?

A. measurable competency pay

B. skill-based pay

C. invariable pay

D. lumpen prole pay

E. variable pay

4. In implementing its compensation philosophy, Google has found that:

A. the use of experiential and "in-kind" gifts as rewards has inconsistent and unpredictable results because individuals place such different values on such rewards.

B. a big advantage of using money as a reward is that its quantitative nature makes it unambiguous and provides a very clear "signal" to employees.

C. experiential rewards such as trips, team parties, and "in-kind" gifts often have more powerful and longer-lasting positive effects than does the equivalent cash value.

D. even though employees often say they would value experiential rewards more than the equivalent in cash value, when it comes right down to it, money is the most powerful motivator, AND

the use of experiential and "in-kind" gifts as rewards has inconsistent and unpredictable results because individuals place such different values on such rewards, AND

a big advantage of using money as a reward is that its quantitative nature makes it unambiguous and provides a very clear "signal" to employees.

E. even though employees often say they would value experiential rewards more than the equivalent in cash value, when it comes right down to it, money is the most powerful motivator.

In: Operations Management

Di chloroacetic acid (Cl2HCCOOH) has a pka of 1.3 .What is the pH of a 0.125...

Di chloroacetic acid (Cl2HCCOOH) has a pka of 1.3 .What is the pH of a 0.125 M solution of potassium dichloroacetate?

In: Chemistry

Professor, In trying to apply my knowledge in the real world, I am trying to create...

Professor,

In trying to apply my knowledge in the real world, I am trying to create a realistic retirement schedule. However, I am running into difficulties using both a financial calculator as well as our equations from class in doing this.

I am trying to do the following: plan a retirement schedule between the ages of 22 and 68, in which I would deposit 25% of my income each year. The income starts at 80,000 with an annual growth rate of 5% and, to be realistic, assuming an interest rate of 2.5%. I will assume for simplicity that I receive my first salary ($80,000) when I turn 22, and my last salary when I turn 68. As soon as I receive a salary, I will save 25% of it.

However, this raises issues, as if I try to use the equation for the present value of a growing annuity with a 5% growth rate and 2.5% discount rate, r-g will yield a negative number. Also, I could not find online how to do this on my HP 10bII+ financial calculator and I don't want to manually enter 47 payments.

Do you know how I could overcome this obstacle?

  1. Briefly comment on Jimmy’s concern that “if I try to use the equation for the present value of a growing annuity with a 5% growth rate and 2.5% discount rate, r-g will yield a negative number”. (3 sentences at most)
  2. How much will Jimmy have in his retirement account when he turns 68, immediately after the last deposit?
  3. What single deposit made on Jimmy’s 22nd birthday would give the same account balance when he turns 68?

In: Finance