The Instructor's Portal
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Exercise 5

+54
tiffanycarabuena
ikoymaster
padibergonia
Chad Festejo
Jake Darren T. Colina
Dianne Jean Dumdum
Calvin John Dalino
Mark Bryan B. Gonzales
Sherwin_Elioreg
Michael Anthony Jandayan
rowellpines
Marlie E. Sisneros
Russel John L. Serrano
arnulfotaghoy
florenzie_palma
Julie Ann R. Monteroso
Godofredo C. Pisngot Jr.
vinceilagan
Xaviery Dwight Noval
Genne Fernandez
rancisolanobero
Nesscel Ann Marie Calara
irwin rod adesna
irelene cosicol
exzellrobelo
oberorancismichael
merafehangad
jezrelle larubes
cherilyn lagare
kevin.cris.ramos
willypedroso
Jovanne Nick L. Cacayan
jennifer conta
Marybert V. Lee
Jevelyn C. Labor
Mhel Sheryll Jala
KatrinaAnirtak
April Kaye Bestre Bigonte
Phoebe Angelie Gallardo
Cariza Joy Ensoy
Allan Gregor Gepulla
Mary Claire P. Avila
dudzcomz
Alaina Simbal
Ma. Monique Asuque
Ruchan Alangilan
juvilyn consejo
jonalyn sanchez
ericpapasit
Gwapong_Tao_Edward_Baylon
Frenzess-Joy H. Elman
abigail_duhaylungsod
george101_2007
Admin
58 posters

Page 2 of 3 Previous  1, 2, 3  Next

Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  kevin.cris.ramos Sat Mar 12, 2011 7:56 am

A.

Exercise 5 - Page 2 65980485


[PROGRAMMER A]

Exercise 5 - Page 2 11846621f


[PROGRAMMER B]



B. On my own understanding to the context diagram, the Programmer A required a hard coding to give satisfactory of the process while Programmer B can use a simple code looping.

kevin.cris.ramos

Posts : 5
Join date : 2010-11-24

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  cherilyn lagare Sat Mar 12, 2011 8:35 am

A.Sketch out the general structure of each program.
Exercise 5 - Page 2 Exer5



B. Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.

In programmer A, it uses the simple programming algorithm that waits for and dispatches events or messages in a program. It works by polling some internal or external "event provider", which generally blocks until an event has arrived, and then calls the relevant event handler. While in programmer B, it uses a long term of coding where the reader cannot trace or map out the codes easily.
cherilyn lagare
cherilyn lagare

Posts : 5
Join date : 2010-11-23
Location : Tagum /Davao City

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  jezrelle larubes Sat Mar 12, 2011 9:09 am

Exercise 5 - Page 2 Prog1


Exercise 5 - Page 2 Prog2



B.
Based from the two approaches made in creating the event, I prefer to understand the loop-style programming of programmer a. It is much easier to understand than the callback structure that the programmer b used. Callbacks style of programming are more complex than the other one. Consequently, both programmers do good in the sense that they uses event handlers for less complexity.

jezrelle larubes

Posts : 6
Join date : 2010-11-25

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  merafehangad Sat Mar 12, 2011 10:10 am

Exercise 5 - Page 2 13760483



merafehangad

Posts : 5
Join date : 2011-03-12

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  oberorancismichael Sat Mar 12, 2011 10:25 am

Exercise 5 - Page 2 43981922


oberorancismichael

Posts : 6
Join date : 2011-03-12

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  exzellrobelo Sat Mar 12, 2011 1:54 pm

a)
Exercise 5 - Page 2 Sketchhci



b) Maybe a problem may occur if a user misinterprets the buttons displayed in the interface. The programmer may attempt to change the interface if ever they have identified these problems.
exzellrobelo
exzellrobelo

Posts : 5
Join date : 2011-03-12

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  irelene cosicol Sat Mar 12, 2011 2:26 pm


The program of Programmer A loops and stops when it encounter an event. This style uses short-length of codes thus said to be manageable but causes more errors during runtime.
The program of Programmer B waits for an event to happen. And since it is possible to have two events happen at the same time, runtime errors are inevitable.

irelene cosicol

Posts : 5
Join date : 2011-03-12

Back to top Go down

Exercise 5 - Page 2 Empty exer 5

Post  irwin rod adesna Sat Mar 12, 2011 4:00 pm

a.)

Programmer A: Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List

Programmer B: Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List

b.)

Programmer A: uses the event-loop style which is very easy to manage and understand and this styles has short-length of codes.

Programmer B:uses the long-length coding which is hard to trace and manage.

irwin rod adesna

Posts : 5
Join date : 2011-03-12

Back to top Go down

Exercise 5 - Page 2 Empty exercise 5

Post  Nesscel Ann Marie Calara Sat Mar 12, 2011 4:12 pm

a. Programmer A: Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
Programmer B: Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List

b. Programmer A used simplified coding by using the event-loop style of program where this style is coded shorter and easy to manage while Programmer B used a style that is longer to code and harder to read but has the ability to manage events better.

Nesscel Ann Marie Calara

Posts : 5
Join date : 2011-03-12

Back to top Go down

Exercise 5 - Page 2 Empty execisenumberfive

Post  rancisolanobero Sat Mar 12, 2011 4:44 pm

a.
Exercise 5 - Page 2 Flowchart




b. i guess, it is very advantage for the programmer A, for he uses a short coding process than programmer B. Programmer A uses event loop style to shorten or even restore the process.

rancisolanobero
rancisolanobero

Posts : 5
Join date : 2011-03-11

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Genne Fernandez Sat Mar 12, 2011 7:48 pm

a.)
- Programmer A
https://2img.net/r/ihimizer/i/programmera.jpg/

-Programmer B
https://2img.net/r/ihimizer/i/programmerb.jpg/

b.)
Programmer A- He used a short coding style or event loop style which is very advantageous to his part. Because the codes are simplified.
Programmer B- Used a long method in coding.

Genne Fernandez

Posts : 5
Join date : 2011-03-11

Back to top Go down

Exercise 5 - Page 2 Empty EXERCISE 5

Post  Xaviery Dwight Noval Sat Mar 12, 2011 9:40 pm

A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.
Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.

(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.


A:
a.) Get Event > Checks events from queue for event identification and Execute event handler > Save Confirmation or Open List
b.) Get Event > Process events to identify proper event handler --> Save Confirmation or Open List

B:
Programmer A had chosen event loop style, which is as all we know is structured and short. The problems is that it always loop until it found something like an event which would certainly cause more runtime resources as it takes its process.
Programmer B on the other hand, had chosen to code it to a more complex style of coding. Now, because of it, it becomes more complicated and unlike the first style of coding, it is harder to trace. On the kind of coding for Programmer B, it waits for something to happen. Two synchronous events might happen and might cause runtime problems. Comparing it to the first style of coding, the error is much more awful.

Xaviery Dwight Noval

Posts : 5
Join date : 2011-03-09

Back to top Go down

Exercise 5 - Page 2 Empty Ass-Five

Post  vinceilagan Sun Mar 13, 2011 4:10 am

Exercise 5 A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.

A said dialogue box is indicating an overview of what the user may want occur in the system by the interaction. Once this has been detected and presented to the user in the dialogue box, the only action that the system allows the user is to acknowledge the message and dismiss the dialogue box with yes, no, and cancel. The system prompts the user dialogue, with good reason. The preemptive nature of the dialogue box is to ensure that the user actually notices that there was an occurrence or happening. Presumably, the only event that will be produced in such manner are ones which the user must know about before proceeding, so the preemption is warranted. But sometimes dialogue boxes are not used to indicate errors and they still prevent the user from performing some actions that they might otherwise wish to perform but sometimes asks for verification and authentication of the event that is being process. The dialogue box might be asking the user to fill in some information to specify parameters for a command. If the user does not know what to provide, then they are stuck. A lot of the time, the user can find out the information by browsing through some other part of the system, but in order to do that they must exit the dialogue box (and forfeit any of the settings that they might have already entered), find out the missing information and begin again.
vinceilagan
vinceilagan

Posts : 5
Join date : 2011-03-10

Back to top Go down

Exercise 5 - Page 2 Empty Exercise 5

Post  Godofredo C. Pisngot Jr. Sun Mar 13, 2011 11:57 am

A:
a.) Get Event > Checks events from queue for event identification and Execute event handler > Save Confirmation or Open List
b.) Get Event > Process events to identify proper event handler --> Save Confirmation or Open List

B:
Programmer A had chosen event loop style, which is as all we know is structured and short. The problems is that it always loop until it found something like an event which would certainly cause more runtime resources as it takes its process.
Programmer B on the other hand, had chosen to code it to a more complex style of coding. Now, because of it, it becomes more complicated and unlike the first style of coding, it is harder to trace. On the kind of coding for Programmer B, it waits for something to happen.

Godofredo C. Pisngot Jr.

Posts : 5
Join date : 2011-03-13

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Julie Ann R. Monteroso Sun Mar 13, 2011 10:44 pm

Exercise 5 - Page 2 94994380

Exercise 5 - Page 2 34588410



b.) Programmer A used a short coding style that processes in a short way which is called the event loop style and is better than the style used by the programmer 2- something that is complicated.

Julie Ann R. Monteroso

Posts : 5
Join date : 2011-03-12
Age : 32
Location : Tagum City

Back to top Go down

Exercise 5 - Page 2 Empty from: Beverly L. Rabaja

Post  florenzie_palma Tue Mar 15, 2011 2:31 am

Exercise 5 - Page 2 47219106



Exercise 5 - Page 2 53199928



Programmer A has an effective flow of controls and has a determined flow of events while Programmer B has made the program more complex and unorganized.

* cenxa sir, lahi ang account na akung gigamit, di man gud ku kasulud.. wew..
florenzie_palma
florenzie_palma

Posts : 7
Join date : 2010-12-01

Back to top Go down

Exercise 5 - Page 2 Empty Exercise 5

Post  arnulfotaghoy Tue Mar 15, 2011 4:46 pm

A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.

In typing the file name in the prompt box, there will be a save button underneath it, and if you’ve input the chosen file name and click on save, the data that you want to save will be redirected to the path which will be the new location of the data that you want to save. There will also be the ‘list’ buttons where you can access the datum stored in the hard drive; once you’ve clicked on save, there will be a prompt box where the user will be asked to confirm the saving status of the data.





arnulfotaghoy

Posts : 5
Join date : 2011-03-15

Back to top Go down

Exercise 5 - Page 2 Empty Exercise 5

Post  Russel John L. Serrano Tue Mar 15, 2011 8:08 pm

a.) Programmer
Exercise 5 - Page 2 Russeljohn


b.) Programmer A code it self is smooth and easy to manage and understand, while the Programmer B has a complex code it may cause a hard to manage specially when there is a problem comes.

Russel John L. Serrano

Posts : 5
Join date : 2011-03-12

Back to top Go down

Exercise 5 - Page 2 Empty Exercise 5

Post  Marlie E. Sisneros Tue Mar 15, 2011 8:54 pm

a.)
Exercise 5 - Page 2 Marliesisneros


b.)
Programmer A - in terms of Coding the program is easy to understand and nice but it has a bit of complexity in terms of the flow of the structure.

Programmer B - in terms of Coding the program is hard and complex specially when there is an error comes it is hard to trace and manage but in terms of the flow of the structure it is smooth and easy.
Marlie E. Sisneros
Marlie E. Sisneros

Posts : 5
Join date : 2011-03-15
Age : 35
Location : here..

Back to top Go down

Exercise 5 - Page 2 Empty ASSIGNMENT 5

Post  rowellpines Tue Mar 22, 2011 1:09 am

A.
https://www.facebook.com/album.php?aid=44263&id=100000054516576#!/photo.php?fbid=209078452437304&set=a.178466598831823.44263.100000054516576&theater" alt="" />


Exercise 5 - Page 2 Photo.php?fbid=209078449103971&set=a.178466598831823.44263

B.
Of course, PROGRAMMER A, uses the analogy of LOOPING, where in after the confirmation it automatically back to the first step of the operation, and that the good thing of the part FIGURE A. While Programmer B, is very static in FUNCTION, wherein it FOLLOWS a fixed type of DATA FLOW.
rowellpines
rowellpines

Posts : 5
Join date : 2011-03-11
Age : 33

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Michael Anthony Jandayan Thu Apr 07, 2011 12:10 pm


Programmer A: After the user has confirmed to save his/her file, the program informs the user that the file has been saved and then it goes back to the save interface once again.

Programmer B: After the user has confirmed to save his/her file, the program informs the user that the file has been saved and then it exits the save interface.

Michael Anthony Jandayan

Posts : 5
Join date : 2011-03-08

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Sherwin_Elioreg Thu Apr 07, 2011 12:25 pm

a. Programmer A: Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
Programmer B: Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List

b. Programmer's A style of coding is much more complicated compared to programmer's B style of coding. Programmers A style can give ease and comfort to the user because it can be manage easily but the only problem is that it will be prone to errors because it has no notifiers unlike programmers B style, whenever the programs detects an error/s it will alert and notify the user that there is something wrong...

Sherwin_Elioreg

Posts : 5
Join date : 2010-11-23

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Mark Bryan B. Gonzales Thu Apr 07, 2011 12:31 pm

Admin wrote:A designer described the following interface for a save operation.
The users initially see a screen with a box where they can type the file name. The screen also has 'list' button that they can use to obtain a listing of all the files in the current directory (folder). This list appears in a different window. When the user clicks the 'save' button the system presents a dialogue box to ask the user to confirm the save.

Exercise 5 - Page 2 8-5-1
Exercise 5 - Page 2 8-5-2

Two programmers independently coded the interface using two different window managers. Programmer A used an event-loop style of program whereas programmer B used a notifier (callback) style.

(a) Sketch out the general structure of each program.
(b) Highlight any potential interface problems you expect from each programmer and how they could attempt to correct them.

answer:

(a) 1.) Get Event --> Checks events from queue for event identification and Execute event handler --> Save (Confirmation) or Open List
2.) Get Event --> Process events to identify proper event handler --> Save (Confirmation) or Open List

program A


Exercise 5 - Page 2 Programax


(b) I think Programmer A used the practical coding by using the event-loop style of program, since this style has short-length of codes and can be easily managed, whereas the Programmer B used the lengthy-style of coding and is very difficult to manage and trace. There could also be problems when it comes to callback functions.

program B

Exercise 5 - Page 2 Programb
Mark Bryan B. Gonzales
Mark Bryan B. Gonzales

Posts : 5
Join date : 2011-03-11

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Calvin John Dalino Thu Apr 07, 2011 12:41 pm

(a) First, when you enter your name the program reads it and save it in the saving area. When the user chose to search the name the program reads and search the database if the name is their and if found it will give all the information.

(b) I think Programmer A used the practical coding by using the event-loop style of program, since this style has short-length of codes and can be easily managed, whereas the Programmer B used the lengthy-style of coding and is very difficult to manage and trace. There could also be problems when it comes to callback functions.

Calvin John Dalino

Posts : 5
Join date : 2011-04-07
Age : 34

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Dianne Jean Dumdum Thu Apr 07, 2011 12:45 pm

a. When an event occurs, the event loop takes care of dispatching that event to the relevant code in order to handle the event. While there may be some layers of library or framework between your application code and the low-level event handler, ultimately it will usually be some part of your application code that gets invoked in response to the event.

Please follow the link below for diagram/sketch

https://2img.net/r/ihimizer/i/hci1.jpg/


b. Programmer A uses a better kind of programming algorithm using event loops since it is easier to do and understand "for me". Event Loop provides more detailed, fine grained approach because it read events from an event queue, interpret an "event control string" to identify the event needed and it provides ability to run event handler. On the other hand, programmer B using a callback style uses the more composite one but Callbacks provide structured environment since it can build a table linking event with event handlers. Callbacks simplified the even processing.

Please follow the link for the diagram or sketch.

https://2img.net/r/ihimizer/i/hci2.jpg/

Dianne Jean Dumdum

Posts : 5
Join date : 2011-03-11

Back to top Go down

Exercise 5 - Page 2 Empty Re: Exercise 5

Post  Sponsored content


Sponsored content


Back to top Go down

Page 2 of 3 Previous  1, 2, 3  Next

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum