Purchase Solution

A program which processes a client file (the master file) and a service file (the transaction file) by updating the clientTotal field in the client file according to the serviceTotal field in the service file

Not what you're looking for?

Ask Custom Question

A program which processes a client file (the master file) and a service file (the transaction file) by updating the clientTotal field in the client file according to the serviceTotal field in the service file.

Create a flowchart of the program
pseudo-code
start
perform initialTasks( )
while endOfFiles = false
perform mainModule( )
endwhile

perform terminate( )
stop

initialTasks( )
declare variables
clientRecord
num clientID
char clientName
char clientAddress
char clientPhone
num clientTotal
serviceRecord
num serviceID
char serviceDate
char serviceType
num serviceTotal
boolean endOfFiles = false
open files
sort serviceFile on serviceID
giving transFIle
close serviceFile
open transFile
print prtHeader
perform readClient( )
perform readService( )
if clientID = 999
if serviceID = 999
endOfFiles = true
endif
endif
return

readService()
read serviceRecord
if EOF
serviceID=999
endif
return

readClient()
read clientRecord
if EOF
clientID=999
endif
return

mainModule( )
if clientID = serviceID
clientTotal = clientTotal + serviceTotal
perform readService( )
else
if serviceID > clientID
write clientRecord
print clientRecord
perform readClient( )
else
print error message
perform readService( )
endif
endif
if clientID = 999
if serviceID = 999
endOfFiles = true
endif
endif
return

terminate( )
close files
return

Purchase this Solution

Solution Summary

Flowchart for pseudo-code is modeled.

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.