Determine how many consonants are in an entered string

Assignment Help C/C++ Programming
Reference no: EM13936570

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

Reference no: EM13936570

Questions Cloud

Write a business memo to the head of the company : Write a business memo to the head of the company stating why his proposed actions (of buying the company) might not be a good idea based upon the sales information you reviewed.
Where is the error in this code sequence? : Where is the error in this code sequence?Explain what the problems are and how to fix them.
Prepare presentation on motivational interviewing : Create an 8- to 16-slide Microsoft PowerPoint presentation on motivational interviewing. Include the following:  The agency's philosophy of motivational interviewing and The agency's ethical beliefs, including confidentiality
Explain the infective stages of animal parasites : Explain the infective stages of animal parasites (cestodes, protozoa, nematodes) and how they respond in environmental conditions, such as temperature, drying, and lack of a susceptible host?
Determine how many consonants are in an entered string : 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.
Make it on platform research on hypervisors : Assignment is done already but the proposal is for a hypervisor - ie: Hyper-V, VMWare, FreeBSD Jail, etc... Which has been done but there is no supporting evidence for that platform.
How the intervention will be measured and evaluated : Write a 1,050- to 1,400-word comprehensive treatment plan and interview questions that you could use when interviewing a client. Items to consider for your plan include the following: Client background or history and  Physical or visual state of th..
Read the assigned articles and find a current event : Read the assigned articles and find a current event about an organizational change effort. Create a two-paragraph synopsis to explain that change effort to your classmates, post a link to the current event article, and make sure to answer the followi..
What type of selection do they impose on tobacco plants : Wild tobacco plants with a single, dominant mutation are resistant to herbivory by hornworms (sphynx moth larvae). As a result, they grow larger and set many more seed. In areas where hornworms are present, what type of selection do they impose on..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Describe an example of a two-dimensional character array

Describe an example of a two-dimensional character array that could be used to hold a set of text data that might be displayed on a hand-held information display device such as an MP3 player

  Two for loops that will calculate the sum of all even number

Write a program using two for loops that will calculate the sum of all even numbers between 2 and 100,

  Write a function for upper triangular matrix

Write a function 'function x = u solve(A,b)' to solve Ax = b when 'A' is a upper triangular matrix.

  Write a bouncing ball video game

The balls bounces within the screen where the two horizontal walls are fixed

  Implement an overloaded addition operator for point class

Implement overloaded addition operator + and subtraction operator - for the Point class. Implement an overloaded multiplication operator * to return the dot product of two Point objects.

  Create a second employee object using the multi-argument

Create a second Employee object using the multi-argument constructor, setting each of the attributes with appropriate valid values.

  Implement recursive algorithms using a stack

Show the difficulties of the added complexity and which of the two sorts is easier to implement nonrecursively? Why?

  What difference between sequential access and direct access

What is the difference between sequential access and direct access? What do the seekg() and seekp() functions do? What do the read() and write() functions do?

  What is the maximum duration

A computer on a 10Mbps network is regulated by a token bucket. The token bucket is filled at a rate of 2Mbps. It is initially filled to capacity with 16Megabits. What is the maximum duration for which the computer can transmit at the full 10Mbps?

  Prepare a program that uses at least two functions

Prepare a program that uses at least two functions that can be called from your main.

  A password must have at least eight characters

A password must have at least eight characters. A password must consist of only letters and digits. A password should contain at least one uppercase letter. A password must contain at least two digits.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd