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 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
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, 11.02.2021 03:50
question
Mathematics, 11.02.2021 03:50
question
Mathematics, 11.02.2021 03:50
question
Mathematics, 11.02.2021 03:50
question
Mathematics, 11.02.2021 03:50
Questions on the website: 13722360