Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROGRAMMING HOMEWORK HELP! You are NOT allowed to use the JavaScript .split() function I need help. I need to make a text area and a

PROGRAMMING HOMEWORK HELP!

You are NOT allowed to use the JavaScript .split() function

I need help.

I need to make a text area and a button, when you type info and hit the button, it should have the following requirements.

Thank you.

image text in transcribed

Requirements HTML . Include an area for users to enter text Include a button that a user can click to trigger the analysis of the input text Include 4 paragraph elements that will be used to display the calculated stats Statistics This is what the rendered HTML should look like before a user presses the button. JavaScript When the button is clicked, do the following: . Assign the value of the text area input to a variable Loop over the input and keep track of the o total number of sentences (Hint: How do you know when a sentence ends?) o average words per sentence o total number of spaces Change the text of the 4 paragraph elements to display these four calculated stats. (Hint: innerHTML) Hello world! This is my Coding from Scratch final project. It's pretty cool, isn't it? Statistics There are an average of 5 words per sentence There are 14 spaces in this text. There are 15 words in this text. There are 3 sentences in this text. This is an example of what should show up after the user clicks the button

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions