Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question Consider the following class diagram. Picture # title: string + setData(title); void + displayTitle (void): void Photograph - photographerID: int - camera: string +

Question

Consider the following class diagram.

Picture

# title: string

+ setData(title); void

+ displayTitle (void): void

Photograph

- photographerID: int

- camera: string

+ Photograph (title, photographerID, camera)

+ ~ Photograph ()

+ setData (title); void

+ setPhotographerID (photographerID); void

+ setCamera (camera); void

+ displayTitle (void): void

+ displayPhotographer (void): void

+ displayCamera (void): void

Figure 1

You are requested to write code for the following tasks based on the class diagram given above.

Create a Picture class. The Picture class should contains:

Variables

Functions

Create a Photograph class. The Photograph class should contain:

Variables

Functions

Constructor

Destructor

Create a form that allow user to enter the Photograph details. Write code to perform form validation as follows:

Use appropriate input types to capture the title, photographerID and camera from the user.

Alert the user if any of the data fields are empty.

Use HTML pattern to ensure the photographerID input must be minimum of three and maximum of five digits data.

Use HTML pattern to ensure the camera input must be minimum of three and maximum of five-alphanumeric data.

Create an object of Photograph Class. Assign the user input to the Photograph object.

Create a database named Photograph. Insert the user input into the table named Photograph. You need to insert two photograph records into the table.

Present the two records in a table. Display the title, phtographID and camera values of the Photograph records. Apply the JQuery fadeIn and fadeOut effects in your table design.

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_2

Step: 3

blur-text-image_3

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions