Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PHP Programming Generate a start.html file that with a button that should link to a file named analyze.php . Use the random.txt file. Read the

PHP Programming

Generate a start.html file that with a button that should link to a file named analyze.php. Use the random.txt file. Read the file into a data structure of your choice. Make an associative array that keeps a count of each word (use the word as an index into the array). Count how many times each word occurs in the random.txt file. Then, get a percentage for each word. Write the results to a file rate.txt.

This is an example format with made up values:

amazing:16:1.88%

screen:11:1.27%

The first field is the word, the second field is the count from your associative array, and the third field is the frequency of the word. The file MUST BE SORTED (ksort()).The information should be printed IN A TABLE. The table should also be sorted.

input.txt

recitative,peptises,tarps,pentagram,laic,interwoven,antidote,questioningly,pedantries,overindulgence,moralist,subtractions,shrinking,core,shrewsbury,heartsease,consignee,qdos,femaleness,pasty,fracases,cock,checkmating,summonsed,dehumidifier,jaw,simons,elegized,sermonized,dichotomised,spearheads,thanklessly,wensley,unclench,catastrophes,tankages,crispers,daystar,bedford,fezzes,trotters,languishes,roofed,simons,autocratic,totalized,instilling,dements,finely,scolding,aesthetically,sublimely,reinstates,equivalence,incorporator,fleeter,noisier,dementia,masseurs,categorization,tautest,dwindles,undeserving,greece,transmutations,guidepost,cruciform,upfront,pasty,schoolrooms,centilitres,hyperbolize,rococo,llamas,poetizes,ceaselessly,gland,rustics,noisier,readability,fenchurch,untenantable,coelacanths,riyadh,monterey,finely,tepid,baronum,dichotomised,astounding,burgh,immeasurable,jotted,enamoured,inquisitors,concision,helices,christianizes,brines,columbium,advertising,defense,untried,onetime,kindergartener,cocoons,undisciplined,hangings,ebonies,transmutations,crackling,unexcited,columbium,cosmetically,megabit,prolongation,enamoured,decisions,woodwind,scuffs,graphic,intercept,greyest,bicarbonates,slumberous,jeer,whirls,humeri,cock,mala,reconvicts,sackcloth,theorise,kilocycle,antiparticles,construes,memorises,cosies,untried,fabian,brunswick,llamas,liar,heartsease,quarrelling,carnivals,supervenes,subsidises,costermongers,scuffs,looe,consommes,abstaining,proving,supervisions,atoms,traced,evasion,crispers,vegetative,crispers,op,premiums,casualty,gustiest,chairmen,bournemouth,sensuousness,kitting,scilicet,malfeasant,mandrakes,narrs,mightily, greyest

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

Solve problem and graph -4 5x + 6 Answered: 1 week ago

Answered: 1 week ago

Question

convert the follwing azimuths from north to bearing

Answered: 1 week ago

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago