Create a flowchart of the program

Assignment Help C/C++ Programming
Reference no: EM13945576

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: EM13945576

Questions Cloud

Equipment for without having to recognize : the maximum selling price that Lorenzo could sell the equipment for without having to recognize any Section 1245 ordinary income
Academic comparison and contrast essay : Refer to Ch. 1 & 2 of Wordsmith for prewriting and writing process strategies and to Ch. 10 of Wordsmith for examples of writing using comparison and contrast.
Exit velocity and mass flow rate of hydrogen : A large rocket engine delivers hydrogen at 1500°C and 3 MPa to a nozzle with an exit pressure equal to the ambient pressure of 54 kPa. If the thrust of the rocket is 2 MN what is the exit velocity and mass flow rate of hydrogen? (use k = 1.41 and ..
What each category mentioned above reveal about a company : Discuss what each category mentioned above, reveal about a company being analyzed. Give examples of ratios that are affected by inventory
Create a flowchart of the program : Create a flowchart of the program, using the pseudo-code from Unit 4 Topic 2 as a guide.
What would you estimate the scrap rate : What would you estimate the scrap rate to be using a 6-month moving average?
How do i created the pseudocode : Using the UML diagram and variable list , create Pseudocode for the program.
State intelligently whether you think : what musical "concept" is illustrated by the selection (e.g. musical idea, ensemble, solo performer, variation, etc.), and state intelligently whether you think the selection was effective in doing so
Governing equations of motion for a two degree : The purpose of this project is to derive the governing equations of motion for a two degree of freedom (planar) gantry-type robot that is commonly called an H-Bot (Fig. 1).

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Enter the temperature at noon of each of the five days

Write a program that allows each employee to enter the temperature at noon of each of the five days and displays the highest, lowest, and average (mean) temps.

  Program that calculates and prints average of several grades

Write a C program that calculates and prints the average of several grades entered by the user. The program should first prompt the user to enter the number of grades to process (at least 2 grades must be entered by user!)

  Implement program which performs basic arithmetic operation

Write a complete C program that prompts for two integer numbers (one number at a time, or both at once, as you wish), reads them into two variables of type int find then calculates and prints the following five values

  What difference between sequential access and direct access

What is the difference between sequential access and direct access? What do the seekg() and seekp() functions do? What do the read() and write() functions do?

  Write a program in c that will find smallest value

Write a programe c that will find the smallest, largest and average values in a collection of N numbers.Get the value of N before scanning each value in the collection of N numbers.

  What are c library functions gets and atoi

What are 'C' library functions gets and atoi and scanf used for and submit a flowchart or list of processing steps that can be used as a basis for the program.

  Determine the position in the x-y plane

Every circle has a center and a radius. Given the radius, we can determine the circle's area and circumference. Given the center, we can determine the position in the x-y plane.

  Determine the largest of these ten values

Write a small loop that will determine the largest of these ten values. When the loop completes, the largest number will be in accumulator

  Program that stores information for date-time objects

Derive class WeekDay from class DateTime such that WeekDay::display() will display local date time using values from the parameters and the corresponding weekday.

  Discuss the differences concerning how a program would acces

Discuss the differences concerning how a program would access the members of objects that have been declared as an array of objects

  Using mingw compiler on windows

Need to make a code in c++ and.  using MinGW compiler on windows. One last thing please make a makefile.

  Program consisting of multiple objects

Write a program consisting of multiple objects which interact with each other by following appropriate design practices

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