Questions
Create a menu-based program that will allow the user to calculate the area for a few...

  • Create a menu-based program that will allow the user to calculate the area for a few different shapes: square, rectangle, parallelogram, and circle.
  • Refer to the Sample Output in this document to see what menu options you should use.
  • Create PI as a global constant variable.
  • Main Function
    • use do-while to repeat program until user chooses option 5
    • call the displayMenu function
    • get user choice & validate with while loop
    • depending on user’s choice, get the data required to calculate the area of the shape from the user and then call the appropriate function to calculate the area.

  • Write five programmer-defined functions.
    • displayMenu – should print out the menu options
    • areaSquare() – should accept the height of the square from the main function, calculate the area, and then print the area of the square.
    • areaRectangle() – should accept the height & width of the rectangle from the main function, calculate the area, and then print the area of the rectangle.
    • areaParallelogram() – should accept the base & height of the parallelogram from the main function, calculate the area, and then print the area of the parallelogram.
areaCircle() – should accept the radius of the circle from the main function, calculate the area, and then print the area of the circle.

In: Computer Science

Your task is to write a program in C or C++ that calculates the total amount...

Your task is to write a program in C or C++ that calculates the total amount of money a person has made over the last year. Your 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 through out the program.

2)Create a header at the top showing the programmer, date of creation and class

3)Print out the source code, and 3 sample runs.

4)Make sure you insert appropriate instructions for the user.

Notes:

1)No negatives are allowed (negative income), check for this.

2)You may use any loop type you wish - be able to defend your choice.

Deliverables:

1)The source code of your completed, working program

2)3 sample runs of your program

In: Computer Science

Morgan Manufacturing operates in an industry in which frequent changes in market conditions results in a...

Morgan Manufacturing operates in an industry in which frequent changes in market conditions results in a hectic and volatile IT environment within the company. To keep abreast, Morgan’s system development team are engaged in a considerable level of new program development and application change activities. To efficiently manage the workload, the director of IT has combined the functions of systems development and program change into a single department. This allows programmers of new applications to also maintain those applications. To achieve cross training, programmers also maintain applications originally programmed by other IT personnel. This has resulted in an “open” library policy that allows programmers to access all programs stored in the SPL and download them to personal computers for maintenance. The immediate effect of this policy has been an increase in the work flow by reducing the startup time needed by programmers to become familiar with the systems being modified. It also reduces the time spent on system documentation. Since the designer and the maintenance programmer is the same person, highly detailed and standardized documentation is not needed.

Required

  1. Discuss the risk potential related to Morgan Manufacturing’s program change procedures.
  2. Discuss the controls that would reduce the risks described above.

In: Economics

Using C#: Write a class named Employee that has the following properties: Name - The Name...

Using C#:

Write a class named Employee that has the following properties:

  • Name - The Name property holds the employee's name
  • IdNumber - The IdNumber property holds the employee's ID number
  • Department - The Department property holds the name of the department in which the employee works
  • Position - The Position property holds the employee's job title

The class should have the following overloaded constructors:

  • A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's name, employee's ID number, department, and position
  • A constructor that accepts the following values as arguments and assigns them to the appropriate properties:employee's name and ID number. The Department and Position properties should be assigned an empty string (" ")
  • A parameterless constructor that assigns the empty string (" ") to the Name, Department, and Position properties, and 0 to the IdNumber property

In an application, create three Employee objects to hold the following data:

Name                         IdNumber                           Department                    Position

Susan Myers               47899                                 Accounting                     Vice President

Mark Jones                 39119                                 IT                                  Programmer

Joy Rogers                  81774                                 Manufacturing                Engineer

The application should store this data in the three objects and display the data for each employee on the screen.

In: Computer Science

Create a menu-based program that will allow the user to calculate the area for a few...

  • Create a menu-based program that will allow the user to calculate the area for a few different shapes: square, rectangle, parallelogram, and circle.
  • Refer to the Sample Output in this document to see what menu options you should use.
  • Create PI as a global constant variable.
  • Main Function
    • use do-while to repeat program until user chooses option 5
    • call the displayMenu function
    • get user choice & validate with while loop
    • depending on user’s choice, get the data required to calculate the area of the shape from the user and then call the appropriate function to calculate the area.

  • Write five programmer-defined functions.
    • displayMenu – should print out the menu options
    • areaSquare() – should accept the height of the square from the main function, calculate the area, and then print the area of the square.
    • areaRectangle() – should accept the height & width of the rectangle from the main function, calculate the area, and then print the area of the rectangle.
    • areaParallelogram() – should accept the base & height of the parallelogram from the main function, calculate the area, and then print the area of the parallelogram.

areaCircle() – should accept the radius of the circle from the main function, calculate the area, and then print the area of the circle.

In: Computer Science

Background: You can create a simple form of encryption using the xor Boolean operator. For example,...

Background:
You can create a simple form of encryption using the xor Boolean operator. For example, if you want to encrypt the letter 'A':

  1. Choose another letter as a "key", say 'X'
  2. Encrypt 'A' with the xor function: encrypted = 'A' xor 'X'
  3. Now you can decrypt by xor'ing your encrypted value with 'X' again: decrypted = encrypted xor 'X'

Your task:
Write a C++ program that meets the following requirements:

  1. Asks the user for the name of an input file and a "key" character
  2. Encrypt each character in the file using the provided key and the xor function. (Note: The program should handle all standard alphanumeric characters.)
  3. Your program should save the results of the encryption into a new file with the same base name, but with a ".xor" file extension.
  4. The program should also provide an option to decrypt a given file.
  5. Include appropriate error checking.

Submit:

  • Fully documented source code

Documentation should include:

  • Pseudocode
  • Top comment block (The name of the program, The name of the programmer, The date of the program, and A brief description of the purpose of the program)
  • Function comments (Description, pre and post conditions)
  • Internal comments for all functions

In: Computer Science

Costen, Inc., produces cellphone equipment. Jessica Tomly, Costen’s president, decided to devote more resources to the...

Costen, Inc., produces cellphone equipment. Jessica Tomly, Costen’s president, decided to devote more resources to the improvement of product quality after learning that her company had been ranked fourth in product quality in a 2009 survey of cellphone users. Costen’s quality-improvement program has now been in operation for two years, and the cost report shown here has recently been issued.

Semi-Annual Cost of Quality Report
Costen, Inc.

30 / 06 / 2010
31 / 12/ 2010
30 / 06 / 2011
31 / 12 / 2011

Prevention costs
   Maintenance
   Supplier training
   Design reviews
       Total

440 000
20 000
50 000
510 000

440 000
100 000
214 000
754 000

390 000
50 000
210 000
650 000

330 000
40 000
200 000
570 000

Appraisal costs
   Incoming inspections
   Final testing
       Total

108 000
332 000
440 000

123 000
332 000
455 000

90 000
293 000
383 000

63 000
203 000
266 000

Internal failure costs
   Rework
   Scrap
       Total

231 000
124 000
355 000

202 000
116 000
318 000

165 000
71 000
236 000

112 000
67 000
179 000

External failure costs
   Warranty repairs
   Customer returns
       Total

165 000
570 000
735 000

85 000
547 000
632 000

72 000
264 000
336 000

68 000
188 000
256 000

Total quality costs
2 040 000
2 159 000
1 605 000
1 271 000

Total revenues
8 240 000
9 080 000
9 300 000
9 020 000


Required:

4.1 For each period, calculate the ratio of each cost of quality category to revenues and to total quality costs.

4.2 Based on the results in 4.1, would you conclude that Costen’s quality program has been successful? Prepare a short report to present your case.

In: Accounting

Costen, Inc., produces cellphone equipment. Jessica Tomly, Costen’s president, decided to devote more resources to the...

Costen, Inc., produces cellphone equipment. Jessica Tomly, Costen’s president, decided to devote more resources to the improvement of product quality after learning that her company had been ranked fourth in product quality in a 2009 survey of cellphone users. Costen’s quality-improvement program has now been in operation for two years, and the cost report shown here has recently been issued.

Semi-Annual Cost of Quality Report

Costen, Inc.

30 / 06 / 2010

31 / 12/ 2010

30 / 06 / 2011

31 / 12 / 2011

Prevention costs

   Maintenance

   Supplier training

   Design reviews

       Total

440 000

20 000

50 000

510 000

440 000

100 000

214 000

754 000

390 000

50 000

210 000

650 000

330 000

40 000

200 000

570 000

Appraisal costs

   Incoming inspections

   Final testing

       Total

108 000

332 000

440 000

123 000

332 000

455 000

90 000

293 000

383 000

63 000

203 000

266 000

Internal failure costs

   Rework

   Scrap

       Total

231 000

124 000

355 000

202 000

116 000

318 000

165 000

71 000

236 000

112 000

67 000

179 000

External failure costs

   Warranty repairs

   Customer returns

       Total

165 000

570 000

735 000

85 000

547 000

632 000

72 000

264 000

336 000

68 000

188 000

256 000

Total quality costs

2 040 000

2 159 000

1 605 000

1 271 000

Total revenues

8 240 000

9 080 000

9 300 000

9 020 000


Required:

4.1    For each period, calculate the ratio of each cost of quality category to revenues and to total quality costs.

4.2    Based on the results in 4.1, would you conclude that Costen’s quality program has been successful? Prepare a short report to present your case.

In: Accounting

Company finance structure is 25% bonds, 10% preferred stock, and 75% common stock, the bonds each...

Company finance structure is 25% bonds, 10% preferred stock, and 75% common stock, the bonds each have a face value of $1,000, selling at a discount of $35 today with maturity in 10 years, annual coupon interest of 8% and flotation cost of 2 1/2%, companys tax rate is 34%, preferred stock has a 7% annual dividend and par at $100 which can be sold today for $85, underwriters fee for the sale would be $2 per share, new common stock is selling at current price of $45 per share, expected dividend for 2020 is $3.60, dividends have grown at consistent rate (2019 $3.46 2018 3.33 2017 3.2 2016 3.08 2015 2.96), to attract buyers management will underprice shares by $4 and flotation costs will be $2.50 per share, dividend payouts are expected to continue at constant growth, calculate after-tax cost of debt, calculate cost of preferred stock issue, assume rs = rr calculate cost of new common stock issue, using finance structure of the firm, calculate the after-tax WACC

In: Finance

On January 1, 2020, an entity sold a car to a customer at a price of...

On January 1, 2020, an entity sold a car to a customer at a price of P320,000 with a production cost of P240,000. It is the entity’s policy to employ installment method to recognize gross profit from installment sales.

At the time of sale, the entity received cash amounting to 25% of the selling price and old car with trade-in allowance of P40,000. The said old car has fair value of P120,000. The customer issued a 5-year note for the balance to be payable in equal annual installments every December 31 starting 2018. The note payable is interest bearing with 10% rate due on the remaining balance of the note.

The customer was able to pay the first annual installment and corresponding interest due. However, after the payment of the second interest due, the customer defaulted on the second annual installment which resulted to the repossession of the car sold with appraised value of P88,000. On December 31, 2019, the repossessed car was resold for P112,000 after reconditioning cost of P8,000.

3. What is the entity’s realized gross profit for the year ended December 31, 2018?

4. What is the loss on repossession for the year ended December 31, 2019?

In: Accounting