Copyright © – Sudharsan Iyengar
CS – 234. Lab 2. 1/28/25
Statement, Analysis, and Pseudo-code
You are required to write an application that can be used to obtain important geometric properties of circles and squares.
Steps to be followed in problem solving are Analysis, Design, and then Coding and Testing.
1. Write the problem description that defines your application – include name of the project and reason for the development work.
2. Enumerate (list) and write the goals of your application.
3. Enumerate the list of inputs and outputs for your application – can provide examples
4. Create a list of essential data required by your application – that which is not input but needed for calculations
5. List the java packages that need to be imported – tools that will be needed for solving the problem.
6. Describe specifically your input and output screen formats – a brief sketch is a good starting point.
7. Develop a Test-suite (known input values with expected outputs values) – this will be used during testing.
8. Write a pseudo-code for the steps your application will execute to achieve its goal – outline of the steps that includes the process of receiving and handling input, processing of data, and the means of displaying output.
Coding and Testing is to be conducted after a thorough review of the above steps. This way – we know what we are doing clearly and unambiguously before programming.
Develop your application with an initial set of capability - that conforms to the description you have developed and test your application.
Verify and Re-iterate and expanded capabilities.
Save your document and export your project to your folder for this class in \\store\classes.
Expand the lab to
include other 2-d and 3-d shapes like: rectangle, triangle, cube, sphere,
prism, cone etc. Address the needs of one shape at a time and implement that
feature. You may want to comment sections of code as you test the new feature
added.