Interest Earned Programming Project
A Week 2 Demonstration

Interest Earned Project - Page 1

Objectives: This project is out of the Gaddis Intro to C++ text from Chapter 3. You might be in your second or third week of class when you experience a problem of this nature. I will cover this problem with the goal of touching key content in regard to program output, program input, variables, calculations and then add a modular approach. You might want to view this project in week 2 up to week 4 of class to introduce some of the beginning skills needed during program design and development. You could also use this project as a review of your skills. Starting the project with the Introduction will place you in the category of writing your first or second program. Moving to the Intermediate mode of this project will assist you when using a more interactive type program. The Advanced section will move you on to a modular coding approach. In addition to the design documents I will add suggestions for coding this project in C++ as well as JAVA. My hope would be that this project can be used as an easy example which includes techniques for the more difficult problem assignment.

You might want to check out recommended resouces that cover content we will be using in this project.

 

Content Pages

Introductory Page

Intermediate Page

Advanced Page

 

Introductory Page: Getting Started with an Easy Solution

Video: A Quick Overview

Welcome to the Interest Earned Project

Project description:

The project description should give details enough to allow a program developer enough information to come up with a solution. This may not always be clear which could cause one developer to build a solution that is different from another. The approach I would recommend for my projects would be to solve as completely as possible and to clarify when the opportunity occurs.

Instructions

The above project description is a starting point for my illustrations. I will add to this description as we move to the more advanced sections.

Start with the video below to see how our project is described. 

Video Section

Video describing the project:

Reading the Project 

Video show the Output Specs:

 

Video showing the Program Analysis WS:

 

Video showing the Flowchart:

 

Adding Code 

Video showing the C++ Code

(Work-in-progress)

Although the video has not been recorded you can check the solution for C++ or JAVA. Just locate the (Answer 1) tab.

Video showing the JAVA Code

(Work-in-progress)

Although the video has not been recorded you can check the solution for JAVA. Just locate the (Answer 1) tab.

Sample Solution (C++ and JAVA)

View this page after giving the project your best effort.

Design Docs

 

This section will identify docs that show the development of our solution. When you are working through any project you will need to consider things like variable names, how to show results, logic for coming up with your result and then get down to writing code that will tell the computer exactly what to do.

 

Output Specs

Interest Earned Program 

Amount in savings: $1,043.34

Program Analysis WS

Top Half

Program Analysis Top

Bottom Half

Program Analysis Bottom

Flowchart

Flowchart Clip

Flowchart of solution.

 

 

Code

 C++ Code

Code Photo

 

JAVA Code

Code Photo

 

Intermediate: Adding Input and Output to Solution

Project Redefined

Instruction for Interest Earned Project

 

Video of Improvements

(Work-in-progress)

Although the video has not been recorded you can check the solution for C++ or JAVA. Just locate the (Answer 2) tab.

Sample Solution (C++ and JAVA)

 

Solution Docs Redefined

We are redefining the docs here. Modifications are being made to include interactivity and to expand our expected output.  

Output Specs

 Output Specs

Program Analysis WS

Top Half (no change)

Program Analysis Top

Bottom Half (no change)

Bottom Half

Flowchart

Flowchart Clip

Flowchart.

  

Code

 C++ Code

C++ Code

C++ Code

 

JAVA Code

JAVA Code

 

Advanced: Now to include a Modular Approach

Objectives: Modify the code to take a modular approach for the solution. Add modules that input each value used in the project. Use modules getRate, getTime and getPrincipal. Pass no value to the modules and return only one value.

Resources available: If you need an explaination of the modular approach you might want to read the chapter on Functions. Some books could also have a chapter on the beginning of modules.

Video Setup

 (Work-in-progress)

 Although the video has not been recorded you can check the solution for C++ or JAVA. Just locate the (Answer 3) tab.

Sample Solution (C++ and JAVA)

Solution Docs for an Advanced Demo

We are converting now to an advanced solution. Modifications are being made to include input modules that return values.  

Output Specs (no change from the intermediate approach used on the previous page)

 Output Specs

Program Analysis WS (no change from the intermediate approach used on the previous page)

Top Half (no change)

Program Analysis Top

Bottom Half (no change)

Bottom Half

Flowchart

Flowchart Clip

Flowchart

Flowchart

Flowchart

Flowchart

  

Code

 C++ Code

C++ Code

C++ Code

C++ Code

C++ Code

 

JAVA Code

JAVA Code

JAVA Code

Textbook Resources

Starting Out with Programming Logic and Design by Tony Gaddis

Starting Out with C++ From Control Structures through Objects

Starting Out with Java: Control Structures - by Tony Gaddis