StudentShare
Search

Logo Programming Language - Essay Example

Summary
Question 1) Report (include examples) on your explorations and the applications of recursion in Topic 4. Detail the components of recursive procedures and explain in detail how the solution to Exercise 4.8 draws the square spiral.
Answer) The Logo programming language is a functional programming language…

Extract of sample "Logo Programming Language"

Download file to see previous pages Recursion is an alternative to REPEAT command. In general, Recursion is delineating as the process under which a function is defined in such a way that the function being defined is applied within its own definition. The term can be explained by taking a very simple example. Suppose, when the surfaces of two mirrors are placed parallel with each other the nested images that occur are a form of recursion. The great advantage of recursion is that an infinite set of possible sentences, designs or other data can be defined, parsed or produced by a finite computer program. Logo allows the recursion where a procedure calls itself.
The secret of recursive programming is the same as a secret of problem solving in general that is to reduce a big problem to a smaller problem. Now to make the above program more general and flexible, we can use recursive pattern in the following way.
In the above example, we use the variable word instead of word "hello" and a general relationship is defined that will transform hello into hell. That relationship is established using the keyword butlast.
The above procedure becomes more meaningful using the stop rule. To implement stop rule user must answer, "What's the smallest case we want the program to handle" The answer is that for a single-letter word the downup should just print the word once. In other words, for a single-letter word, downup should carry out its first instruction and then stop. So the stop rule goes after that first instruction, and it stops if the input has only one letter:
to downup :word
print :word
if equalp count :word 1 [stop]
downup butlast :word
print :word
end
Another application of recursion is to draw square spiral. The following is the code to draw square spiral.
TO SQSPI :L
IF :L > 150 [STOP]
FD :L RT 90
SQSPI :L + 5
END
Suppose we give a command SQSPL 100
That means he should write 100 on a piece of paper and put it in his :L pocket.
IF (:L > 150) [STOP]
This is "the stop condition". The turtle looks in the front of his :L pocket and sees 150. He asks himself if 100 >150. If it is, then he will STOP. It is not, so he carries on.
Now "the action" is performed. First FD :L, so the turtle walks FD 100. Then RT 90. Now he has drawn this:
And then "the call":
SQSPI :L + 5
How can we tell the turtle to do SPIRAL again before he has finished with the first The turtle does not care. He just says I will finish the first SPIRAL later. He knows that the latest paper he put in his :L pocket is the only thing he needs to keep track of now. He saves the rest for later.
: L + 5 is 100+5. That is 105. Therefore, the turtle now puts a paper with 105 in front of the other paper in his pocket. The next thing he sees is this:
IF (:L >150) [STOP]
This is "the stop condition" again. He looks at the paper he just put in his :L pocket. Its 105, so it is smaller than 150. Therefore he does not stop.
Then there's "the action". He sees FD :L. So he walks FD 105. Then RT 90. Now he has drawn this:
Then there's "the call" again:
SQSPI :L + 5
He says: I will finish this later. Now I must draw SPIRAL 110. He writes 110 on a paper and puts it in front of the o ...Download file to see next pagesRead More
Cite this document
• APA
• MLA
• CHICAGO
(“Logo Programming Language Essay Example | Topics and Well Written Essays - 3000 words”, n.d.)
(Logo Programming Language Essay Example | Topics and Well Written Essays - 3000 Words)
https://studentshare.org/miscellaneous/1532153-logo-programming-language.
“Logo Programming Language Essay Example | Topics and Well Written Essays - 3000 Words”, n.d. https://studentshare.org/miscellaneous/1532153-logo-programming-language.
Click to create a comment or rate a document

CHECK THESE SAMPLES OF Logo Programming Language

Television Programming

... on the television programmes are likely to be emulated by others because people do not see why they cannot use those vulgar words when someone on television has used such words. The kind of language brought on television is likely to be copied by someone else. The culture of the American people is indeed advanced through Media advertisements and programming. There are people who choose what they watch and people who do not emulate foreign cultures. Such people are not affected by television advertisements because of merely choosing what is given to them. What cannot go unnoticed is the fact that most people are influenced by the television. A greater percentage lies mainly on the people who are influenced by the media. Advertisements...
6 Pages(1500 words)Essay

Python Programming Language

...?PYTHON PROGRAMMING LANGUAGE Python Programming Language Affiliation Table of Contents Table of Contents 2 Introduction 3 Python 3History of Python 4 Design Goals 5 Implementations 6 Python Advantage 7 Scripting Languages 7 Python is Easy to use 8 Python is simple 8 Python is safe 9 Object-oriented programming Support 9 Python is fun 10 Python is practical 11 System administration of Linux through Python 11 Python and Linux 11 Modules 12 Python Administration 12 Linux System administration Characteristics 13 Linux System Administration with Python Examples 13 Example 14 Additional usage for scripts 15 Analysis 15 Conclusion 16 References 17 Introduction Python programming language includes various features of modern programming languages...
15 Pages(3750 words)Essay

...?ADA95: PROGRAMMING LANGUAGE ADA95: Programming Language Affiliation Table of Contents BACKGROUND 4 HISTORY 4 ADA: MAIN OBJECTIVE OF THE LANGUAGE  6 LANGUAGE GOALS FULFILLMENT 7 SYNTACTIC OR SEMANTIC DETAILS 9 ISSUES IN PROGRAMMING 9 PRESENT USES OF ADA 10 CONCLUSION 11 REFERENCE 12 INTRODUCTION The Ada language emerged as a result of most widespread and costly language design attempts ever done. Up till year 1974, The Department of Defense has used embedded software system applications to manage operations. In this scenario, an embedded software system is one in which the technology based computer hardware is implemented in the systems it controls. However, more than 450 programming languages were utilized to manage numerous working...
8 Pages(2000 words)Research Paper

Paul Smith Logo

...? PAUL SMITH LOGO Paul Smith Logo Introduction Paul Smith logo is a trademark of a fashion company which was named after the owner Sir Paul Smith. The company is among the British fashion designers. Paul Smith adopted the small design to identify his fashion and company products (Smith & Busch 2001). The logo portends an outward simplicity on an ordinary viewing but complex on analysis. This research intends to analyze the logo concerning the design, color, use, the message and context. The analysis will base on the principle outlining that every element of the logo has a purpose and meaning. The design would consider the size shape and orientation of every element constituting the logo. The color would emphasize on the variations...
4 Pages(1000 words)Essay

Programming

... in the program. b) void Time::setTime (int hh, int mm, int ss); { hour = (hh>=0 && hh<24) h :0; mnute = (mm>=0 && mm<=60) m : 0; second = (ss>=0 && ss <60 ) s : 0; } Time::Time() { hh=mm=ss=0; } c) Int Time::timesAreEqual (Time &tl, Time &t2); { if ( t1.hour= t2.hour && t1.minute == t2.minute && t1.second == t2.second ); return 1; else return 0; } Question 28 a) A pointer is a variable that holds some memory address. b) An array in C++ is a variable that holds subsequent memory locations up to the number declared by the user. The first element in the array has the index 0. d) when the statements q1 = &x; and q2 = &y; are executed pointer q1 get the value of x and q2 gets the value of y. x 78 y 96 x=78 y=96...
9 Pages(2250 words)Research Paper

Procedural programming languages and object oriented programming language

...Procedural programming languages and object oriented programming language Introduction: Object oriented languages and procedural programming languages are basically two different paradigms based on two different thought processes. Both paradigms offer different approaches to model system solutions. Procedural programming is simply an approach to programming and the languages that support this methodology are called procedural programming languages, as is the case with object oriented programming languages. However it should be noted that it is possible to write an object oriented code using a procedural language like turbo C, similarly it is also possible to write a procedural code using an object oriented programming language like C#. 2...
2 Pages(500 words)Essay

...What makes a bad logo? A logo is a symbol of advertisement as it is used to project the image of a particular brand. However, a logo could either be good or bad as a logo can make a good brand look bad. It is important to look at the things that make a bad logo. A logo that does not appeal to its audience is a bad logo. Thus, in designing a logo, the type of audience that the logo is meant for must be put into consideration (Chase et al. 2008). A logo that does not tell a story in the simplest form, but makes it more complicated is a bad logo (Chase et al. 2008). A logo that starts with a bad font and ignoring the weight and letter spacing is a bad logo (Chase et al. 2008). The use of computer tricks in designing a logo could also make...
1 Pages(250 words)Essay

Programming

...Logic and Programming Programming A problem Analysis Chart Given information The information provided is that children below 18 Years of age should not be considered as customers for purchases. Required Results Processing required Solution Alternatives The only alternative is to use the “if” condition to test whether the age is greater than, equal to or less than 18. 2. A flowchart 3. A chart showing input, output, and processing Year of Birth YOB Year Today YT Age (YT-YOB) Status Accepted / Rejected 4. Algorithm (Pseudo code) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication3 { public partial...
1 Pages(250 words)Essay

Sports logo

...Sports Logo al Affiliation Sports Logo It is absolutely impossible to imagine a sports team without a sports logo, at leastin the world of professional sports. Sports logo is an important attribute of any sports team and along with the name of a team is part of its brand reflecting a teams identity, spirit, historical background and much more. Sports logo has long become one of the key elements of visual representation of a teams brand aimed at shaping a positive and memorable impression about a sports team. In this short essay I will analyze a Minnesota Vikings team logo. Minnesota Vikings is a well-known American football club of the National Football League from Minneapolis, Minnesota, USA. It was established 54 years ago...
2 Pages(500 words)Essay

Chomsky: Language Acquisition Device

Skinner and many others. From their theories and arguments (Avram) Noam Chomsky, an American linguist and educator, as well as political activist, came up with his own views and theories which rejected, accepted and added depth in the study of language revolutionizing linguistics.
Today, English is known to be the universal language. To be at par with the rest of the world and to be able to compete and join the bandwagon of technology and business, even professionals of different nationalities study language without so much of a difficulty.
The paper consists of discussions on Chomsky’s view on Language Development focusing more on what is called the “universal grammar” comparing it with the theories of...
6 Pages(1500 words)Assignment

An Analysis of the Differences in Brain Processes of Males and Females during Language Tasks

Such is the case with the development of cognitive functions and language skills. While the brain may have complexities that we simply haven’t even yet scratched the surface of, seemingly every day there are advancements in our knowledge of brain functions.

MRI’s and various cognitive function tests have shown that males and females use different parts of their brains while performing the exact same language tasks; the biological basis for this is due to the organizing effects of testosterone and estrogen. Females have long been known to be slightly ahead of males as far as language skills at younger ages, but this could also be attributed to the fact that overall females develop earlier than males and reach...
7 Pages(1750 words)Case Study

Language Learning Strategies of Listening Comprehension

...Do meta-cognitive Language Learning Strategies assist in the SLA of listening comprehension? Learning Disabilities Even though most researchers agreeabout the characteristics of learning disabilities, there is a disagreement about what should or should not be included in the definition of learning disabilities. While there is some agreement about these general topics, there is continued disagreement in the field about diagnostic criteria, assessment practices, treatment procedures, and educational policies for learning disabilities. A number of influences have contributed to these disagreements, which in turn, have made it difficult to build a generalized body of scientific and clinical knowledge about learning disabilities. Furthermore...
10 Pages(2500 words)Case Study

Teaching Language and Communication Skills

“Language occurs through an interaction among genes (which hold innate tendencies to communicate and be sociable), environment, and the child’s own thinking abilities” (Genishi, 2006). But just how does this happen? How do children learn to use sounds to communicate and then to place those sounds in the correct order to make themselves understood? While some of this behavior can be attributed to the imitation of the caregivers, there remain aspects to the development of language and communication that cannot be so easily explained. To provide a more complete understanding of how language and communication develop in the young child, it is necessary to understand not only the primary terms that are applied, but al...
12 Pages(3000 words)Case Study

Syllabus Design for Learners of English as a Second Language

The translation and transmutation of syllabuses into the teaching procedures are generally recognized by the established conceptions of the second language learning methodologies, predominant amongst them are the Grammar Translation Method and Audiolingual Method. These notions in addition to the emergent concepts aiding to the structuring of the syllabus and curriculum for English as the Second Language are critically discussed in detail in this literary essay.

English being globally considered and established as the ‘lingua franca’ whether in terms of international communications or technological interrelations, hence English as the second language is extensively popularized and most sought after language...
7 Pages(1750 words)Research Paper

Childhood Language Acquisition

The study of language is inherently victim to scientific frustration because of our inability to create language. Indeed, the subject of study is confined to those languages already ensconced into linguistic communities. Children’s acquisition of language is an equally troublesome area of research insofar as children are not subject to the researcher’s manipulation like any other variable Moreover, unlike the ideal variable in the study, a child’s linguistic development does not occur in a vacuum: it coincides temporally with not only physical/motor growth, but also cognitive, perceptual, and social development. In spite of these methodological problems with studying the nature of the language-acquisition process...
7 Pages(1750 words)Coursework

Explorations in Language and Meaning

...Although dictionaries exist that claim to offer clear and concise definitions of words, for linguistics the issue involves philosophical concerns: How is objective meaning determined for language? What methods are used to determine the difference between one word and another? Is it possible to say words spelled similarly have different meanings? This essay examines these questions by analyzing the linguistic concepts of Referential Theory, Image Theory, Polysemes, and Homonymys. 1. THEORIES OF MEANING Referential Theory Referential Theory refers to a method of determining linguistic meaning. In this theory, word meaning is determined by everything that can be physically referenced to the word. These connecting words are referred...
7 Pages(1750 words)Essay

Australias Policies on Language and Multiculturalism

The state government is headed by the Premier (Government in Australia n.d.). Each state has its own electoral and educational system (Government in Australia n.d.). Composing the state are smaller political subdivisions or municipalities and run by the local governments called councils (Government in Australia n.d.).
Multiculturalism is an essential element of Australian society since it provides the framework for social goals that foster solidarity and upholds ideas, capacity and economic growth (Multiculturalism 1996). According to the South Australian Multicultural and Ethnic Affairs Commission Act of 1980, multiculturalism refers to the “policies and practices that recognize and respond to the ethnic diversity of t...
9 Pages(2250 words)Assignment

User-Friendly Website Design and Programming

The ability to have the correct design and program as well as the options for user-friendly sites will not only affect the use of the site but will also make a difference in how the company or individual site is represented. Examining the different components of the designing and programming will make a difference in how the users are able to work with different sites.
The common use of websites to find information and businesses has also led to preferences that users have for web sites. Programmers need to keep the idea of what users recommend with websites first. This will make a difference in their desire to navigate through a site and to move through the various pages that send the required information about a business or...
9 Pages(2250 words)Lab Report

Python Programming Language

...﻿Python Programming Language Introduction Python programming language includes various features of modern programming languages such as it is an interactive, explained, and programming language which works on objects. Additionally, it includes programming exception, components, extremely elevated level of dynamic data types, brisk typing and class level functionalities. In addition, python language integrates amazing control with extremely clear and simple language syntax or python programming rules. Moreover, it offers user interfaces to a lot of system calls, built-in libraries, and to a variety of window systems. Thus, we can say that the python language has the power to be integrated within C++ or C capabilities. On the other hand...
12 Pages(3000 words)Essay

The Language of Authors in Expressing Issues in the Novel

The use of the narrator in the novel helps illustrate sensual, erotic, and heartbreaking moments. To achieve its goal of exploring the acknowledged subject of love, betrayal, beauty, and desire, the author approaches the issues with an overwhelming zeal. Hence, the aim of the study is to evaluate the various techniques used in the two narratives in communicating their notions of the various subjects within the novels.
Acker uses language from other writers; as well, the plot in her fiction employs appropriation, which in return propels appropriation to the extreme since a huge part of her writing integrates texts of fiction from past writers. Blood and Guts in High school deal with the journey of a young lady through a dark w...
8 Pages(2000 words)Literature review