Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 1: Write a program in C++ that permits users to enter the following information about your company's five employees and writes the following information

image text in transcribed
PART 1: Write a program in C++ that permits users to enter the following information about your company's five employees and writes the following information to the file (data.txt). Employee ID. Name Years with company Hourly Wages All information must be displayed in a well formatted manner, so you can put in relevant manipulators for this purpose. Run your program, put in employee information (for 5 employees), and verify if you have a txt file as required. PART 2: At this point you must have a txt file with information of 5 employees. Go back to your C++ program (from part 1), put the entire existing program from part 1 within block comments / Now write a new program for part 2 (in that same C++ file) as per instructions given below. Write a C++ program that reads this file data.txt, one line at a time, asks for the number of hours worked by each employee per month and calculates their total pay for that month. So for each of the employee records that stream in, your program must ask user: Enter hours worked by (name of employee): When user puts in the answer, program must calculate the total salary and display on the computer screen as " The salary of (name) is $ (salary)

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

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

7. Where Do We Begin?

Answered: 1 week ago