Basic programming principles by H. G Erasmus(Book) 2 editions Basic programming principles using Visual by C. M Pretorius(Book) 1 edition. CM Pretorius and HG Erasmus. Basic understanding of problem-solving and basic programming principles are vital necessities. .. an equation. For example, a = b + c, where a must be a numeric variable that if code = “H” then. BASIC PROGRAMMING PRINCIPLES. PRETORIUS C. ISBN: Estimated delivery within business day. R Add to Basket Added.

Author: Dainos Tashakar
Country: Vietnam
Language: English (Spanish)
Genre: Art
Published (Last): 12 February 2008
Pages: 129
PDF File Size: 14.75 Mb
ePub File Size: 12.64 Mb
ISBN: 938-3-88811-985-8
Downloads: 91913
Price: Free* [*Free Regsitration Required]
Uploader: Kitaxe

The name of the value returned by the function need not be the same as in the calling statement. Display the weight of the food in kg as well as the amount due. Each element is called month and an index is used to retrieve the individual values from the array. And programmers think in an unnatural way WOW!!!!

The algorithm must calculate and display the amount of interest earned as well as prograamming balance at the end of every month for the next 15 months.

An object or thing that you can describe. All mainstream modern browsers have cookies enabled by default, so if you’ve been directed to this page it probably means princiiples uisng a weird and wonderful browser of your own choosing, or have disabled cookies yourself. The array can hold numerous values but identical data types.

Thus, programmers have to learn to think in anunnatural way: Use modularization from the chosen programming language 3.

Input Processing Output num1 Prompt erasmmus num1 and num2 average num2 Enter num1 and num2 Calculate average Show average on the screen.

Calculate erawmus, half, a third and a quarter of the number and show the result on the screen. The last statement or step is always end. The basic cost is R per day. Published by Jasper Riley Modified over 3 years ago. Used also to retrieve an individual value from the array. Input Processing Output hours Prompt for input fields wage rate Enter hours and rate rate Calculate wage Display wage on screen.


If you wish to download it, please recommend it to your friends in any social system. Auth with social network: Understand what the problem entails 3.

Basic Programming Principles: Textbook

An array is a data structure that consists of a number of related variables. The value that is returned from the sum function is assigned to total variable. What is the output? Chapter 7 Introduction to Procedures. You learned to do it once when you were a child and now it just happens on its own!!!


Cookies come in two flavours – persistent and transient. Programming makes you feel superior to other people. For example, at loot. Enter the number eras,us hours he worked for a specific week, as well as the pay rate per hour.

Please click the link in that email to activate your subscription. The plate weighs 1. For example weekDay 0 refers to Mon,weekDay 5 refers to. Draw a trace table? A function is called to calculate the average mark. Enter values of the princkples and maximum temperatures for a givenday, then calculate the average temperature of the day.

In other words, it can change more than one value. A function parameter list can be empty see following example.

To use, you must have cookies enabled in your browser.

pretlrius Enter her monthly salary, which is never less than R1, on the keyboard and then calculate and display how much money she has available for the various categories. Read the problem carefully 2. Principlees and show the amount due on the screen. This name is stored in the variable called name. A comment can be included anywhere in an algorithm.


The name of this array is weekDays wekdays contains the names of the 7 days in a week We declare the variables of this array as: Use, develop and design structured programming methods 2.

A function or subprocedure can be called from a main procedure or from any other function or subprocedure as can be seen in some of the examples.

Row 3 column 0 contains minimum and maximum temperatures for day 4 that is 3 and 24 If the name of the array is temperature,to reference a particular element we specify both the row and the column number: This doesn’t mean that anyone who uses your computer can access your account information as we separate association what the cookie provides from authentication. In both cases you should know how to switch cookies back on!

Programming really is fun. Let’s connect Contact Details Facebook Twitter. The value of an index is always positive integer or a zero The index of the first element is always 0 and the index of the last element is number of elements – 1 see diagram slide 24 Referencing: Is a set of instruction written in a specific sequence used to solve a problem Three phases of an algorithm: The final mark is calculated on the marks of various assessments and their particular weightings: All rights reserved Introduction to C Programming.

We never store sensitive information about our customers in cookies. The name of the array and the index are used.