Question: IST 3 3 1 Lab: Calculate ( exactly ) a Dog s Age in Human Years The purpose of this lab. o Create a Dog

IST331
Lab: Calculate (exactly) a Dogs Age in Human Years
The purpose of this lab.
o Create a Dog class, using C#.
o Have a well designed window that is easy to understand.
o Calculate the number human years a dog is.
This is a age chart at the web site, below:
https://www.akc.org/expert-advice/health/how-to-calculate-dog-years-to-human-years/
Requirements
1. Calendar Control: A Date of Birth date. Pick a date when the dog was born.
2. Read-Only textBox showing the current date. Get this data from the computer.
3. A Calculate button.
a. When clicked, do the calculation.
4. A read-only display textbox.
a. This will hold the results of the calculation. Display the results as simply
number of years.
5. Validation: The current date must be more recent than the Birth Date entered. If
not display an error message using MessageBox.Show().
Window Design Looking for ...
1. This is a simple window design.
2. The controls are proportional with the size of the window.
3. Window has an appropriate title.
4. The window cannot be resized.
5. The window is a dialog box style of window (check the window properties).
6. Implement a color scheme. Make items more colorful, but still appealing.
7. For all, controls, set up the mouse hover event to show an explanation of what goes
in that particular control.
The Dog class
1. Make the Dog class a separate C# file, than the main window. Add it to the project.
2. The dog class shall have.
a. Class name =Dog.
b. At least 6 class fields.
c. A get() and set function for all 6 fields.
d. Two constructor: 1 a default (no params), the other with as many params as
fields).
e. A toString() method.
f. A static member called DogsAgeinhumanYears.
g. Determine The dogs age in human years.
h. Use the chart found on a website (listed above)
i. Since has many birthdays in a humans calendar year, you determine how old
in the partial year (we discussed this in class).
 IST331 Lab: Calculate (exactly) a Dogs Age in Human Years The

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!