Analyze, design, and document a simple program that utilizes a good design proce
ID: 3639997 • Letter: A
Question
Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array Each of these items (sequential code, at least one selection statement, at least one loop, at least one function call, at least one array and associated processing of the array) is required, and must be present in code.
•This should be a project plan which provides your problem statements, problem analysis, and how it will comply with the project specifications.
Please explain each line, Completely lost
Explanation / Answer
(1) Analyze, design, and document a simple program that utilizes a good design process....
It is asking you to sit down, and plan out a program before you actually go to write it. Open up a word document, and get a pen and paper, and start to think about how you will implement all that the program requires. Then, while writing the program, use comments to document what the code is doing.
(2) Incorporates sequential, selection, and repetitive programing statements as well as at least one function call and the use of at least one array...
The sequential programming statement is one that happens in SEQUENCE. i.e., 1, then 2, then 3, then 4, etc... An example of a sequential programming statement would be to use a for loop to set all the values of an array to the integers 1-100.
A selection programming is one where the CLIENT or the USER is able to select what to access. For example, the user can input an integer from 1-100 and the program will SELECT that element from an array and display it.
A repetitive programming statement is one that repeats the same task over and over. For example, making a function to set all the values in an array to the integer '1'.
In order to make a function call, you must first design the function and its parameters, and then call it in your program to do some work. For example, you could pass an array to the arraySequential function, and it would set all 100 elements of the array to the integers starting at 1 through 100.
(3) Each of these items (sequential code, at least one selection statement, at least one loop, at least one function call, at least one array and associated processing of the array) is required, and must be present in code.
Refer to my previous examples of what sequential and selective is.
This part is asking you to now implement these into you program. Have an array, and do something sequential on it. Then do something user-input selective with it. Then maybe run it through a loop and do something repetitive on it, and use a function to do so.
(4) This should be a project plan which provides your problem statements, problem analysis, and how it will comply with the project specifications.
This is asking you to analyze the problem before you begin doing it. THINK of how you will implement these things, and document what problems you may/do run into. Explain how your solution will fit the task, and then document your code as you write it to prove that it is doing what is expected.
I hope this helps!