This Program Allows the User to Review Information About the British Monarchy

This Program Allows the User to Review Information About the British Monarchy

<p>This program allows the user to review information about the British monarchy. </p><p>1. Place a comment with your name at the top of the form and another at the top of the class. No other comments are needed. 2. Create a Monarch class that has the following properties Monarch Name Reign Start Reign End House Image File Name All properties are strings. 3. Have a constructor and sets and gets for all of the properties. 4. Have a function that returns the number of years on the throne (Reign End – Reign Start). If Reign End is blank as it would be for Elizabeth II, then use 2010 instead. 5. Create a form like that shown below. </p><p>6. Change the name of the Form in all of the appropriate places. 7. Change the font size on the Form to 12 pt. 8. Change the color of the form and tabpages to something other than default gray. 9. All coded controls must have self-documenting names (i.e. do not leave the names such as Button1). 10. When the form loads, read the file Monarchy.txt, which uses a comma as a delimiter to separate the Monarch properties. Use the data to instantiate and initialize an array of Monarch objects. The name of the monarchs should be placed in the listbox on the left of the first tabpage. (Do not sort the listbox). The names of the houses should be placed in a listbox on the left of the second tabpage. (There should be no duplications.) 11. When the user selects a name from the listbox on the first tabpage, that monarch’s image and information should be displayed to the right. 12. When the user selects a name from the listbox on the second tabpage, a list of the monarchs from that house will be displayed in a listbox on the right and a label below that will display the total number of years that the particular house reigned. </p><p>13. Have a button that prints the names from the selected house into a text file and names the file after the house (e.g. House of Tudor.txt) 14. On the third tabpage, place a scrollbar and a textbox across the top and a picturebox and label below. 15. The scrollbar’s values should range from 1485 to 2010. The textbox should display the scrollbar’s value (a year). Set the LargeChange Property to 1. 16. As the user scrolls, the program should determine which monarch reigned that year (i.e. the monarch’s whose Reign Start is less than or equal to the scrollbar’s value and whose Reign End is greater than or equal to the scrollbar’s value). That monarch’s image and information should be displayed in the picturebox and label. Note that you have to deal with Elizabeth II (the zeroth monarch) separately since does not have number for a Reign End value. </p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us