Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the code for an HTML form that contains only 3 controls: 1. A text field named 'word' that users can use enter a single

Write the code for an HTML form that contains only 3 controls: 1. A text field named 'word' that users can use enter a single line of text (or a single word). 2. A reset button. 3. A submit button. PART B: Write the code for a Python program (file name as specified above) that accepts the form input and then searches through the file latinwords.txt for the word (case insensitively; i.e. case does NOT matter). The Python program MUST be stored in your /home/pi/public_html/cgi-bin/ directory. If the word is found, your program displays the word AND its definition back to the client (as HTML) in the following format: WORD=>DEFINITION For example, given the list of sample words above, if the user entered the word 'abscido', then your program would display: abscido=>to cut off, to separate, take away. If the dictionary contains multiple entries for the word, then your program would display ALL entries. For example, given the list of sample words above, if the user entered the word 'abutor', then your program would display: abutor=>to make full use of, to abuse. abutor=>to use abusive language / use a word incorrectly. You MUST test your solutions with the following words: word: lines matched abbatia (1) abutor (2) acervus (1) admiror (1) causa (3) prosum (3) quorum (2) sepius (1) veritas (1) sample records in the file: latinwords.txt ========================================== abduco : to lead, or take away / detach, withdraw. abeo : to go away, retire / depart from life, die. abeo : to digress / change / vanish, disappear. abscido : to cut off, to separate, take away. absconditus : hidden, concealed. abutor : to make full use of, to abuse. abutor : to use abusive language / use a word incorrectly. saepius sepius : often, frequently, repeatedly. 

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_2

Step: 3

blur-text-image_3

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

6. How has the internet changed consumers and marketers?

Answered: 1 week ago