INTRODUCTION TO C++ PROGRAMMING YEAR 1
| Institution | UNIVERSITY |
| Course | BACHELOR OF SCIENCE... |
| Year | 1st Year |
| Semester | Unknown |
| Posted By | stephen oyake rabilo |
| File Type | |
| Pages | 33 Pages |
| File Size | 207.62 KB |
| Views | 1506 |
| Downloads | 0 |
| Price: |
Buy Now
|
Description
First Class In C++
Adapted from : http://www.cplusplus.com/doc/tutorial/tut1-1.html
Structure of a C++ program
Probably the best way to start learning a programming language is with a program. So here is our
first program:
// my first program in C++
#include <iostream.h>
int main ()
{
cout << "Hello World!";
return 0;
}
Hello World!
The left side shows the source code for our first program, which we can name, for example,
hiworld.cpp. The right side shows the result of the program once compiled and executed. The way to
edit and compile a program depends on the compiler you are using. Depending on whether it has a
Development Interface or not and on its version. Consult section compilers and the manual or help
included with your compiler if you have doubts on how to compile a C++ console program.
The previous program is the first program that most programming apprentices write, and its result is
the printing on screen of the "Hello World!" sentence. It is one of the simpler programs that can be
written in C++, but it already includes the basic components that every C++ program has. We are
going to take a look at them one by one:
Below is the document preview.
SMA 2104: Mathematics for Sciences - Lesson 1 Quadratic equations
Trending!
Upon completing this topic, you should be able to: Solve quadratic equations by factoring Learning outcomes Solve quadratic equations using the method of extraction of roots Determine the nature of the solutions to a quadratic equation Understand the logic underlying the method of completing Solve a quadratic equation using the method of completing
No pages found
4129 Views
0 Downloads
367.62 KB
SMA 2104 - MATHEMATICS FOR SCIENCE - Lesson 1B
Trending!
By the end of this topic you should be able to; Understand the laws of indices and their application in Learning outcomes simplifying algebraic expressions. Define index, Establish the laws of indices, Solve simple problems using the laws of indices, Understand the theory of logarithms and surds and their applications in manipulating expressions.
No pages found
3287 Views
0 Downloads
344.76 KB
SMA 2104: Mathematics for Sciences - Lesson 2 Algebra
Trending!
By the end of this topic you should be able to; Understand the laws of indices and their application in simplifying algebraic expressions. Define index, Establish the laws of indices, Solve simple problems using the laws of indices. Understand the theory of logarithms and surds and their applications in manipulating expressions. Define logarithm
No pages found
3459 Views
0 Downloads
344.76 KB
SMA 2104: Mathematics for Sciences - Lesson 3 Sequences and series
Trending!
Upon completing this topic, you should be able to:
Differentiate between a series and a sequence, Use Sigma notation in representing a series, Understand the properties of arithmetic and geometric progressions, Define an Arithmetic progression (A.P.), Obtain the formula for nth term and the first n terms of an A.P, Define a geometric progression (G.P.)
No pages found
3164 Views
0 Downloads
325.42 KB
SMA 2104: Mathematics for Sciences - Lesson 4 Factorisable polynomials
Trending!
Upon completing this topic, you should be able to factorise and solve polynomials of degree higher than 2
No pages found
3533 Views
0 Downloads
277.4 KB
SMA 2104: Mathematics for Sciences - Lesson 5 Permutations and Combination
Trending!
Permutations and Combination
Permutations - This is defined as the number of different ways of arranging different objects in order.
No pages found
3165 Views
0 Downloads
273.38 KB
SMA 2104: Mathematics for Sciences - Lesson 6 Binomial expansion
Trending!
Upon completing this topic you should be able to understand the binomial theorem and it’s application in the expansion of expressions and in approximations.
No pages found
2957 Views
0 Downloads
282.79 KB
SMA 2104: Mathematics for Sciences - Lesson 7 Probability
Trending!
Upon completing this topic,you should be able to;- Apply the principles of probability to solve problems in real-world contexts. Understand and use the language of probability and to compute the probabilities of composite events using the basic rules of probability.
No pages found
3321 Views
0 Downloads
395.57 KB
SBC100: STRUCTURE OF BIOMOLECULES
Trending!
They are well descritive
30 Pages
3386 Views
0 Downloads
2.65 MB
SMA 2104: Mathematics for Sciences - Lesson 8 Statistics
Trending!
Upon completing this topic,you should be able to Collect, organize, and represent data, and be able to recognize and describe relationships. Apply the principles of statistics to solve problems in real world contexts. Demonstrate knowledge of statistical terms. Differentiate between the two branches of statistics. Identify types of data. Understand and use the basic measure of central tendency
No pages found
3033 Views
0 Downloads
282.84 KB