General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 15th, 2011, 04:22 AM
jessiejester jessiejester is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 1 jessiejester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 50 sec
Reputation Power: 0
Question What is this style of coding??

Hi all, I am new to this site.

I am currently studying a bachelor of Multimedia and one of the subjects is programming.

We are currently learning a style (i think) ACL:- algorithmic computer language.

My question: "I cant seem to find basic help on how to write one on google or books. So i do not know if it is known by another programming code. Also if anyone knows any good books to help me" THANK YOU

Example:
"Problem: Write an algorithm that reads 3 integers and prints the largest one.

Solution:

algorithm largest
{int largest, n2, n3;

read(largest, n2, n3);

if (n2 > largest)
largest = n2;

if (n3 > largest)
largest = n3;

print(largest);
}"

Example 2:

Problem : From an array of 10 integers, print all integers greater than 1000. The data values for the array will be input by the user.

algorithm array_1000
{int numbers[10], i;

// read in the numbers
for (i = 0; i < 10; i = i + 1)
read(numbers[i]);

// print any that are > 1000
for (i = 0; i < 10; i = i + 1)
if (numbers[i] > 1000)
print(numbers[i]);

}

THANK YOU so much. If you want me to clarify better please let me know

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > What is this style of coding??


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap