`

SSD04 Exercise02 个人解答

阅读更多

UAR Components

In course section 1.3.3 How to Write a Usability Aspect Report (UAR) you will learn about the major components of a UAR. For this exercise, you are to create an application that will help you memorize what each component of a UAR should contain.

The application you create should feature two functions: 1) when a user selects a UAR component by number, the application should display a description of the component’s contents; and 2) when a user specifies a keyword or phrase, the application should search the displayed description for occurrences of that keyword or phrase and display a count of the number of occurrences and the positions of first and last occurrences, in terms of an offset—number of characters from the beginning of the description

Description

Following the design tips and programming guidelines found in the Zak textbook (see pages 747-50), you should create the application to consist of the elements below (see the example interface above):

  • Seven label controls listing the UAR components;
  • A text box control for displaying as output the text of selected UAR component content descriptions.  Again, following the GUI design and programming guidelines (Zak, pages 747–50), set the control’s ReadOnly property to True , TabStop property to False , MultiLine property to True , and ScrollBars property to Vertical ;
  • An identifying label control describing the purpose of the output text box (for example, the "UAR component description:" label in the above example interface);
  • Two text box controls to accept user input: one text box to accept the list number of the UAR component content description to be displayed (Note that for this text box valid input will consist of only one numeric character); and one text box to accept a keyword to be searched for (Note that the search function should not be case-sensitive);
  • Two identifying label controls, each one describing the purpose of one of the input text boxes;
  • Two command buttons, one to initiate the display function and other to initiate the search function (see the "D isplay" and "S earch" buttons on the example interface above), be sure to provide access keys for these command buttons;
  • Two label controls for displaying the keyword’s first and last positions (Note that when a search is not performed [or when a keyword is not found], these controls should not be visible);
  • An identifying label acting as a heading for the labels displaying the keyword’s first and last positions (refer to the "Found at:" label on the above interface);
  • An "Exit" command button.

Scenario

A. Display a description of a selected UAR component’s contents

  • When a user enters a valid UAR component list number and clicks the "Display" button, the application displays a description of this component’s contents in the output text box.
  • When a user enters an invalid input value or enters no value at all and clicks the "Display" button, the application informs the user of the error in a message box, which prompts them for a value from the range of valid of numbers (for example, "Please enter a value 1 through 7") and, when the user has input a value, highlighting the invalid input.

B. Search a displayed UAR component content description for a keyword or phrase

  • When a user enters a keyword and that keyword is present in the content description currently displayed in the output text box, the application should display
    • The position of the first occurrence of the keyword (an offset in number of characters from the beginning of the description); and
    • The position of the last occurrence of the keyword (an offset in number of characters from the beginning of the description);
    • A message box indicating the number of occurrences of the keyword in the content description and asking if the user wants to search the same description for a different keyword.
  • When a user enters a keyword and that keyword is not present in the content description currently displayed in the output text box, the application should display
    • A message box informing the user that the string was not found and asking if the user wants to search same description for a different keyword.
  • When a user clicks the "Search" button but has not entered a keyword, the application should
    • Display a message box prompting the user to enter a keyword; and
    • Direct the user where the keyword should be entered after the user acknowledges the prompt.
  • If a user wants to search the same description for a different keyword, the application should highlight (that is, select) the keyword previously entered in the input text, directing the user where the new keyword should be entered;
  • Otherwise, when the user does not want to search the same description, the application should clear the contents of both input text boxes and direct the user how to start the search process over again;
  • When a user enters a keyword and no UAR component content description is currently displayed, the application should
    • Display a message box prompting the user to select a UAR component content description to be searched; and
    • Direct the user how to continue using the application—that is, if no component number is entered, the application should set focus to the default text box; otherwise, the application should set the focus to the "Display" button.
  • The application should close when user clicks the "Exit" button.

Task Steps

  1. Code the application according to the specifications and scenarios outlined above.
  2. Test your application with all possible combinations of user input—or lack of input.

Resources

  • An executable like the application you are asked to create, click UARComponents.exe . (From Internet Explorer, select the "Run this program" option of the "File download" dialog box that appears—from Netscape, save and double-click the file UARComponents.exe.)
  • UAR component content descriptions found in section 1.3.3 How to Write a Usability Aspect Report (UAR) . Feel free to copy and paste them.
  • The GUI design and programming guidelines found in the Zak textbook on pages 547–50.

Submission

Submit the following files:

  • A project archive named UARComponents.zip
分享到:
评论
1 楼 qianjigui 2008-10-20  
Feedback for Exercise 2: UAR Components (v2.0)
Total Score: 100/100
Good work.

相关推荐

    SSD06 Exercise02 个人解答

    【标题】"SSD06 Exercise02 个人解答"主要涵盖了两个关键概念:源码分析和工具使用。这可能是某个课程或项目练习的一部分,其中作者Qianjigui分享了他在解决特定编程问题或实现某功能时的经验和理解。 在源码分析...

    SSD04 Exercise04 个人解答

    【标题】"SSD04 Exercise04 个人解答"主要涵盖了两个关键知识点:源码理解和工具使用。在这个练习中,作者分享了他们对于特定编程问题的解决方案,可能涉及编程语言的深入理解、代码调试技巧以及如何有效地利用开发...

    SSD04 Exercise06 个人解答

    标题“SSD04 Exercise06 个人解答”暗示了一个编程练习或项目,其中涉及到对Microsoft Calendar Control 10.0的使用。这个控制组件通常用于Windows应用程序开发,特别是使用Visual Basic 6 (VB6) 或其他支持ActiveX...

    SSD04 Exercise03 个人解答

    【标题】"SSD04 Exercise03 个人解答"主要涵盖了两个关键概念:源码分析和工具使用。这可能是某个课程或项目中的一个练习,其中"SSD04"可能代表课程编号或者阶段,而"Exercise03"则指示这是第三次实践任务。解答者...

    SSD06 Exercise04 个人解答

    标题 "SSD06 Exercise04 个人解答" 暗示这可能是一个关于软件开发或编程练习的解答,特别是涉及到性能分析或者优化的环节。描述中的 "NULL" 没有提供额外的信息,但我们可以从标签 "源码" 和 "工具" 中推测,这个...

    SSD04 Exercise01 个人解答

    这是我的解答 博文链接:https://qianjigui.iteye.com/blog/248917

    SSD04 Exercise08 个人解答

    【SSD04 Exercise08 个人解答】 在这个学习实践中,我们主要关注的是与源码分析和工具使用相关的知识。这个题目可能源自于一个软件开发或计算机科学的课程,其中"SSD04"可能是课程代码,而"Exercise08"指的是第八个...

    SSD06 Exercise05 个人解答

    【标题】"SSD06 Exercise05 个人解答"主要涵盖了两个关键知识点:源码分析和工具使用。在这个练习中,作者分享了他对某个特定编程问题或项目的解答,这通常涉及深入理解代码的运作机制,包括算法、数据结构以及编程...

    SSD04 Exercise05 个人解答

    综上所述,SSD04 Exercise05 个人解答不仅仅是完成了一个具体的编程练习,更重要的是,通过这个过程,我学习到了如何有效地阅读和分析源码,如何深入理解编程语言特性和算法的运作,以及如何熟练运用开发工具来提升...

    SSD06 Exercise03 个人解答

    标题“SSD06 Exercise03 个人解答”暗示了一个编程练习或课程作业,其中可能涉及 SSD(固态存储)相关的技术,而 Exercise03 可能是该系列练习中的第三个部分。描述提到的“Ubuntu8.04+Gcc+Gdb”是一个古老的Linux...

    SSD06 Exercise01 个人解答

    NULL 博文链接:https://qianjigui.iteye.com/blog/256678

Global site tag (gtag.js) - Google Analytics