Exercise
1. Create and retrieve a cookie named "username" with the value "Patience Zulu". The cookie should expire after 20 days. Check if the cookie is set and display the value of the cookie.
2. Delete the cookie from the previous question.
3. Create the file “People.php” and write a php script that will open a file for writing “WritePeople.txt” file and close the file after writing.
4. Create the file “Cars.php” and write a php script that that will open a file for reading “CarNames.txt” file and close the file after writing.
Discuss the importance, role, use, considerations, and benefits of Branch Office Direct Printing
Explain how roaming profile and folder redirection help manage user profile
Describe the enhancement/benefit of fault-tolerant and disk space quotas by users offered by NTFS over FAT technology
Write a program that reads a 4 digit (or fewer) positive integer and determines
how many digits in the integer are equal to the last character of your Roll number,
and prints the result on the screen. If a user enters a negative integer or an
integer greater than 4 digits, print a message on the screen: “Invalid integer!
Execute program again and enter a valid integer.” Also, write the pseudocode for
this program.
Make all the
appropriate function constant. Include a constant data member called id of integer
type.
Create two object constant and non-constant. Assign values and display them. Also
check what happens
If you try to modify private data member of an object from the definition of
const function
If you try to modify the private data member of const object from the
definition of non-constant function.
Area of a circle is π × r2 where r = radius
Area of a triangle is ½ × b × h where b = base, h = height
Area of a rectangle is w × h w = width, h = height
Area of a square is a
2 where a = length of side
Write four different functions with same name that is Area to calculate the area of
circle, triangle, rectangle and square.