Project #17557 - Pseudocode Repetition Statements

In this assignment, you will design a program to perform the following task:

 

Design a program to print out a list of the squares of ten consecutive integers, beginning at a starting integer selected by the user. (See Note 1.) (The square of a number is the product of an integer with itself; for example, the square of 5 is 25, and the square of -3 is 9.)

  

The user input shall be validated:  if any unacceptable input is received, the program shall issue an appropriate error message and request the user to re-enter the input. (See Note 2)

 

 

Before attempting this assignment, be sure you have read all of chapters 4 and 5 and course module readings, participated in the weekly conferences, and thoroughly understand the examples throughout the chapter. Also, work through the Fibonacci, Input Validation A, and InputValidation B demonstrations athttp://polaris.umuc.edu/~jhirschf/PseudocodeDemo.html

Be sure you understand how they work. If you have any questions about them, do post them in the Week 5 conference.

 

There are 3 main components of your submission: Problem Analysis, Program Design, and Test Cases. All sections and subsections must be clearly identified with appropriate headers.

 

A. Problem Analysis: Provide your analysis for the required program.  Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem. Include the following subsections:

  • What is the required output?
  • What are the necessary inputs? For each input, state (a) whether this input requires validation, and (b) if validation is required, what are the validation criteria.
  • How will you obtain the required output from the given inputs?
  • Identify each of the variables your program will use, specifying the name, usage, and data type of each variable. Present this information in the form of a table.
  • Describe the necessary formulas.
  • Provide a sample calculation.

 

B. Program Design: Specifically address each of the following points:

  • Modular structure of the program, presented as a hierarchy chart.
  • Clear verbal description of the tasks to be accomplished in each module
  • Flowcharts for each subordinate module (No flowchart is required for the main module)
  • Complete pseudocode for the program. The pseudocode shall pass all applicable tests of the Pseudocode Checklist, and shall contain appropriate and informative comments.

 

C. Test Cases: Provide four different test cases, presenting the inputs and required outputs for each case, and the resulting action of the program.  Include two cases of invalid inputs. Present your test cases in a table.

 

Submission Requirements for Assignments and Projects:

 

Format your assignment using the template file yourname-HW3.doc attached to this topic. Save your completed assignment as a document and attach it to your assignment in your Assignment Folder. Do notcopy the contents of the document into the edit window of the assignment folder. I will accept files in .doc .docx, or .odt  format.  Documents containing text will be accepted in Word 2000, Word 2007, and Open Office (.doc, .docx, and .odt) formats. I do not accept documents containing text in .pdf format or any image format. Separate graphics files in .jpg, .gif, .png, or .pdf formats, and RAPTOR flowcharts (.rap) are acceptable provided that they are referenced in the main document.

 

Your document must be neat and well-written with zero grammar, usage, and spelling errors. The font size should be 12 point. The page margins should be 1 inch. Provide your name on the first page along with the class/section, professor and due date. Provide page numbers at the bottom of each page. All sections and subsections must be clearly identified with appropriate headers on separate lines.The paragraphs should be formatted with single line spacing. All figures, tables, and equations must be neatly labeled. Flowcharts or diagrams can be prepared with any suitable tool, including (without limitation) RAPTOR, Word, any of various graphics programs, or even a scanned image of a neat pen-and-paper hand sketch.

 

Give your main assignment file, and each supporting graphics file (if any), a name that begins with your LAST name and identifies the contents, for example, Smith-Assignment2.docx or Johnson-ProjectPlan.doc.  

Notes

(These notes are not considered part of the assignment, rather they are hints or suggestions.)

Note 1: For example, if the starting point were -4, then the output would be 16, 9, 4, 1, 0, 1, 4, 9, 16, 25.

Note 2: You will need to use the techniques shown in the Data Validation demonstrations to do the data validation part of this assignment. Do not re-invent the wheel! Adapt the code in one of the demos to the requirements of this assignment.

Subject Computer
Due By (Pacific Time) 11/24/2013 06:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy