subject
Engineering, 29.02.2020 01:25 TURBONTRO6830

Frequency analysis is the study of the frequency of letters in a text, i. e., the number of occurrences of each letter. In this homework you will create dynamic web pages to perform frequency analysis to a text document entered by the user. You should create two files: hw2 freq form. html and hw2 freq process. php. The file hw2 freq form. html includes a HTML form with a textarea. It collects a text document entered by the user. After the user submits the form hw2 freq process. php processes the data as follows: l) Display the text document that is entered by the user. 2) Change uppercase letters to lowercase letters using the function s 3) Perform frequency analysis find the number of times each lowercase alphabetic letter Ca to 'z') occurs in the text. Display the frequency analysis result in a HTML table in the alphabetic order, i. e. display a list of 26 alphabetic letters and the number of occurrences of each letter. You should write and call your own function freq letter, not use pre-defined PHP functions except strlen function. The function freq letter accepts a string (text document) and a letter, finds and returns the number of times that letter occurs in the string 4) Display the frequency analysis result in a HTML table in the descending order of the letter frequency, from the highest frequency to the lowest frequency, with associated letters. You can use pre-defined PHP functions in this part. Hints: Use the array combine function to create an associative array by using the alphabet array for keys and frequency array for values. Then use one of the sort functions we learned in class to sort the new array as required.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
question
Engineering, 04.07.2019 19:10
An electric kettle is made out of stainless steel, weighs two pounds (when empty) and is equipped with a heating element that consumes 2 kw of electricity. assuming that the water and the kettle are at the same uniform temperature at any moment of time, calculate the shortest possible time to bring 2 quarts of water from room temperature to the onset of boiling
Answers: 2
question
Engineering, 04.07.2019 19:10
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
Answers: 1
question
Engineering, 04.07.2019 19:20
Acommercial grade cubical freezer, 4 m on a side, has a composite wall consisting of an exterior sheet of 5.0-mm thick plain carbon steel (kst= 60.5 w/m k), an intermediate layer of 100-mm thick polyurethane insulation (kins 0.02 w/m k), and an inner sheet of 5.0- mm thick aluminium alloy (kal polyurethane insulation and both metallic sheets are each characterized by a thermal contact resistance of r 2.5 x 104 m2 k/w. (a) what is the steady-state cooling load that must be maintained by the refrigerator under conditions for which the outer and inner surface temperatures are 25°c and -5°c, respectively? (b) for power saving purpose, which wall material should be increased/reduced in. thickness in order to reduce 50% of the cooling load found in part (a)? redesign the thickness of the proposed material. 177 w/m-k). adhesive interfaces between the q=575.93 w
Answers: 2
You know the right answer?
Frequency analysis is the study of the frequency of letters in a text, i. e., the number of occurren...
Questions
question
Mathematics, 12.10.2019 01:00
question
Mathematics, 12.10.2019 01:00
Questions on the website: 13722361