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: Vurg Gajind
Country: Rwanda
Language: English (Spanish)
Genre: Marketing
Published (Last): 10 October 2008
Pages: 400
PDF File Size: 9.45 Mb
ePub File Size: 19.55 Mb
ISBN: 726-2-58928-860-3
Downloads: 48499
Price: Free* [*Free Regsitration Required]
Uploader: Zulujora

A function is called to programminng the average mark. Not available in the problem statement. Draw the IPO Write the algorithm What is the output given price of one item is R50 Complete the trace table Instruction amtOne amt50 amt save1 save2 amt50 amt save50 save output.

Different symbols are used to draw each type of flowchart. Programming makes you feel superior to other people. My presentations Profile Feedback Log out. Programmers make lots of money. An object or thing that you can describe. Test your algorithm by doing a trace table 1,Enter two integers. Numbers with fractions e. Function and main program communicate by parameters Order the order of the parameters must be the same as in the functions.

Display the weight of the food in kg as well as the amount due. When the expiry date is reached your computer deletes the cookie.


Published by Jasper Riley Modified over 3 years ago. The value that is returned from the sum function is assigned to total variable. Produce appropriate documentation for a given program application. If you have persistent cookies enabled as well, then we will be able to remember you across browser restarts and computer reboots. About project SlidePlayer Terms of Service. In other words, it can change more than one value. Enter values of the minimum and maximum temperatures for a givenday, then calculate the average temperature of the day.


Persistent cookies are stored on your hard disk and have a pre-defined expiry date. What is the output? To make this website work, we log user data and share it with processors.

A function or subprocedure can be called from a main procedure or from any other function or pirnciples as can be seen in some of the examples. The statements or instructions between the prrogramming of the algorithm and the end are called the body of the algorithm.

Do the following variable names comply with the rules? However, customers can also buy items in bulk packages of 50 orin which case a discount per item applies.


Add the two numbers to determine the sum. 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. Display means that a message or the contents of a variable are displayed shown on the eraxmus screen.

Basic Programming Principles: Textbook : C. Pretorius :

Determine and show the amount due on the screen. The customer has to pay R7. Declare array 1 2 3 4 5 Step 1: An array is a data structure that consists of a number of related variables. The output is The name of the learner is John. These numbers need to be sent to a function to calculate the amount due. A activation email has been sent basc you.

Authentication ends after about principlds minutues of inactivity, or when you explicitly choose to end it. All mainstream modern browsers have cookies enabled by default, so if you’ve been directed to this page it probably means you’re uisng a weird and wonderful browser of your own choosing, or have disabled cookies yourself.


We think you have liked this pretorihs. In both cases you should know how to switch cookies back on! He also pays a specific amount per kilometre travelled, entered by the owner.

The array can hold numerous values but identical data types. Like the example on slide 24 Two dimensional array consists of a number of rows and columns One dimensional array two dimensional array This array show the minimun Temperatures for the past seven Days of the week 3 4 5 2 6 18 22 23 24 19 25 This array shows pretoriuus minimum and Maximum temperatures for the past Seven days. Use modularization from the chosen programming language 3.

The function name should be the same in b function and in the statement calling the function i.

Programming really is fun. The next two statements enable the user to enter the age of a person to store in the variable called age. G, Basic Programming Principles. The algorithm must calculate and display the amount of interest earned ptogramming well as the balance at the end of every month for the next 15 months.

To access your account information you need to be authenticated, which means that you need to enter your password to confirm that you are indeed the person that the cookie claims you to be. A comment can be included anywhere in an algorithm. Write a complete algorithm with functions to solve the following problem: It is the position of an element in an array.

In this case, the purpose of the algorithm is explained.

Understand what the problem entails 3.