WAP to illustrate difference between static data members and non static data members .
5.create a registration form and display the details in the other PHP page.
Create a mock registration form for an online retail web site. the form should output the appropriately formatted contents of a valid form and thank the user for submitting. An invalid form should be returned to the user indicating the problems with the submitted data.
Username-max15 char, letters and number only
Password – minimum length 4 char
Email – valid email structure
Date of birth – a customer should be at least 18 years of age
Name- maximum 50 char
Acceptance of terns & conditions
Their choice regarding email promotions to be received if an email address was given
Write a program that uses two input statements to get two words as input. Then, print the words on one line separated by a space. Your program's output should only include the two words and a space between them.
Hint: To print both words on one line, remember that you can concatenate (add) two phrases by using the + symbol. Don't forget that you'll need to add a space between the words as well.
Sample Run
Enter a word: Good
Enter a word: morning
Good morningAt the start of your program, your code will open and read values in from a le data.txt.
The le will have an unknown number of lines. You are required to read this data, line
by line, into a 2D dynamic array of strings.
The format of the line is as follows:
1,a,b,c,d
Each line starts with an ID, which is an int, and then will be followed by an unknown
number of strings separated by commas. Each string in the line is associated with the ID
of the line.
Your 2D dynamic array should be sized to exactly the size of the number of items in each
line. Each line will have at least the ID and 1 item.
Once the items are stored in the array you need to print out the array in ascending order
based on the order IDs in the following format:
ID,a,b,c
An example:
4,spanner,wrench,hammer
Terminate each line of output with a newline. Remember to deallocate any memory you have used at the end of your program.
The following libraries are allowed: iostream, fstream, string, sstream
Declare Static members as public and Show the behavior change of those members by writing relative member functions.Declare Static members as public and Show the behavior change of those members by writing relative member functions.
A player need to be selected as vice-captain of a sports team on the basis of his wins and losses over his career. Hence positons remain the same for selection as a vice captain. Write a class of a player, define relative data members and member function (setter, getters). Also add the wins and lose member functions.
Create a class Coordinates having two attributes X and Y and relative methods for it. Create another class Point which will carry the object form coordinates class.
Create two points and display their X and Y coordinates.
Create a class Lab which will have the objects from the class Computer which will further carries the object of another class named Accessories
Write required methods and attributes with in the class implementation.
Using the knowledge from above relationships complete your implementation.
WAP to add two time[hr:min:sec] using class and obj...concept(passing object as an argument).
WAP to find name and mark of a student who scored heist in a class by considering minimum five student by using class and object (array of object) by considering suitable data member and fun().