100%(1)1 out of 1 people found this document helpful
This preview shows page 1 - 3 out of 7 pages.
1 University of Maryland College Park Dept of Computer Science CMSC216 Fall 2013 Midterm III Last Name (PRINT): _____________________________________________________ First Name (PRINT):_____________________________________________________ University Directory ID (e.g., umcpturtle)_____________________________________ I pledge on my honor that I have not given or received any unauthorized assistance on this examination. Your signature: _____________________________________________________________ Lab TA (Circle One): Andrew(0103(10am) /0201(11am)) Brendan (0301(2pm)) Eric (0302(3pm)) Kevin (0304(1pm)) Luke (0303(4pm)) Steven (0101 (8am)/0102(9am)) Xu (0202(12pm)/0203(1pm)) InstructionsIf the answer to a question depends on the architecture involved, assume the question applies to behavior on linux.grace.umd.edu.This exam is a closed-book and closed-notes exam. Total point value is 200 points. The exam is a 50 minutes exam. Please use a pencil to complete the exam. WRITE NEATLY. You don’t need to use meaningful variable names; however, we expect good indentation.Grader Use Only #1 Problem 1 (Process Control) (90) #2 Problem 2 (Assembly) (110) TotalTotal (200) (200)
2 Problem #1, Process Control (90 pts) Write a program that computes the average of integer values in a file. For this problem: You will use only two processes: the parent and a child. The parent process will: oRead the name of the file with integer values to average. Use the message “Enter filename:”oCreate a child o