Wednesday, June 29, 2011

SALES TAX example

//***********************
//***********************
//***********************
//
// Copyright (c) Wameland
//
//
//
// This software is distributed WITHOUT
//ANY WARRANTY. No claims are made
// as to its functionality or purpose.
//
// Date: 7/15/
// $Revision: 1.4 $
// $Name: forBlog1 $
//
//
//***********************
//***********************
//***********************

// Program 2.2: Compute sales tax on a
//purchase price
#include <iostream>
#include <string>

using namespace std;

int main(void) {
   
    // Input price
    cout << "Purchase price ? " << flush;
    float Price;
    cin >> Price;

    // Compute and output sales tax
    cout << "Sales tax on $" << Price << " is ";
    float TaxRate = 0.075;
    cout << "$" << Price * TaxRate << endl;
    return 0;
}

Hello World

//**************************************************************************
//
// Copyright (c) Wameland
//
//
// This software is distributed WITHOUT ANY WARRANTY. No claims are made
// as to its functionality or purpose.

// $Revision: 1.2 $
// $Name: E2 $
//
//**************************************************************************

// Program 2.1: Display greetings
// Authors: James P. Cohoon and Jack W. Davidson
// Date: 1/25/1996
#include <iostream>
#include <string>

using namespace std;

int main() {

    cout << "Hello world!" << endl;
    return 0;
}

Thursday, June 16, 2011

Looking down sometimes looks nice

This is a first post, to see if we can explore the world of cpp through example. And to comprehend this world with demonstrations. I have an education in software engineering and the most difficult part of that is to keep myself current and keep my skills sharp. That's another purpose of this blog is to create a public work space for open projects. These examples of using code will help me and I hope help you. I appreciate any input and would like to inform you that is is going to be a slow process as it's not major priority.