Pic Note Essay

478 words - 2 pages

PIC 10A
Lecture 1: Hello World!

The Very Basics
What is a computer?
• Seriously?

What is a computer program?
• Series of commands that the computer interprets and
executes.
• For a program to accomplish a task the commands
must be put together in a meaningful way.

What are the ingredients of a program
that does something?
• The program must be written in a programming language that the
computer can understand. There are several languages: Pascal, Fortran,
Basic, C,
C++, Java etc.
• The program must follow the rules of the language. The programmer
must know the words and the grammar.
• The instructions must be written in the correct sequence.
• The totallity of instructions must accomplish the ...view middle of the document...

• Programming is a creative activity!

How is a C++ program written?
• It is written using the normal English alphabet and a few extra symbols
such as parenthesis ( ) and semicolons ; .
• You can write a C++ program on any text editor!
• It is, however, easier to use a program such as Microsoft Visual Studio
to help you write the code.

How do you run a C++ program?
Before you have a working program your code must
be converted to an executable file.
The computer does not understand C++ as it is written by humans. It must
be translated into machine code. The compliation process accomplishes
this.

Editor

Source
File

Compiler

Machine
Code

Executable
File

Linker

Library
Files

A source file has a name like my_program.cpp. The machine code version has name like
my_program.obj and finally the executable has a name like my_program.exe.
We do not need to understand the details of this process. We only need to know the main
idea. The end product is essentially a program of 0s and 1s that the computer understands.

I wrote my program so I am done with
the HW assignment right?
Sadly, writing a computer program itself is probably
only half the work...Three things can go wrong:
Compilation errors
• Syntax errors, typos etc.
Run time errors
• Program crashes as it is running.
• Possible reasons: Program tried to access illegal memory location or
tried to divide by 0.
Logic error
• The program is not accomplishing what it is intended.
• Possibly because the instructions are given in the wrong order or are
incorrect to accomplish the task at hand.

Hello world!
#include
using namespace std;
int main()
{
cout

Other assignments on Pic Note

Management Accounting Chapter 10 Decentralization Essay

3618 words - 15 pages divisions will almost always look better, not necessarily because of better management but because of the larger dollar figures involved. In fact, in the case above, Darwin does not appear to be as well managed as Perth. Note from Part (1) that Darwin has only an 18% ROI as compared to 21% for Perth. Exercise 10-6 (45 minutes) 1. Computation of ROI. Division A: [pic] Division B: [pic] Division C: [pic] | 2

Managing Financial Resource And Development Essay

2713 words - 11 pages of the level of sales and related collections of cash, and on production and the related disbursements of cash. a. Beginning cash + cash receipts = Total cash available before financing. b. Cash disbursements = Purchases of materials + Salaries and wages + other cash outlays +acquisition of fixed assets + Investments. (Note that non-cash expenses such as depreciation are not included.) Future anticipated dividend payments would normally

Problem Scope And Objective In Software Project Management

504 words - 3 pages : 1. Download and Install 2. Test Installation » Windows System Requirements Typical download size is 10 MB, which is the minimum download. The size may increase if additional features are selected. Note: User needs to have an administrative rights for downloading and installing Java on their system. [pic] Download and Install It is recommended, before you proceed with online installation you may want to disable your Internet firewall. In

Finep

816 words - 4 pages 1. Calculate the variable manufacturing costs per unit, the variable nonmanufacturing costs per unit, and the total variable costs per unit. Calculate the total manufacturing fixed costs, total nonmanufacturing fixed costs, and total fixed costs. [pic] [pic] Special order problems 2. Assume current sales volume is 125,000 brochures. Should we accept Jenkins order for 25,000 brochures? [Assume that this would not affect any of

Network Mergers Proposal

427 words - 2 pages website. We also have team leads whose 20+ years experienced in companies like CISCO, Juniper Networks, Huwai etc. and have handled many multi-million dollar projects. So, handling problems of this magnitude isn't new for people here. NOTE: For References and detailed profiles of our consultants, write to admin. Question 2: Graphical depictions Graphically depict and effectively promote your company’s structured development and services

Computers

389 words - 2 pages |Offaly County Council, |[pic] | |Áras an Chontae, | | |Charleville Road, | | |Tullamore

Reliance

7204 words - 29 pages RELIANCE COMMUNICATION [pic] [pic] INTRODUCTION A DREAM COME TRUE The Late Dhirubhai Ambani dreamt of a digital India — an India where the common man would have access to affordable means of information and communication. Dhirubhai, who single-handedly built India’s largest private sector company virtually from scratch, had stated as early as 1999: “Make the tools of information and communication available to people at an affordable cost

The Sun Our Star

1628 words - 7 pages . | ____ 12. The diagram below shows a plot of the temperature of the sun as a function of distance above the bottom of the photosphere. At what distance above the bottom of the photosphere does the temperature of the sun change the most rapidly with distance? [pic] |a. |1,000 km | |b. |2,300 km

Northern Trust Valuation

4795 words - 20 pages • Record revenues up 17% vs. 2006 • Strong 17% growth in assets under custody vs. 2006 • 9% growth in assets under management vs. 2006 • Credit quality Improved: nonperforming assets decreased & reserve ratio improved vs. 2006 • NO securities or leveraged loan write-downs Data taken from corporate presentation at Citibank bank cnf Jan 08 EPS Trend [pic] *2007 excludes .42 one time indemnification Fig 2

Lab Report

1090 words - 5 pages Lab 1: Introduction Metric System Prefixes (to put in front of basic units): k = kilo = 1000 x c = centi = 1/100 of (which is 10-2 of) m = milli = 1/1000 of (which is 10-3 of) ( = micro = 1/1,000,000 of (which is 10-6 of) n = nano = 1/1,000,000,000 of (which is 10-9 of) (d = deci = 1/10 of ) [pic] (Note: The way to read the numbers above, for example, is: There are 1000 nm in one (m. There are 1000

Statistics Review

927 words - 4 pages Use the information below to answer Questions 1 through 4. Given a sample size of 34, with sample mean 660.3 and sample standard deviation 104.9, we perform the following hypothesis test. Null Hypothesis [pic] Alternative Hypothesis [pic] 1. What is the test statistic? 2. At a 5% significance level (95% confidence level), what is the critical value in this test? Do we reject the null hypothesis

Similar Documents

Shell Company Essay

8278 words - 34 pages Royal Dutch Shell PLC RDS.A [pic][pic][pic][pic][pic] [pic][pic] [pic] | | |[pic][pic] | |[pic] | |[pic

It Strategy Essay

251 words - 2 pages |[pic] |Assignment Cover Sheet – Internal | [pic] Please note: All text based assessment tasks should be submitted electronically using learnonline Gradebook. A cover sheet is automatically created and includes your name and student ID therefore you should not upload or embed the document in your assignment. If submitting your

Modulation Essay

2983 words - 12 pages are never greater than 90°. The modulated signal is shown below for a short segment of a random binary data-stream. Note the half symbol-period offset between the two component waves. The sudden phase-shifts occur about twice as often as for QPSK (since the signals no longer change together), but they are less severe. In other words, the magnitude of jumps is smaller in OQPSK when compared to QPSK 0. [pic] π /4–QPSK [pic

Thesi Essay

1179 words - 5 pages UPLOAD Log in Sign up Top of Form [pic] Bottom of Form Browse DOWNLOAD STANDARD VIEW FULL VIEW [pic] OF 75 61 Computerized Library System Ratings:  (0)|Views: 32,228|Likes: 56 Published by Dio Paciente Doble Chapter 1 THE PROBLEM AND ITS BACKGROUND Introduction... See more   5 INPUT PROCESS OUTPUTFigure 1. Conceptual Model of Study The conceptual model of study is best illustrated on the paradigm of the inputbox; it