Tutorial 1 – Car Payment Calculator and Guess the Number Application: Introducing Computers, the Internet and C++ Programming. Computer Hardware and Software 1.1 What Is a Computer? 1.2 Computer Organization 1.4 Computer Languages and Levels 1.9 Key Software Trend: Object Technology - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Tutorial 1 – Car Payment Calculator and Guess the Number Application: Introducing Computers, the Internet and C++ Programming
Computer Hardware and Software1.1 What Is a Computer?1.2 Computer Organization1.4 Computer Languages and Levels1.9 Key Software Trend: Object TechnologyComputer Languages and IDEs1.7 Early Procedural High-Level Languages1.5 C and C++1.6 Java
PythonIntegrated Development Environment (IDE)
1.8 Microsoft .NET FrameworkTutorial1.10 Compiling and Running C++ Applications1.11 Test-Driving the Applications1.12 Internet and Web ResourcesLab and Homework Assignment
• Computers are designed to meet a specific set of requirements.
• Computer History
• In the early days, these requirements were to meet some military, science, civil, or commercial need.
– For the military, it was predominately the calculation of ballistic tables.
– For science to calculate the motion of the planets or the weather.
– For civil keeping track of people and commercial keeping track of the money.
• To meet these requirements the computer was conceived and described by its hardware and it instruction set.
– Hardware components for all modern day computers, were codified by Von Neumann in his landmark paper describing the architecture of the EDVAC computer
– the instruction set is a list of all the instructions the computer can understand – The Language of the Machine
• High-Level Languages (ex. Basic, Fortran, COBOL, Ada, Pascal)
– Compilers convert to machine languages
– Linkers package machine language files
– Example:
grossPay = basePay + overtimePay;
• Interpretive Language (ex. Java, Flash, .NET)
– Look and Function just like a High-Level Language.
– Compilers convert to machine independent “intermediate” language
– Interpreters run high-level/intermediate programs directly
• Mid-Level Language (C and C++)
– Combines the elements of high-level languages with the functionality of assembly language and has occasionally been referred to as a middle-level computer language.
• C++ was written by Bjarne Stroustrup at Bell Labs during 1983-1985.
• C++ is an extension of C. Prior to 1983, Bjarne Stroustrup added features to C and formed what he called "C with Classes". He had combined the Simula's use of classes and object-oriented features with the power and efficiency of C.
• The term C++ was first used in 1983.
• Hybrid language
– C style
– Provides capabilities for Object-Oriented Programs (OOPs)
• Java and Python are general-purpose interpreted, object-oriented, high-level programming languages
• Java was developed by James Gosling at Sun Microsystems and released in 1995.
• The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities.
• Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture.
• It is intended to let application developers "write once, run anywhere".
• Java is currently one of the most popular programming languages in use, and is widely used from application software to web applications.
• Like Java, Python is a general-purpose interpreted, object-oriented, high-level programming language.
• Work on Python started in December 1989 by Guido van Rossum in the Netherlands as a successor to the ABC programming language
• C provided some of Python's syntax,
• One of the early objectives of Python was to be easily learnable and not too arcane in its syntax and semantics, reaching out to non-programmers − this is no longer an active concern.
• The Microsoft .NET Framework is a software framework for Microsoft Windows operating systems.
• The .NET Framework supports several programming languages (Visual Basic, C++, C#) which allows language interoperability (each language can use code written in other languages).
• All .NET programs are by definition high-level running on an application virtual machine, so that programmers need not consider the capabilities of the specific CPU (Platform independent).
• The .NET Framework includes a large library
– The library provides user interface, data access, database connectivity, cryptography, web application development, numeric algorithms, and network communications.
– The class library is used by programmers, who combine it with their own code to produce applications.
– The .NET library is available to all the programming languages that .NET supports.
• Copy example from SimplyCpp CD to your local hard drive (See preface starting on page xxv).
• Download and Install Visual Studio 2010 Express
• Run the Car Payment Calculator and Guess the Number Applications.
• Do Tutorial 1 − Car Payment Calculator and Guess the Number Application.
• Answer and Turn-in Tutorial 1 Questions at the end of the Chapter. Always write the question followed by the answer. Remember to highlight the answer.
• Search the Web for a Good “Hello World” Tutorial using the Microsoft Visual Studio IDE. Include as question 1.16. For the answer write the URL and in a few sentences why you like the tutorial. Web Tutorial may be a website or a video.