Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please make this program using C++ Salesperson's Paycheck Write a program that will accept as input from a file the following information: The employee's first

Please make this program using C++ image text in transcribed
Salesperson's Paycheck Write a program that will accept as input from a file the following information: The employee's first name, last name (both string with no spaces) .The employee's base salary and commission percent (both double) .The employee's total sales (double) . The employee's expenses (double) Your program should calculate the details of the employee's gross pay (total pay without regard to taxes), and output the information to the screen. Your output should be consistent with the sample output below. When you program runs, it should prompt for the name of the file that contains the input. Your program should input the employee data from the specified file, compute results, then output to the console. The input file will be formatted as follows: Line 1: Two string words, employee first and last name Line 2: Two numbers (double), base salary and commission percent (e.g. 4.5 to represent 45% Line 3: One number (double), employee's total sales Line 4: One number (double), employee's expenses Here is a sample input file: Jeff Jones 1408. 3.5 10155.0e 155.00 The output for the above file should be formatted as follows: Payroll data for Jeff Jones Base Salary: Commission Expenses: 1400.0e 155.00 1910.43 355.43 (3.5% of 10155.00) Total: When submitting your assignment, you need to submit only your C++source file (.cpp file). You do not need to submit any input files

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Simplify -3x - (x + 2y) - 2(5 + y)

Answered: 1 week ago