University Notes
INTRODUCTION TO C++ PROGRAMMING YEAR 1
Trending!
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:
33 Pages
2756 Views
0 Downloads
207.62 KB
Uploaded: 2024-02-11
Price: Ksh.30
EFN112: HISTORY OF EDUCATION
Trending!
• History is generally defined as remarkable human past activities and how these activities
have influenced the present.
• Education is generally defined as the transfer of knowledge, skills, values, customs and
attitudes from one person to another or from one generation to another.
• History of education is the evaluation of past educational development in the context of
social, cultural, economic, technological and political changes in human history and how
these educational developments have shaped and influenced the educational theory and
practice today.
73 Pages
3377 Views
0 Downloads
5.53 MB
Uploaded: 2024-02-11
Price: Ksh.100
ALGORITHMS, FLOWCHARTS, DATA TYPES AND PSEUDOCODE
ALGORITHMS
The term algorithm originally referred to any computation performed via a set of rules
applied to numbers written in decimal form. The word is derived from the phonetic
pronunciation of the last name of Abu Ja'far Mohammed ibn Musa al-Khowarizmi, who
was an Arabic mathematician who invented a set of rules for performing the four basic
arithmetic operations (addition, subtraction, multiplication and division) on decimal
numbers.
An algorithm is a representation of a solution to a problem. If a problem can be defined
as a difference between a desired situation and the current situation in which one is, then
a problem solution is a procedure, or method, for transforming the current situation to the
desired one. We solve many such trivial problems every day without even thinking about it, for example making breakfast, travelling to the workplace etc. But the solution to such problems requires little intellectual effort and is relatively unimportant. However, the solution of a more interesting problem of more importance usually involves stating the problem in an understandable form and communicating the solution to others. In the case where a computer is part of the means of solving the problem, a procedure, explicitly stating the steps leading to the solution, must be transmitted to the computer. This concept of problem solution and communication makes the study of algorithms important to computer science.
22 Pages
1423 Views
0 Downloads
86.08 KB
Uploaded: 2024-02-11
Price: Ksh.70
PROGRAMMING TECHNIQUES
Trending!
The Benefits of Considered Program Design and Structure
There are numerous challenges when tackling an embedded system design project. It is
usually wise first to consider the software design structure, particularly with large and
multi-functional projects. It is not possible to program all functionality into a single control
loop, so the approach for breaking up code into understandable features should be well
thought out. In particular, it helps to ensure that the following can be achieved:
• that code is readable, structured and documented
• that code can be tested for performance in a modular form
• that development reuses existing code utilities to keep development time short
• that code design supports multiple engineers working on a single project
• that future upgrades to code can be implemented efficiently.
There are various C/Cþþ programming techniques that enable these design requirements to be considered, as discussed in this chapter.
19 Pages
2655 Views
0 Downloads
1.16 MB
Uploaded: 2024-02-11
Price: Ksh.20
SMA 432: TRIGONOMENTRY
Trending!
Linear correlation refers to a directly proportional relationship between two variables, while nonlinear correlation refers to a relationship that is not directly proportional.
34 Pages
2313 Views
0 Downloads
11.63 MB
Uploaded: 2024-02-10
Price: Ksh.50
Economics Revision Kit notes
Trending!
Although the economic orientation keeps changing, the underlying concept remains the same. This revision
kit is in recognition of the fundamental principle that economics is a development and learning is a process.
It is absolutely necessary to have a systematic approach to studies, right up to the examination. A proper
examination strategy is required irrespective of the mode of study.
681 Pages
4143 Views
0 Downloads
4.43 MB
Uploaded: 2024-02-09
Price: Ksh.150
Economics-Revision-Kit-ebookskenya.co_.ke_
Trending!
Although the economic orientation keeps changing, the underlying concept remains the same. This revision
kit is in recognition of the fundamental principle that economics is a development and learning is a process.
It is absolutely necessary to have a systematic approach to studies, right up to the examination. A proper
examination strategy is required irrespective of the mode of study.
226 Pages
4265 Views
0 Downloads
2.52 MB
Uploaded: 2024-02-09
Price: Ksh.130
Entrepreneurship Detailed notes
Trending!
1-To introduce the concept of entrepreneurship and explain the process of
entrepreneurial action.
2-To describe how structural similarities enable entrepreneurs to make creative
mental leaps.
3-To highlight bricolage as a source of entrepreneurs’ resourcefulness.
4-To introduce effectuation as a way expert entrepreneurs sometimes think.
5-To develop the notion that entrepreneurs cognitively adapt.
6-To introduce sustainable entrepreneurship as a means of sustaining the natural
environment and communities and developing gains for others.
603 Pages
3613 Views
1 Downloads
23.23 MB
Uploaded: 2024-02-09
Price: Ksh.200
ENTREPRENEURSHIP AND COMMUNICATION SKILLS notes
Trending!
Entrepreneurship is the process of coming up with new processes or ways of achieving some set objectives.
280 Pages
3970 Views
0 Downloads
1.48 MB
Uploaded: 2024-02-09
Price: Ksh.150
ENTREPRENEURSHIP AND COMMUNICATION SKILLS REVISION kit
Trending!
This is a complete and precise document with entrepreneurship questions and answers.
171 Pages
3612 Views
0 Downloads
4.11 MB
Uploaded: 2024-02-09
Price: Ksh.130
Financial Accounting revision questions
Trending!
Compete questions and answers in Financial accounting .
168 Pages
4575 Views
1 Downloads
646.15 KB
Uploaded: 2024-02-09
Price: Ksh.140
FINANCIAL ACCOUNTING COMPLETE NOTES
Trending!
Accounting is considered the language of business. It has evolved throughout the years as
information needs changed and became more complex. After finishing this article, the reader should
be able to have a general understanding about accounting, be acquainted with the different
definitions, know the different types of information found in accounting reports, and know the
different uses of accounting information.
395 Pages
3593 Views
1 Downloads
2.34 MB
Uploaded: 2024-02-09
Price: Ksh.160
FINANCIAL INSTITUTIONS AND MARKETS NOTES
A market can be defined as an organizational device, which brings together buyers and sellers. A financial market is a market which financial assets (securities) such as stocks and bonds can be purchased or sold
131 Pages
1898 Views
1 Downloads
1.28 MB
Uploaded: 2024-02-09
Price: Ksh.130
Financial Markets and Institutions FITH EDITION NOTES
Trending!
In the 1990s, financial markets in the United States boomed. The Dow Jones Industrial
Index—a widely quoted index of the values of 30 large corporations (see Chapter 8 )—rose
from a level of 2,800 in January 1990 to more than 11,000 by the end of the decade; this
compares to a move from 100 at its inception in 1906 to 2,800 eighty-four years later.
In the early 2000s, as a result of an economic downturn in the United States and elsewhere,
this index fell back below 10,000. The index rose to over 14,000 in July 2007,
but (because of an increasing mortgage market credit crunch, particularly the subprime
mortgage market) fell back to below 13,000 within a month of hitting the all-time high. By
2008, problems in the subprime mortgage market escalated to a full blown financial crisis
and the worst recession in the United States since the Great Depression. The Dow Jones
Industrial Arerage (DJIA) fell to 6,547 in March 2009 before recovering, along with the
economy, to over 11,000 in April 2010.
850 Pages
2831 Views
0 Downloads
13.49 MB
Uploaded: 2024-02-09
Price: Ksh.160
Financial Mathematics Past Papers COMPLETE
Trending!
Financial Mathematics Past Papers
38 Pages
4575 Views
0 Downloads
1.64 MB
Uploaded: 2024-02-09
Price: Ksh.50
Financial Mathematics Past Papers
Financial Mathematics Past Papers
38 Pages
360 Views
0 Downloads
1.64 MB
Uploaded: 2024-02-09
Price: Ksh.50
FINANCIAL MATHEMATICS STUDY NOTES
Introduction to financial mathematics
- Nature and scope of finance; financing, investment, management of working capital and
profit sharing (dividend policy) decisions
- Relationship between finance and other disciplines; finance and economics, finance and
accounting, finance and mathematics
- Purpose of financial modeling
175 Pages
411 Views
0 Downloads
2.85 MB
Uploaded: 2024-02-09
Price: Ksh.100
FINANCIAL ACCOUNTING - BLOCK REVISION MOCK 1
Trending!
FINANCIAL ACCOUNTING - BLOCK REVISION MOCK 1
166 Pages
4511 Views
1 Downloads
4.95 MB
Uploaded: 2024-02-09
Price: Ksh.100
Frank Woods Business Accounting 1 - Recommended
This part is concerned with the basic principles underlying the
double entry system of bookkeeping.
1 The accounting equation and the balance sheet 3
2 The double entry system for assets, liabilities and capital 18
3 The asset of stock 28
4 The effect of profit or loss on capital and the double entry
system for expenses and revenues 38
5 Balancing off accounts 49
6 The trial balance 57
793 Pages
1896 Views
0 Downloads
6.81 MB
Uploaded: 2024-02-09
Price: Ksh.200
Frank Wood_s Business Accounting 2 NOTES
Trending!
Introduction
This part is concerned with two items that are treated in a similar
way, irrespective of the form of business involved.
1 Accounting for branches 3
2 Hire purchase accounts 29
844 Pages
2014 Views
0 Downloads
11.4 MB
Uploaded: 2024-02-09
Price: Ksh.200