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

  Create a piggy bank

Prepare a piggy bank using Visual C++. The code requires to be separated into a header file and a driver.cpp using implementation.

  Implement a time class that represent a specific time of day

Implement a Time class. Each object of this class will represent a specific time of day, storing the hours, minutes, and seconds as integers.

  Three dimensional array representing parking spaces

start with code in the file lab.cpp. This program works with a three dimensional array representing parking spaces in a parking garage on several floors. The code is incomplete. The functions "main", "display" and "showSpace" are complete. Your job i..

  Calculate the score percentage

If the input value within the valid range, the program will display a "good score" message; otherwise, the program will display an error message and then terminate the program. The program will then calculate the score percentage and then determin..

  Throws an exception from a deeply nested

Write a program that throws an exception from a deeply nested function and still has the catch handler following the try block enclosing the initial call in main catch the exception

  Each has a string for their name

Create a class in C++ that holds robot warriors. Each has a string for their name, a number of hitpoints (an float), armor (a defensive modifier(an int)), and weaponry (an offensive multiplier(another int)). You will create 5 robots with a random ..

  Write a program that keeps an employee database

Using C++, Write a program that keeps an employee database in a random-access file. Implement functions for adding and removing employees. You need not keep employees in sorted order.

  An expression whose value depends upon the evaluation

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Write main function to compute stress-strain in steel rod

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads.

  Programmingto compute the volume of water in the cubic feet

Write down an algorithm (Programming in C) in order to compute the volume of water in the cubic feet, flowing through a pipe of diameter d in feet, having a velocity of v feet per second.

  Program which converts fahrenheit to centigrade

Design, create, and test a program which converts degrees Fahrenheit to degrees Centigrade (Celsius). The program must contain one main program and 3 functions: F2C() and C2F() and instructions()

  Use c-strings without using the c-string library

write a program that implementd and test the following functions for use C-strings without using the c-string libaray  ( that is, you re NOT ALLOWED to use #include in this   program):

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