Program to calculate the average salary and years employed

Assignment Help Software Engineering
Reference no: EM1378929

Construct a program that determines how many consonants are in an entered string of fifty 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: EM1378929

Questions Cloud

Software development practices : Agile Development is a blanket term that covers a wide variety of software development practices many of which have been codified and documented.
Creating well documented object oriented application : Construct an efficient, well-documented object oriented application to manage all of job offers that an upcoming graduate is getting.
Microsoft word and powerpoint presentation : Assume A friend of you has just started using M.S. Word, and has e-mailed you requesting instructions on how to apply a first line indent to a paragraph. Construct a list of instructions about how to configure a 1st line indent for a paragraph.
Finding output of the code sequence : Construct the pseudocode for a program that finds the sums of the numbers input that are greater than or equal to 10 and the numbers input that are less than ten.
Program to calculate the average salary and years employed : Construct a program that determines how many consonants are in an entered string of fifty characters or less. Output the entered string and the number of consonants in the string.
Explanations on fixing c++ code errors : This technique takes an array of ints as a parameter and returns an array of Booleans. For each element in the parameter array whose value is 0,
Finding error in code sequence : This code prints all elements of the array geo for, Describe what the problems are and how to fix them.
Explain and fix java code errors : The code compiles properly, but when you run, you get the following output, Exception in thread "main" java.land.IndexoutBoundsException:
Fixing errors for java code : The code compiles properly and runs, but result is not what you expected; output is similar to the following, Describe what the problem is how to fix it.

Reviews

Write a Review

Software Engineering Questions & Answers

  Design entity relationship diagram for catered accommodation

Design an entity relationship diagram for the case, explaining any suppositions you deem essential for atered or non-catered accommodation at the centre.

  Sketch entity-relationship diagram of database table

Convert table to 3NF. Represent your answer in DBDL. Give table name and fields. Underline primary key. Sketch entity-relationship diagram showing all relationships.

  Create storyboards interactivity diagram object dictionary

Create storyboards interactivity diagram object dictionary and any essential scripts for an interactive program for customers of sunflower floral designs.

  Draw entity relationship model for project management system

A consultant is not necessarily a project leader, but they can only be project leader for one project. Draw an entity relationship model for the project management System.

  Explain importance of osi reference model

Discuss the importance of the OSI reference model for those responsible for network administration and network protocol development.

  Write down critical success factors for project manager

Write down the critical success factors for project manager? what skills must managers look for when hiring someone who would be successful in this job?

  Role of systems analyst in system development life cycle

What are the primary responsibilities of a system analyst? What skills do system analysts need? Discuss the role the systems analyst plays in the system development lifecycle.

  Approach to system development to define large project

Third approach to system development might be to define one large project which will use iterative approach to the SDLC. Briefly explain what you would include in each iteration.

  Design pseudocode and flowchart for swallowing a pill

Write a solution in pseudocode for swallowing a pill. Translate solution into flowchart. Write about which tool they like best and why? Which tool do they think would be easiest to learn?

  Evaluate efficacy of systems and process integration

You have been hired by the senior management team of a publishing house to evaluate the efficacy of systems and process integration with the organization's book distributor.

  Draw more than one relationship between physician-patient

Components of Treatment_Detail include Date, Time, and Results. Hint: Notice the admit and treat verbs. Did you draw more than one relationship between physician and patient? Why or why not? with ERD.

  Draw entity-relationship diagram students playing games

Draw an entity-relationship diagram for the following situation: Many students play many different sports. One person, called the head coach, assumes the role of coaching all these sports.

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