programmar

posted by .

/ Cooper College maintains a master file of students and credits earned
// Each semester the master is updated with a transaction file
// that contains credits earned during the semester
// Each file is sorted in Student ID number order

start
Declarations
num masterID
string masterName
num masterCredits
num transID
num transCredits

string bothDone = "N"
num HIGH_VALUE = 999999
InputFile master
InputFile trans
OutputFile newMaster
getReady()
while bothDone = "N"
detailLoop()
endwhile
allDone()
stop

getReady()
open master "studentFile.dat"
open trans "semesterCredits.dat"
open newMaster "updatedStudentFile.dat"
readMaster()
checkBoth()
return

readMaster()
input masterID, masterName, masterCredits from master
if not eof then
masterID = HIGH_VALUE
endif
return

readTrans()
input transID, transCredits from trans
if not eof then
transID = HIGH_VALUE
endif
return

checkBoth()
if masterID = HIGH_VALUE AND transID = HIGH_VALUE then
bothDone = "N"
endif
return

detailLoop()
if masterID = transID then
match()
else
if masterID > transID then
noMasterForTrans()
else
noTransForMaster()
endif
endif
checkBoth()
return

match()
masterCredits = masterCredits + transCredits
output masterID, masterName, masterCredits to newMaster
readMaster()
readTrans()
return

noMasterForTrans()
output "No master file record maches transaction ", transID
readTrans()
return

noTransForMaster()
output masterID, masterName, masterCredits to newMaster
readMaster()
return

allDone()
close master
close trans
close newMaster
return

  • programmar -

    The technical management team is ready to review your proposed design for BeT. The Banking e-Teller system allows bank customers to perform ATM transactions from their cell phone. This first generation system will allow customers to check balances, make remote capture deposits, and perform balance transfers to their checking or savings account.

    Gather your deliverables from the previous assignments:

    Problem analysis chart
    Structure chart
    IPO chart
    Coupling diagram
    Data dictionary
    Flowcharts for all modules in the structure chart
    Algorithm(s) in pseudocode describing the steps the program will perform

  • programmar -

    flowchartonfatgramcalories

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. statistics

    Sixty-four students in an introductory college economics class were askd how many credits they had earned in college, and how certain they were about their choice of major. At a = .01, is the degree of certainty independent of credits …
  2. Math

    Students at ACC must earn 90 credits to obtain an Associate’s degree. Three students find that they all have a GPA of 3.3 even though they do not have the same number of credits. The students hope to increase their GPAs to a 3.8 …
  3. Algebra

    F=n/15, where n is the total amount of credits in which students enroll for a given semester. If students on a campus register for a total of 52425 credits, how many full-time equivlant students does the campus have?
  4. window XP

    Which of the following is true of the Encrypting File System (EFS)?
  5. Computer

    After writing the program of Exercise 17.7, write a simple program to create some test data for checking out the program. Use the following sample account data: Master file Account number Name Balance 100 Alan Jones 348.17 300 Mary …
  6. Programming

    2. Then it should prompt the user for the input file name of the file containing the data to sort. 3. If the program can't open the file or if no file name is entered (^d or ^z is entered for EOF), it should print an error message …
  7. pre-algebra

    1. Jaron is downloading a file. The size of the file is 3200 KB. It takes 3 minutes to download the first 1200KB of the file. If the file continues downloading at the same rate, how many more minutes will it take to finish downloading?
  8. computer programming

    Boardman College maintains two files—one for Sociology majors and another for Anthropology majors. Each file contains students' ID numbers, last names, first names, and grade point averages. Each file is in student ID number order. …
  9. algebra

    An “A” is considered 4.0, a “B” is 3.0, a “C” is 2.0, a “D” is 1.0, and an “F” is 0. In your first semester you received the following grades. Calculate your grade point average English = credits 3.0 Grade = C Biology …
  10. Microsoft word

    Suppose you want to delete an existing file from within Word. What would you do?

More Similar Questions