Skip to content

Programs written while attending Del Mar College. Fall 2016. Book used: "C++: From Control Structures Through Objects" by Tony Gaddis

License

Notifications You must be signed in to change notification settings

jesushilarioh/DelMarCSi.cpp

Folders and files

NameName
Last commit message
Last commit date
Nov 22, 2016
Dec 30, 2017
Feb 3, 2018
Mar 6, 2018
Mar 14, 2018
Nov 3, 2016
May 5, 2017
Oct 15, 2016
Oct 24, 2016
Dec 7, 2016
Oct 15, 2016
Oct 17, 2016
Dec 5, 2016
Nov 22, 2016
Sep 2, 2017
Nov 13, 2016
Sep 20, 2016
Mar 3, 2017

Repository files navigation

C++

Hey y'all, most of these examples come from my learning through Tony Gaddis, "Starting Out With C++", 8th Edition. Feel free to use!! Thanks

Here is an example of what you'll see... in these examples.

//***********************************************
// This program calculates the user's pay.
//
// By: Jesus Hilario Hernandez
// Last Updated: November 21, 2016
//***********************************************
#include <iostream>
using namespace std;

int main()
{
    double hours, rate, pay;

    // Get the number of hours worked.
    cout << "How many hours did you work?";
    cin >> hours;

    // Get the hourly pay rate.
    cout << "How much do you get paid per hour?";
    cin >> rate;

    // Calculate the pay.
    pay = hours * rate;

    // Display the pay.
    cout << "You have earned $" << pay << endl;
    
    return 0;
}

About

Programs written while attending Del Mar College. Fall 2016. Book used: "C++: From Control Structures Through Objects" by Tony Gaddis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages