Interest Earned Programming Project
A Week 2 Demonstration
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.
Welcome to the Interest Earned Project
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.
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.
Reading the Project
(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.
(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.
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.
Interest Earned Program
Amount in savings: $1,043.34
Top Half
Bottom Half
Flowchart Clip
(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)
We are redefining the docs here. Modifications are being made to include interactivity and to expand our expected output.
Top Half (no change)
Bottom Half (no change)
Flowchart Clip
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.
(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)
We are converting now to an advanced solution. Modifications are being made to include input modules that return values.
Top Half (no change)
Bottom Half (no change)
Flowchart Clip
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