วันพฤหัสบดีที่ 12 กุมภาพันธ์ พ.ศ. 2552

AFDMB - Assignment 2 Stack

วิชา Advanced File and Data Management for Business
Assignment 2 กำหนดส่งภายในวันที่ 6 กุมภาพันธ์ 2552

รายละเอียดของงาน : 2nd Homework assignment from Data Structure book

Exercise 1 on page 123


1. You can use a Stack to check whether a programming statement or a formulahas balanced parentheses. Write a Windows application that provides atextbox for the user to enter an expression with parenthesis. Provide aCheck Parens button that, when clicked, runs a program that checks thenumber of parentheses in the expression and highlights a parenthesis thatis unbalanced.

Exercise 3 on page 123

3. Design a help-desk priority manager. Store help requests stored in a textfile with the following structure:priority, id of requesting party, time of requestThe priority is an integer in the range 1–5 with 1 being the least importantand 5 being the most important. The id is a four-digit employee identificationnumber and the time is in TimeSpan.Hours, TimeSpan.Minutes,TimeSpan.Seconds format. Write a Windows application that, during theForm Load event, reads five records from the data file containing help requests,prioritizes the list using a priority queue, and displays the list ina list box. Each time a job is completed, the user can click on the job inthe list box to remove it. When all five jobs are completed, the applicationshould automatically read five more data records, prioritize them, anddisplay them in the list box.

Source Code Credit : http://www.mist4.com/community/viewtopic.php?t=158

ไม่มีความคิดเห็น:

แสดงความคิดเห็น