subject

// the two senior class homerooms at littleville high school// are having a fundraising drive for the prom. each time a student// solicits a contribution, a record is created with the// student's name and the value. two files have been created for// homeroom a and homeroom b. each file is sorted in contribution// value order from highest to lowest. this program merges the two files. start declarations string roomaname num roomavalue string roombname num roombvalue string bothfilesdone = "n" num high_value = inputfile roomafile inputfile roombfile inputfile mergedfile getready() while bothfilesdone = "n" detailloop() endwhile alldone()stopgetready() open roomafile "roomafile. dat" open roombfile "roombfile. dat" open mergedfile "mergedfile. dat" reada() readb() checkboth()returnreada() input roomaname, roomavalue from roomafile if eof then roomavalue = high_value endifreturnreadb() input roombname, roombvalue from roombfile if eof then roombvalue = high_value endifreturncheckboth() if roomavalue = high_value and roombvalue = high_value then bothfilesdone = "y" endifreturndetailloop() if roomavalue > roombvalue then output roombname, roombvalue to mergedfile reada() else output roomaname, roomavalue to mergedfile readb() endifreturnalldone() close roomafile close roombfile close mergefilereturn

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
A(n) is a small bit of text separated from the rest of the paragraph at the top of a column or page.
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Write a function so that the main program below can be replaced by the simpler code that calls function original main program: miles_per_hour = float( minutes_traveled = float( hours_traveled = minutes_traveled / 60.0 miles_traveled = hours_traveled * miles_per_hour print('miles: %f' % miles_traveled) sample output with inputs: 70.0 100.0 miles: 116.666667
Answers: 3
question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
You know the right answer?
// the two senior class homerooms at littleville high school// are having a fundraising drive for th...
Questions
question
Mathematics, 13.11.2019 03:31
question
Mathematics, 13.11.2019 03:31
question
Mathematics, 13.11.2019 03:31
Questions on the website: 13722359