Pseudocode algorithm to print the numbers from 1 to 10, Data Structure & Algorithms

1. Write a pseudocode algorithm to print the numbers from 1 to 10, and then from 10 to 1, using exactly one loop.

2. The function contains() takes a food as an argument and tells you whether the pizza contains that food. Tomas is allergic to peanuts, tuna, and onions, but strangely, eating peanuts and onions together is fine for him. Write a condition that determines whether the pizza is safe for him to eat.

 

Posted Date: 3/20/2013 2:07:50 AM | Location : United States







Related Discussions:- Pseudocode algorithm to print the numbers from 1 to 10, Assignment Help, Ask Question on Pseudocode algorithm to print the numbers from 1 to 10, Get Answer, Expert's Help, Pseudocode algorithm to print the numbers from 1 to 10 Discussions

Write discussion on Pseudocode algorithm to print the numbers from 1 to 10
Your posts are moderated
Related Questions
Q. Can a Queue be represented by circular linked list with only one pointer pointing to the tail of the queue? Substantiate your answer using an example. A n s . Yes a

A spanning tree of any graph is only a subgraph that keeps all the vertices and is a tree (having no cycle). A graph might have many spanning trees. Figure: A Graph

Thus far, we have seen the demonstration of a single queue, but several practical applications in computer science needs several queues. Multi queue is data structure in which mult

a. In worst case the order of linear search is O (n/2) b. Linear search is more competent than Binary search. c. For Binary search, the array must be sorted in ascending orde

Ask queConsider the following functional dependencies: Applicant_ID -> Applicant_Name Applicant_ID -> Applicant_Address Position_ID -> Positoin_Title Position_ID -> Date_Position_O

Explain the Memory Function method The Memory Function method seeks to combine strengths of the top  down and bottom-up approaches  to  solving  problems  with  overlapping  su

explain two strategies to implement state charts with the help of an example of each.

A useful tool which is used for specifying the logical properties of a data type is called the abstract data type or ADT. The term "abstract data type" refers to the fundamental ma

After learning this, you will be able to: understand the concept of algorithm; understand mathematical foundation underlying the analysis of algorithm; to understand se

Abstract Data Types :- A useful tool for specifying the logical properties of a data type is the abstract data type or ADT. The term "abstract data type" refers to the basic mathem