C++ Mortgage Payment Calculator
C++ College Lab Assignment
C++ college lab assignment for CIS 130 C++ course.
C++ Mortgage Payment Calculator {Code}
//*****************************************************************
// Mortgage Payment Calculator program
// This program determines the monthly payments on a mortgage given
// the loan amount, the yearly interest, and the number of years.
//*****************************************************************
#include <iostream> // Access cout
#include <cmath> // Access power function
#include ...
Read more →
Divide & Conquer
This post is being created to display the Divide and Conquer problem solving strategy.
While taking a C++ programming class, I was suddenly hit with a great deal work than I had expected. The work seemed completely overwhelming, and I felt a bit overwhelmed. To reduce the work load I have decided to break down the work to be performed into much smaller, byte size pieces. To do this, I must take the full scope of each assignment and break it ...
Read more →
How to Design a Loop
How to Design a Loop with C++ Samples
What are the seven questions that must be answered to design a loop?
- 1) What condition ends the loop?
- 2) How should the condition be initialized?
- 3) How should the condition be updated?
- 4) What process is being repeated?
- 5) How should the process be initialized?
- 6) How should the process be updated?
- 7) What is the state of the program on exiting the loop?
Designing the Flow of Control
- What is the condition that ends the loop?
- How should ...Read more →
C++ Resources
Massachusetts Institute of Technology OpenCourseWare – Intro to C++
http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-096-introduction-to-c-january-iap-2011/
There is no one who dreams of technology that has not given thought to how an education at MIT could send us to the top of the Computer Scientists charts. Although most of us may not be able to attend MIT, we can still take the classes they offer, and for FREE I might add. MIT OpenCourseWare is a name you should have tattoed across your chest, forearm, or forehead, as ...
Read more →
C++ Numeric Types, Expressions, and Output
Overview of Chapter 3, Programming and Problem Solving with C++, 5th edition (2010)
C++ Data Types

* Types CHAR, SHORT, INT, and LONG are unsigned. An unsigned integer value is assumed to be only positive or zero.
Examples of Named Constant Declarations for Numberic Types:
const float PI = 3.14159;
const float E = 2.71828;
const float int = MAX_SCORE = 100;
const float int MIN_SCORE = -100;
const char = ...
Read more →