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

  Describing arrow points to object in communication diagram

Why would you design a communication diagram instead of sequence diagram? Describe what the arrow which points to the object in a communication diagram signifies.

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  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.

  Explain tool used to infer the conceptual model

Another tool used to infer the conceptual model are the end user's forms. The form below will help you identify the entities and relationships.

  Draw an erd with cardinality notation

Review the Personal Trainer fact-finding summary and draw an ERD with cardinality notation. Assume that system entities include members, activities and services, and fitness instructors.

  Linear-time algorithm-find odd-length cycle-directed graph

Give a linear-time algorithm to find an odd-length cycle in a directed graph. You may NOT assume that the graph is strongly connected.

  Build an entity relationship diagram for hospital

Build an Entity Relationship Diagram(ERD) for the following hospital scenario. For your Patient entity show its attributes . Highlight the key attribute in red.

  Explain basic tools used by project manager

Explain the basic tools used by a project manager. Relate these tools to applications like Excel, MS project, and other packages which are used to automate project management processes.

  Draw class diagram for computing machine

Each problem reported by a distinct user is assigned a unique problem number (even if different users call in to report the same problem). Draw a class diagram that accurately reflects the system's requirements.

  Create class diagram for company has number of employees

Create a class diagram for following problem. A company has a number of employees. Attributes of employee include employeeID (primary key), name, address, and birthdate.

  Use ishikawa diagram to investigate causes of problem

A restaurant is not doing well. It is doing poorly as customer patronage is low. Use Ishikawa diagram to investigate the causes of the problem.

  Draw an e-r diagram for hospital staff

Draw an E-R diagram for the following situations. From discussions with hospital staff, reviewing hospital documents and studying existing information systems, the study team developed a list of business rules.

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