CIS 294 Homework Two Assigned September 18, 1997

 

As stated on the syllabus, all of the programming assignments combined are worth a total of 50% of your final grade. This assignment will be worth 25 points, or 16.7% of the 50% for all the assignments. This assignment is to be done individually.

 

Programming assignment: (25 points)

 

Due: October 9, 1997

 

User specifications:

 

Use VB to develop a Windows application that will allow the user to input a string (this string should allow for at least 25 characters). Give the user the following results: (you DO NOT need to display the results all at once, but at least allow the user to choose from all of the following options)

 

  1. output the string exactly as input rotated right by a user-defined number of characters (0 or more)
  2. example: ‘Hello world!’ rotated by 2 characters would be: d!Hello worl

     

  3. output the string exactly as input rotated left by a user-defined number of characters (0 or more)
  4.  

  5. output the string backwards
  6. example: ‘Hello world!’ backwards is: !dlrow olleH

     

  7. output the number of characters in the string
  8. example: ‘Hello world!’ has 12 characters

     

  9. output the string with all upper-case letters
  10. example: ‘Hello world!’ upper-case is: HELLO WORLD!

     

  11. output the string with all lower-case letters
  12. example: ‘Hello world!’ lower-case is: hello world!

     

  13. output the inverse of the current case of the string
  14. example: ‘Hello world!’ inverted is: hELLO WORLD!

     

  15. output the string in ascending ASCII order
  16. example: ‘Hello world!’ in ascending order is: (space)!Hdellloorw

     

  17. output the string in descending ASCII order
  18.  

  19. output the string with underscores in place of spaces

example: ‘This is a test’ becomes: This_is_a_test

 

Program requirements:

 

  1. You must center all forms on the screen using a common procedure.
  2.  

  3. You must use at least one user-defined FUNCTION and one user-defined SUB procedure.
  4.  

  5. You need to provide a way to exit the program gracefully.
  6.  

  7. You must implement at least one stack or queue abstract data type using arrays.
  8.  

  9. You must use proper naming conventions for forms and controls (see appendix B).
  10.  

  11. You must create an executable file (.EXE) and use the Setup Wizard to submit the assignment on disk(s) to me.

 

Points will be deducted for the following:

 

  1. Failing to meet the above specifications and requirements
  2.  

  3. Failing to meet the proper program submission/documentation requirements
  4.  

  5. It is up to you to make sure that the disks you give me will work when I install them on any other PC. This means that you must check your setup disks on another PC before you give them to me. Giving me disks that do not work is the equivalent of turning in an assignment late since I have no way to check your work. The usual late policy will apply (i.e. 80% of earned points, then 50%, then 0). If you are worried about this, make sure you include your source code on disk so that I can look at it and run it if your executable fails.

 

 

 

(Tip: In general, the way I grade an assignment is to go through the above specifications and requirements line by line and match them against your program. For each item that is not met, points will be deducted. This also holds for the program submission/documentation requirements.)