Employee wage data application

Assignment Help Programming Languages
Reference no: EM13753712

Employee Wage Data Application

Program 1) A small company is moving all its employee data to a computer. To make a smooth transition, a software program will permit the data entry personnel to enter data into a file. Design a program that writes the employees.dat file. The program should accept user input until the user indicates there are no more records to write. The Employees file contains four fields (see the Input File Description). The program will use the employee ID as criteria to determine a current employee. Validate the employee ID and employee wage fields per the requirements below. You may use any of the library functions presented in Chapter 6 of the textbook to assist in validation. Your validation routines should include error messages and allow the user to correct an input error. Use an array to hold the valid ID numbers. The Input File Description is the same for both programs.

Program assumptions:

Employee ID: May not be more than 10 characters long. The number must exist in the list of valid employee ID's.

Valid ID Numbers: RE49762358, PR156125, OF45461, RE68566547, PR156984

Employee Wage: The number may not be zero nor larger than $45.50.

Program 2) Design a program that reads the contents of the employees.dat file and prints all the data within it. Format the report as designated in the Printer Spacing Chart below. The last name should print first followed by a comma, and then the first name. On the same line, the ID number should appear separated from the name by a few blank spaces (you may use TAB). Add more white space before displaying the employee's wage. Use a priming read and the EOF function to determine when the last record has been read.

Reference no: EM13753712

Questions Cloud

A main cause for the rise of mass culture in the us : a main cause for the rise of mass culture in the United States?
Explain your experiences as an immigrant to america : Write a 700- to 1,050-word first-person description of your experiences as an immigrant to America in the late 19th or early 20th century.
Focus in conceiving and designing great products : Steve Jobs believed in Simplicity and in Focus in conceiving and designing great products. Discuss pros and cons
Create a 2d array of randomly generated ints : Write a complete Java class that will create a 2D array of randomly generated ints that of size 5 rows and 10 columns. Print the values of each cell to a 5x10 table.
Employee wage data application : A small company is moving all its employee data to a computer. To make a smooth transition, a software program will permit the data entry personnel to enter data into a file. Design a program that writes the employees.dat file
Identify the psychological and social factors : Identify the psychological and social factors, such as motives, perception, attitudes, personality, family, social class, and reference groups, that influence consumer behavior toward your product or service.
Analysis of tfc financial statements : Determine two (2) strategies that TFC could utilize to reach its expansion goals. You may, for example, consider your analysis of TFC's financial statements, as well as your knowledge of TFC's excessive cash position. Provide a rationale for your ..
Essay on queen victoria was most influential british monarch : Create an eight to twelve page essay arguing that Queen Victoria was the most influential British Monarch. Summarize her life both politically and personally.
Write a program to display the customer''s name : Write a program that prompts the salesperson for the name of the customer and the price of the textbooks sold to that customer.• The program should display the customer's name and the total compensation

Reviews

Write a Review

Programming Languages Questions & Answers

  Design the swing applet and html test file

You can download sound clips and graphics images from Internet to use in the program. Design the Swing applet named JPartyPlanner and HTML test file to run Swing applet.

  How you take care of these missed values

For the assignment, assume that the sensed data are be generated randomly either by a random number generator in your program or read a triplet every time from a file which is pre@generated).

  Implement sumpairs and sumof

Using SML writes a version of sumPairs that sums each component of the pairs separately, returning a pair consisting of the sumof the first components and the sum of the second components

  Write program to prompt user to enter a hex digit character

Write a program which will prompt user to enter ahex digit character ("0" ..."9" or "A" .."F") ,display it on next line in decimal, and ask user if he or she wants to do it again.

  Write program to take as input salesperson-s expected sales

Write program to take as input the salesperson's expected weekly sales and outputs the wages paid under each plan as well as announcing the best-paying plan.

  Write script in unix to monitor creation of pdf in directory

Write script in unix which monitors creation of .pdf or PDF file in current directory. Every minute it must display list of these filenames created after previous display a list.

  Arguments for and against allowing mixed-mode arithmetic exp

1). State your own arguments for and against allowing mixed-mode arithmetic expressions.

  Technique of multiplexed switching of analogue signals

Explain briefly from what you notice about the digital output values in (a) why a digital output value of an A/D converter is rarely the exact same digital value as the analogue input value.

  Show the graphics simulation of drinks machine

When a coin is clicked on with the mouse it is placed into the slot, it then operates the coin sensor IP0. This should operate OP0 (coin hold solenoid), which will hold the coin in place. At this point either a drink is selected or the coin rejected.

  Use-professional translator in creting website-other country

When and why would you need to use the services of a professional translator to help prepare your website for an audience in another country?

  Create program in pseudocode to compute amount of money

Create the program in pseudocode which computes the amount of money a person would earn over period of time if their salary is one penny first day.

  Create basic function which performs simple operation

Create basic function which performs simple operation. Write implementation for this function and then write second function which overloads the first. Describe how each of your functions could be invoked.

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