Question: Create a Word document that contains: Analysis using IPO Task Hierarchy Chart Pseudo Code Tips for Final Project For # 1 Problem. / / The

Create a Word document that contains:
Analysis using IPO
Task Hierarchy Chart
Pseudo Code
Tips for Final Project
For #1 Problem.
// The pseudo-code for opening the output file and closing it.
Declare Outsream EmployeeData// EmployeeData is an output stream
Open EmployeeData with employees.dat// Connect the output stream to the file
Close EmplyeesData// Close it after wring all the employee records to the file
// The pseudo code for writing data to the output stream
// Example is writing the first record to the output stream (as same as writing to the file)
Write empID[0] to EmployeeData
Write fName[0] to EmployeeData
Write lName[0] to EmployeeData
Write wage[0] to EmployeeData
// The pseudo-code for writing a newline to the output stream
Write NEWLINE to EmployeeData
// The overall conrol sequence in the main()
declare Const numEmp =5// number of employees
// Create parallel arrays for employee record
declare String idNum[numEmp]
declare String firstName[numEmp]
declare String lastName[numEmp]
declare Real wage[numEmp]
declare Boolean continue = true
declare Integer count =0
// Array of valid employee IDs
declare string validID[numEmp]= RE49762358, PR156125, OF45461, RE68566547, PR156984
// open the output stream and connect it to the output file
declare OutputFile employeeData
Open employeeData with "employees.dat"
// Allows user to keep adding employee records until stop is requested.
while(continue)
{
// Getting employee ID, name, and hourly wage
idNum[count]= callgetID(validID, size)// pass validId array for input validation
callgetName(Ref String fName[count], Ref String lName[count])
wage = callgetWage()
// Writes employee record to file
// Writes one record to file at a time
write employeeData idNum[count], firstName[count], lastName[count], wage[count]
// Checks if user would like to add more employee records
continue =checkContinue()
if continue == true
count = count +1
}// End of while loop
// Closes the output file
Close employeeData
}// End of main()
// Dear students, your role is to write the pseudo code for the functions
// Functions you need to write
StringgetId(String validID, size)
// validID is the arrayName, size is the size of array
// This function returns a valid employee ID
// Thid function gets an employee data and validate it by doing the sequential search on validID // array
getName(Ref String fName[index], Ref String lName[index])
// get first name and last name. No validation needed
RealgetWage()
// Returns the wage. This function validates the wage. It should be greater than 0 and less than or equal to 45.50 dollars.
BooleancheckContinue()
// Asks the user whether to continue. Returns true or false
Tips for Final Project
For #2 Problem
// Pseudo-code for opening employees.dat
declare InputStream employeeData
Open employeeData with "employees.dat"
// Pseudo code for closing the input stream (input file)
close employeeData
// Pseudo code for reading data from the input stream
Read EmloyeesData employeeID
// Pseudo code for write a prompt, a tab or data to the report (screen)
Print Enployee ID:, Tab, Tab, Tab, employeeID
// Pseudo code for writing a string literal with center justification to the report (screen)
Print Center-Justity(Enployee Report)
// Follow the following control sequence in main() and add your code
main()
{
// Variable declarations
// Add code
// Opening employees.dat
// Add code
// Printing report header
callprintHeader()
// Reads and prints employee records until end of file is reached
while( NOT( eof(employeeData)))
{
// Read one record from employeeData
// Add code
// Prints one record
callprintRecord( idNum, firstName, lastName, wage)
}
close employeeData
}
// Prints header of the report in the required format
moduleprintHeader()
{
//pageCenterfunction: places string on horizontal center of page
//horizontalLinefunction: creates horizontal line across page
// Add code for this module
//
//
}
// Prints employee records in the required format
moduleprintRecord(string idNum, string firstName, string lastName, real wage)
{
// Add code for this module
//
}
Create a Word document that contains: Analysis

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!