Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this exam you need to prepare PHP services that provide 5 functionalities for numeric input and 5 functionalities for string input. Where the given

image text in transcribedimage text in transcribedimage text in transcribed

In this exam you need to prepare PHP services that provide 5 functionalities for numeric input and 5 functionalities for string input. Where the given HTML. file should comnunicate with the PHP services in order to retrieve the the results and show it to the client. The items that you should do are: - Put you name and university ID in the HTML. file [5 marks] - Send a JSON from the client to the server that contains the input value and the operation. [20 marks] - Receive a JSON from the server that contains the processed input. [15 marks] - Show the returned results from the server in the web page as shown in images below. [10 marks] - The numeric input functionalities that should be implemented in PHP are: [25 marks] 1. square root 2. absoluse value 3. round 4. ceil 5. floor - The string input functionalities that should be implemented in PHP are: [25 marks] 1. length of a string 2. MDS hash value 3. convert the string to UPPER case 4. convert the string to lower case 5. reverse the string backward HTML. CODE: \&IDOCTYPE htalrehtelreheadrestylesspan (font-size: 30px;margin: 20px )e/stylese/heads ebodys eh1sPrepared by STLOEN_MAME (STUCENT_ID) c/ spans ebesebers ehrsederscbry eh3>5tring opurations //h3 v \&label for="stringingut" > String inputa/labels einput type="twxt" Ide"stringInput" nane-"steingInput" value="nane"rebercbry Select the operation:ebrs eselect Id-"stringoperation" nane "steingoperation" sizews eoption value-"length" selecteds 5tring length efoptions eoption valuee"Mash"s MoS hash e/aptions eoption value="upper"; Conwert to upper case c/options eoption value="lower"; Convert to lower case c/options 2? Select the crperation: Squ-are reot Absolutie value Fouving Crall 3 Numerical operations Number input 5.9 Select the operation: \begin{tabular}{l|l|} \hline Square root \\ Absolute value \\ Round \\ Cail \\ Floor \end{tabular} String operations String input Select the operaboen: Soring length MD5 hesh Convert to upper casa Convert to lower case Reverse the sring 6 475c499f7f04ee0bd6883f103bc2e869 String operations String inpout Select the operation: \begin{tabular}{l} Soring length \\ MDS hash \\ Convert to usper case \\ Convert to lawer case \\ Reverse the sting \\ \hline \end{tabular} ABCDEF String operations String input Select the operation: Fringlength ND5 hash Convert to upper case Convert to lower cese Reverse the string - abcdef String operations String input Select the operation: String langht MD5 hash Convert to upper case Camert is lower case Fleverse the string feDcBa

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

Students also viewed these Databases questions

Question

suggest a range of work sample exercises and design them

Answered: 1 week ago