Question: Use this Software Development Method format for homework#2 and coding part Software Development Method 1. Problem Specification 1.1. Description 1.2. Diagram 2. Design 2.1. Analysis

Use this Software Development Method format for homework#2 and coding part
Software Development Method
1. Problem Specification 1.1. Description
1.2. Diagram 2. Design 2.1. Analysis 2.1.1. Input Name Description Units Data Type TBS 2.1.2. Output Name Description Units Data Type TBS 2.1.3. Relevant Formulas TBS 2.1.4. Constants Name Description Value Units Data Type 2.2. Algorithm TBS 3. Implementation Reference ProgramTBS.c 4. Verification and Testing Test Case 1: TBS Inputs Outputs
Name Value Name Expected Value Actual Value Pass/Fail TBS Test Case 2: TBS Inputs Outputs
Name Value Name Expected Value Actual Value Pass/Fail TBS Test Case 3: TBS Inputs Outputs
Name Value Name Expected Value Actual Value Pass/Fail TBS
Software Development Method (first two sections completed)
Section 1 (fill out both subsections under Problem Specification)
1.1 Description
1.2 Diagram
Section 2 (fill out all five sections under Design)
2.1.1 Input
2.1.2 Output
2.1.3 Relevant Formulas
2.1.4 Constants
2.2 Algorithm
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 one of the following 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) "?' (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 passes through the input file. Count the sentences an ane pass, words an the other. While o 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 fitel - 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
Get step-by-step solutions from verified subject matter experts
