Employee Salary Calculator Program and Analysis Demonstrate an understanding of C++ programming concepts by completing the following: Program: Create a C++ program that will function as an Employee Salary Calculator. Obtain from the user: Double variables for Standard Hours worked Rate of Pay Overtime Hours (if applicable) Calculate appropriate pay for standard hours and overtime (1.5 x rate of pay). Provide formatted output using the following methods setw() setprecision() Store the values into three different variables. For each double variable, create a double pointer to dynamic memory. Display the contents of the variables and pointers.  In your program, be sure to use the new operator and delete operators to manage dynamic memory. Program Analysis: Given your program implementation, discuss and identify the possible security vulnerabilities that may exist. If present, discuss solutions to minimize the vulnerabilities. Discuss and identify possible problems that can result in errors when using formatted output. Your analysis should be 1-2 pages in length.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 13E
icon
Related questions
Question

Employee Salary Calculator Program and Analysis

Demonstrate an understanding of C++ programming concepts by completing the following:

  1. Program: Create a C++ program that will function as an Employee Salary Calculator. Obtain from the user:
    1. Double variables for
      1. Standard Hours worked
      2. Rate of Pay
      3. Overtime Hours (if applicable)
    2. Calculate appropriate pay for standard hours and overtime (1.5 x rate of pay).
    3. Provide formatted output using the following methods
      1. setw()
      2. setprecision()
  2. Store the values into three different variables. For each double variable, create a double pointer to dynamic memory. Display the contents of the variables and pointers.  In your program, be sure to use the new operator and delete operators to manage dynamic memory.
  3. Program Analysis: Given your program implementation, discuss and identify the possible security vulnerabilities that may exist. If present, discuss solutions to minimize the vulnerabilities. Discuss and identify possible problems that can result in errors when using formatted output. Your analysis should be 1-2 pages in length.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 2 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,