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, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 04.07.2019 18:10
Apump is used to circulate hot water in a home heating system. water enters the well-insulated pump operating at steady state at a rate of 0.42 gal/min. the inlet pressure and temperature are 14.7 lbf/in.2, and 180°f, respectively; at the exit the pressure is 60 lbf/in.2 the pump requires 1/15 hp of power input. water can be modeled as an incompressible substance with constant density of 60.58 lb/ft3 and constant specific heat of 1 btu/lb or. neglecting kinetic and potential energy effects, determine the temperature change, in °r, as the water flows through the pump.
Answers: 1
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
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
Spanish, 22.03.2021 05:50
question
Mathematics, 22.03.2021 05:50
question
Mathematics, 22.03.2021 05:50
question
Spanish, 22.03.2021 05:50
question
History, 22.03.2021 05:50
Questions on the website: 13722360