Design a flowchart of the program

Assignment Help Computer Engineering
Reference no: EM1335032

The Unit 4 Topic 2 Presentation contains pseudo-code for 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, using the pseudo-code from Unit 4 Topic 2 as a guide. For your convinence you can access this pseudo-code by selecting the following

Here is the code needed to complete IP4 assignment.

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

Reference no: EM1335032

Questions Cloud

Explain marketing- define consumer behavior : Explain Marketing- Define consumer behavior, and how it relates to marketing; Select and describe a purchase in detail using each of the 4Ps
Use of a new predictor : The base rate is high, the selection ratio is low, and the validity coefficient is high for the current predictor. What would you advise your boss and why?
Make a flowchart and pseudo-code for generating : build a flowchart and pseudo-code for generating a report that prints all of the movies, with all movies made by the same director on one page, as well as the number of movies by each director.
Explain how regular and lasting were the past trends : Explain how regular and lasting were the past trends. What are the chances of these patterns are changing. How accurate is the historical date that we use in time series.
Design a flowchart of the program : The Unit 4 Topic 2 Presentation includes pseudo-code for 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 i..
Significant operations management initiatives : One or more significant operations management initiatives. What benefits are already being realized?
Description of hrm : What are at least two contributions that HRM can make to the strategy table?
Explain a few starting ideas to write about united airline : Explain a few starting ideas to write about United Airline Marketing and Customer Value
Organization strategy : Organization strategy - Can you help me get started with this assignment?

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Make a `show me'' button that displays the number

Write down a GUI program that is a game to be played by the user. A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user. The program must randomly select a number within r..

  Inheritance is a method in object-oriented programming

Inheritance is a method in object-oriented programming that you derive new classes from existing classes in your code.

  How term "educational technology" covers a wide range

The word "educational technology" covers a wide range of tools and methods exploiting computers, networks and media for delivering knowledge. Compare virtual classes with minimum  two other delivery methods (TV-based courses, on-site company trai..

  Write down a simple c++ cash register program

The program must ask for the customer's first name and last name initials. Use 2 different variables, one for the first name and one for the last name.

  Why is an object (oop) a module

Why is an object (OOP) a module

  What role might the reticular activation formation play

What role may the "Reticular Activation Formation" play in the AROUSAL process.

  Write down a concise summary

Write down a concise summary of what you have learned about physical tamper-resistant devices.

  An example of the complexities involved in the case

We know there are problems of understanding natural languages as opposed to formal programming languages. As an instance of the complexities involved in the case of natural languages, identify situations in which the question "Do you know what tim..

  Describe the steps to complete the list

Promotion time is coming around the corner. In the last board meeting, your supervisor has asked someone to make a list of tables for a Fernandos Skate Shop customer orders.

  Write down a select statement that lists the studentid

I have tried there two queries, but I am told that I am not doing something right. Here are the criteria I used to write the queries and my current answers.

  Windows live id and skydrive account

Suppose there are 1 million books within your campus library. Approximate (to the nearest order of magnitude) how several bytes of the data there are in case all these books were stored online and accessible across the computer network.

  Show prompts for a customer to deposit

make a Bank Account class that will allow you to deposit, withdraw and check your balance as well as sign up for non-fee no interest bearing savings account as well as a fee-based account that accrues interest on a daily basis for savings accounts..

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