Web Development Exercise 3-4

FratBro23
Category:
Computer Science
Price: $10 USD

Question description

Complete the weekly labs based on the following:

  • Write the code for each lab assignment using a text editor such as Notepad or Notepad++ saving the files using a .php extension.
  • The lab is to be submitted in a single zip file in the online course shell, which must contain all .php files, along with any additional files that may be necessary for your project to run (e.g., text files).
  • Any and all written answers must be entered into the online course shell with the submission of the attached lab assignment.

A palindrome is a word or phrase that is identical forward or back-ward, such as the word “racecar.” A standard palindrome is similar to a perfect palindrome, except that spaces and punctuation are ignored in

a standard palindrome. For example, “Madam, I’m Adam” is a standard palindrome because the characters are identical forward or backward,provided you remove the spaces and punctuation marks. Write a script

that checks words or phrases stored in two separate string variables to determine if they are a perfect palindrome. If you feel ambitious, see if you can modify the program to check for standard palindromes. Save the perfect palindrome script as PerfectPalindrome.php and thestandard palindrome script as StandardPalindrome.php.


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Duke University
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1829 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors