Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Step 1 : Build A Guest and Pet We want a Guest object. They are going to need an ID , a name, and age.
Step : Build A Guest and Pet
We want a Guest object. They are going to need an ID a name, and age. The ID should be auto
generated.
We also want a Pet object. The pet is going to need an ID a name, and a species. The ID should be auto
generated.
The Guest will have a Pet object. Note that not every Guest will have a Pet but every Pet must belong to
a Guest. Have a OneToOne relationship between Guest and Pet.
Step : Add and View
Create an add page for your Guest and Pet. I will leave it up to you how you will design this. Remember
that a Pet must be assigned to a Guest. Also some Guests do not have pets.
In a separate page create a view that will display all the Guests. Include a column or columns for pets
that will display Pet information if the Guest has a Pet.
Step : Default Records
Create at least default Guest and Pet records to test your application.
U
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started