[Solved] CS213 Assignment 4 Part 2 PHP 1 part 2 statement

$25

File Name: CS213_Assignment_4_Part_2_PHP_1_part_2_statement.zip
File Size: 452.16 KB

SKU: [Solved] CS213 Assignment 4 Part 2 –PHP 1 part 2 statement Category: Tag:
5/5 - (1 vote)

Rate this product

  1. Word frequency counter : (name of your file should be q2.php).Take some words as input from the command line. Print the frequencycount (number of occurrences) of each word sorted in alphabetical order.Frequency count must be case-insensitive. (e.g. both Hey and hey would be counted under the same word hey)Validate your input, using error handling mechanism in Question 1.
  2. Substring Frequency counter: (name of your file should be q3.php).Take two words as input from the command line. Let us call first word as x and second word as y.Count how many times y occurs as a substring in x, and the positions in x where it occurs it.1

For example, on input x = abacabab and y = ab your output should be as follows:30

4 6.

Validate your input, using error handling mechanism in Question 1.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS213 Assignment 4 Part 2 PHP 1 part 2 statement[Solved] CS213 Assignment 4 Part 2 PHP 1 part 2 statement
$25