Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago