Posts Tagged 'c plus plus'

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 // Access cout
#include // Access power function
#include // Access manipulators
using namespace std;

const float LOAN_AMOUNT = 500000.00; // Amount of the loan
const float YEARLY_INTEREST = 5.5; // Yearly interest rate
const int ...

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 →

C++ Resources

Massachusetts Institute of Technology OpenCourseWare – Intro to C++

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
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 = ...

Read more →