Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please I need serious answer for this last I post the question somebody give all the wrong answers. So here how it supposed to be

image text in transcribed

Please I need serious answer for this last I post the question somebody give all the wrong answers. So here how it supposed to be do HW#3 by using the SDM that I will pose below and after that write the code in C language and Use that same SDM for testing part. Please I need this to be prefect. And yes I need Algorithm, please fellow the instrution paper

Software Development Method

1. Problem Specification

1.1. Description

1.2. Diagram

2. Design

2.1. Analysis

2.1.1. Input

NameDescriptionUnitsData Type

TBS

2.1.2. Output

NameDescriptionUnitsData Type

TBS

2.1.3. Relevant Formulas

TBS

2.1.4. Constants

NameDescriptionValueUnitsData Type

2.2. Algorithm

TBS

3. Implementation

Reference ProgramTBS.c

4. Verification and Testing

Test Case 1: TBS

InputsOutputs

Name

Value

NameExpected

ValueActual

ValuePass/Fail

TBS

Test Case 2: TBS

InputsOutputs

Name

Value

NameExpected

ValueActual

ValuePass/Fail

TBS

Test Case 3: TBS

InputsOutputs

Name

Value

NameExpected

ValueActual

ValuePass/Fail

TBS

Write a program that reads a text file as input and counts the number of sentences and words. The input to your program should be a user specified text file. In other words, obtain the name of the input file at run time from the user of the program. Protect your program against crashes that might be caused by a bad file name. A sentence begins with one of the following: ' 0 '...' 9 ', ' A ' Z ', or ' a '...' Z. A sentence, once started, ends with the first occurrence of of the followine sequences: 1. A TERMINATOR followed by two spaces 2. A TERMINATOR followed by one space and end-of-line 3. A TERMINATOR followed by end-of-line 4. A TERMINATOR followed by a double quote and a space 5. A TERMINATOR followed by a double quote and an end-of-line TERMINATORS: * ' (period) 's' (question mark) 'I' (exclamation point) A word begins with one of the same set of characters that begin a sentence. A word, once started, ends with the first occurrence of a space, a tab, or an end-of-line, unless the end-of-line is preceded by a hyphen. Appropriate counting actions should be taken when the end-of-file (EOF) is encountered. The output total number of sentences and words should be printed to the screen. TIPS: Make two posses through the input file. Count the sentences an ane pass, words an the other. While a good urogramming practice, functions are NOT required so keep the entire program in the main function. Implement the ward counter first becouse it is, arguably, the easier than the scntence counter. MOST MMPQPTANTY, focus on your algorithm before you implement it with code. You've been womed! Complete the progiam iolowing the "Coding Standard" handed out in class. Submit the following through Brightspace: - source file (folicwing the Coding Standard) - executable file (as a zip fitei) - Completed SDM containing apdated sections 1 and 2 (from homework) with sections 3 and 4 (ALTERNATELY: You can turn in a paper version of your SDM if that is more convenient for you) Homework 3 Software Development Method: Sentence and Word Counter Perform the first two steps of the Software Development Method on the Sentence and Word Counter specified in Program 5. The problem should be described and specified clearly. The analysis should be complete. Specific attention should be given to the algorithm section. This is where you solve the problem before you begin coding. Use paragraph numbering. Entries for all paragraphs in the first two sections are REQUIRED. You may personalize the format. Use most convenient medium: pencil and paper, computer, etc

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago