Purchase Solution

Advanced file operation

Not what you're looking for?

Ask Custom Question

Write a program that determines how many consonants are in an entered string of 50 characters or less. Output the entered string and the number of consonants in the string.

Write a program that will read records from a file (create your data file by using data from sample below) and store them in a binary file. That file will then be used as input to create an output file of the information. The data file contains employee information consisting of name, social security, department ID, years employed, and salary. In addition to displaying the information of each record, the program will also calculate the average salary and years employed of all the records. This additional information is stored in the same output file.

Sample Data File:
Bill Tarpon 182460678 789 8 30600
Fred Caldron 456905434 789 10 40700
Sally Bender 203932239 790 8 50000
David Kemp 568903493 790 9 60000
The output file should look like this:
Name Social Security Department-ID Years-Employed Salary
Bill Tarpon 182460678 789 8 30600.00
Fred Caldron 456905434 789 10 40700.00
Sally Bender 203932239 790 8 50000.00
David Kemp 568903493 790 9 60000.00
The average number of years employed is 8
The average salary is $45325.00

Purchase this Solution

Solution Summary

The Solution provides a C++ program that identifies the number of consonants in a string of 5 characters or less.

Purchase this Solution


Free BrainMass Quizzes
C# variables and classes

This quiz contains questions about C# classes and variables.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.