Comment

beejay
solve,
October 1, 2010 at 2:53 AM

C++ function declarations:

1) isEmptyList():boolean {query} - determines whether a list is empty

2) getLengthList():integer {query} - returns the number of items in a list

3) insertList(in ndx:integer,
in newItem:ListItemType,
out success:boolean )
- inserts an item (newItem) at a given position (ndx) in the list. The success flag should indicate whether the insertion was successful.

4) removeItemList(in index:integer,
out success:boolean)
- deletes the item at a given position (index)in the list.
The success flag should indicate whether the insertion was successful.

5) retrieveItemList(in index:integer,
out dataItem:ListItemType,
out success:boolean) {query}
- copies the item at a given position (index) in the list as dataItem. The success flag should indicate whether the insertion was successful

6) compareList(in firstItem:ListItemType,in nxtItem:ListItemType): integer
- compares the 2 list-items;
returns -1 if (firstItem is less than nxtItem)
returns 0 if (firstItem is equal to nxtItem)
returns 1 if (firstItem is more than nxtItem)


C++ function definitions using the operations declared above:
7) replaceItemList(in myList: List,
in oldItem: ListItemType,
in nuItem: ListItemType,
out succ: boolean)
- replaces oldItem in the list with a new item (nuItem). The succ flag should indicate whether the replacement was successful.

8) maxList(in byList: List,
out flag: boolean): ListItemType
- returns the highest value in a list. The flag should indicate whether the operation was successful.

9) isUniqueList(in urList: List): boolean
- determines if the list contains unique items with no duplicates.

10) retrieveItemPostList(in aList: List,
in dataItem: ListItemType,
out ndex: integer,
out succss: boolean) {query}
- returns the ordinal position (ndex) in the list of item dataItem. The succss flag should indicate whether the insertion was successful.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

how to solve this..
how to solve this..  Given a list of students and their marks Name... | 88 Grade : A = 100 - 90 B = 89 - 70 C = 69 - 50... the highest in that class. c. List the student name that gets the highest 

Java Beginners

how to solve this..
how to solve this..  Given a list of students and their marks Name... | 88 Grade : A = 100 - 90 B = 89 - 70 C = 69 - 50... the highest in that class. c. List the student name that gets the highest 

General

Ask C/C++ Questions online
Ask C/C++ Questions online       C and C++ are different programming language, but both the languages are popular among programmers. C is a general 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Java Beginners

basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function 

Java Beginners

C/C++ QUESTIONS
C/C++ QUESTIONS  ‚??Write a function for finding out the occurences of repeated word from a sentence. This function would return an array of duplicate words.‚ 

Java Beginners

C/C++ QUESTIONS
C/C++ QUESTIONS  "Write a function for finding out highest and lowest marks obtained by a student from an array contained student name and marks". For Example : GetHighestLowestMarks{Student{n}, Marks{n}} returns 

Programming Tutorials

C++Tutorials
C++ Tutorials              C++ Tutorial Namespaces are a relatively new C++ feature just now starting to appear in C 

Java Beginners

help me to solve this question
help me to solve this question  Write a program that inputs a series of integers into an array. The numbers are in the range 0 to 100. Calculate and display : a) The Largest number b) The Smallest Number c)The sum of the numbers 

Java Beginners

please solve the programme
please solve the programme  Develop a java program to find the roots of a quadratic equation ax2+bx+c=0, with the following specification :- Class name :- Quad Data members float a,b,c,d, with a,b,c are the co-efficient 

Java Beginners

help me to solve this problem..
help me to solve this problem..  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class Book { String title; //book‚??s title double price; //book‚??s price 

Java Beginners

help me to solve this question...
help me to solve this question...  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class Book { String title; //book‚??s title double price; //book‚??s 

Java Interview Questions

plz solve this program - Java Interview Questions
plz solve this program  write a program to out put this resault using two dimensional array this is an image of the reasult: http://www.4shared.com/file/154846107/dc2f1ac1/_2__Untitled-1.html so help me 

Java Beginners

Solve it
Solve it  How to calculate the value which contains oparator and operand both using command line argument 

Java Beginners

ArrayList question plz solve it
ArrayList question plz solve it  An arraylist object stores an Emp Object, where there is name,age,address of the employee is stored, And i want...","Mumbai",23)); list.add(new EmployeeData("C","Agra",24)); list.add 

Java Beginners

help me to solve this question
help me to solve this question   A user needs to key in data into system in order to save data into array. The data are: a. Lecturer ID, Lecturer... 2010/2011 2 c. Session and semester √Ę‚?¨‚?? The system 

Java Beginners

solve this
solve this   Create a student class. The student object should have studentid, studentname, subject and marks as properties. Also generate the getter and setter methods. Create 5 objects of this class and populate values 

Java Beginners

Solve
 

Java Interview Questions

C interview questions
C interview questions  Plz answer the following questions..... TECHNICAL - C /question number 1/ Code: int z,x=5,y=-10,a=4,b=2...? a. 5 b. 6 c. 10 d. 11 e. 12 /question number 2/ With every use of a memory 

Java Interview Questions

C interview questions
C interview questions  Plz answer the following questions..... TECHNICAL - C /question number 1/ Code: int z,x=5,y=-10,a=4,b=2...? a. 5 b. 6 c. 10 d. 11 e. 12 /question number 2/ With every use of a memory 

PHP Questions

Please Help To Solve My Problem
Please Help To Solve My Problem  PHP I Have 6 Textbox and 1 ok button. 6 Textbox to Add the 6 Team Name. Each Team Name In String(Like- A,B,C,D,E,F... With B Team when A Team Play With B Team Again Then Generate Error. I Am Solve 

JavaScript Questions

i need help to solve this problem
i need help to solve this problem  Write a stack class... queue capacity 6 b. A joins the queue c. B, C and D join the queue d. A leaves the queue e. B and C leave the queue f. E, F and G join the queue g 

IDE Questions

c++ - IDE Questions
c++  how can i write a simple program in c++ that outputs 399 in words?thank you.  Hi Friend, C program to convert number to words: #include #include char *ch1[]={" "," one"," two"," three"," four"," five 

Java Beginners

how do i solve this question?
how do i solve this question?  1.Define a class named Circle with the following properties: a) An integer data field named radius with protected... that represents the value of pi. c) A default constructor. d) A constructor that creates 

Java Interview Questions

C - Java Interview Questions
 

Ajax Questions

ajax code please help to solve this........
ajax code please help to solve this.  in this i am trying to get data from datbase and put it in combo box and then display it down using table...="black">Copyright (c) 2011 . All rights reserved. Design bY Pratyush 

SQL Question

c# (ado.net)
c# (ado.net)   i am preparing a 180 query questions. how to make a groupbox that include 3 radio buttons named (YES, NO, CANCEL)when i select YES then, the YES is stored in the sql,when i select NO then, the NO is stored 

Java Beginners

programming c#
programming c#   create and make use of at least one class with appropriate instance methods to solve the programming problem. use console-based menus to navigate between the functionality offered by the application. at least one 

Programming Questions

Software Questions and Answers
and Answer page. Ask the Questions and provide your help to solve the questions...Software Questions and Answers View Software Questions and Answers online Discuss Software development questions, ask your questions and get answers 

Programming Questions

Software Questions and Answers
in which users can ask, respond and share their questions and answers to solve all... the Questions and provide your help to solve the questions posted here. You can...://www.roseindia.net/answers/askquestions/askquestion.html View latest Questions 

Java Interview Questions

Difference between C++ and Java - Java Interview Questions
Difference between C++ and Java  Basic difference between C... was derived from C++ but still there is big difference between these two... definition in C++, but there is no closing semicolon. 3. Forward reference 

PHP Questions

solution of k map in c
solution of k map in c  write a program in c to solve k-map with digital circuit 

Java Interview Questions

about c and java
about c and java   i need java and c language interview and objective questions with answers for the fresher.please provide to me   Please...://www.roseindia.net/c-tutorials/ http://www.roseindia.net/interviewquestions 

Java Beginners

questions
b. write a program to to calculate factorial of a no. c. write a program... to decimal. c. write a program to do following:- i) addition of two matrices 

JSP Servlet Questions

solve this pbm
solve this pbm  its not working the code for databae access using servlets 

Log4J Questions

how to solve
how to solve   log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly 

Blog

Site map - C Tutorials
Index  | About-us | Contact Us | Advertisement | Ask Questions...; C Tutorials  | Java Tutorials | PHP Tutorials  | Linux...; | XPath Tutorials | HTML Tutorials C Tutorial Section C String Reverse 

JSP Servlet Questions

solve this pbm
solve this pbm  sir rows are also inserting i have checked in the database also the rows are not affected in the table . The first pbm wich i have sent to you is not yet solved.......... pls give me detail explaination how we 

Framework Questions

C# Error - Framework
C# Error  Please Solve The Following Error & Post Reply Error : ExecuteReader: Connection property has not been initialized. private void... for c# error 

Java Beginners

C Language - Java Beginners
C Language  1. What are extension files? Give examples. 2. What is operating system? What are the different types available? 3. What... answer for the above questions since it is very much needed urgently 

JSP Servlet Questions

solve this problem
solve this problem  I typed this program and compiled.The program is compiled but when i eneterd url in tomcat server. Its not giving error but only blank page is coming the text is not displaying and row is also inserted 

Development process Questions

C++ program not running
C++ program not running  Hi, this program need to ask 10 random questions with a random month name. Example: RUN How many days are there in the month of March? 28 No March has 31 days. How many days are there in the month 

Java Interview Questions

JAVA - Java Interview Questions
JAVA  WAP TO SOLVE {(a-b)+(c*(d/e%f)} as a=5,b=7,c=9,d=11,e=13,f=15  Hi Friend, Try the following code: class Series{ public static...=a-b; double c2=d/e; double c3=c2%f; double c4=c*c3; double calculate 

C++

Java vs C
Java vs. C Language In this section we will compare Java and C Programming languages. Both these languages are used to develop applications to solve..., solaris etc. It is not necessary to compile the program for each platform. The C 

Ajax Questions

c#
c#  how to find out the size of the BMP image in C 

CVS Questions

C++
C++  How can i write this in dev c 

Development process Questions

C++
C++  How can i write this in dev c 

General

Ask Programming Questions Online
, Html questions, PHP questions, Ajax questions, EJB questions, MySQL questions, C...Ask Programming Questions Online   ... from different fields, who can solve the problem through using their skills 

Development process Questions

c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator 

Ajax Questions

c#
c#  how to find out the size of the BMP image 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle 

Development process Questions

C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Java Beginners

c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used 

Development process Questions

C++ Starter needs help :S
questions abaut C++. Please help! :(   Please visit the following link: C...C++ Starter needs help :S  Hi, im 15 & im trying to learn how to program, i am starting with C & C++ since these are (what ive been told 

Development process Questions

C++
C++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Development process Questions

c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples 

Design concepts & design patterns Questions

C++
C++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3 

Development process Questions

c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values 

Java Beginners

C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack 

Java Beginners

C#
C#  i need a code that will make program perform the basic operations upon the data Listview save, update and cancel 

Development process Questions

C++
C++  I have been asked to write a programme that gets five values,gets the sum,average and product please help me 

Development process Questions

C#
C# register form  i want to generate a user id automatically after filling their register form and i want to show their id to their email? please reply me soon 

UML Questions

c++
c++  Consider the following function: int funcExercise7(int list[], int size) { int sum = 0; for (int index = 0; index < size; index++) sum = sum + list[index]; return sum 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void... private members does class xClass have? c. How many constructors does class xClass.... Write a C++ statement that prints the values of the data members of the object 

Development process Questions

c++
c++  .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

Development process Questions

c++
c++  write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area 

Development process Questions

C++
C++  write a prgrm tht gets five values,gets the sum,average &...; #include <conio.h> void main() { clrscr(); int a,b,c,d,e,sum; float average...;>b>>c>>d>>e; sum=a+b+c+d+e; average=sum/5; product=a*b*c*d 

Spring Framework Questions

c++
c++  write a program that gets a key or character from the keyboard and displays it ASII code in decimal, hexadecimal and binary form.It must also give a description of the key pressed 

UML Questions

c++
c++  Consider the following declarations: class xClass { public: void func(); void print() const; xClass (); xClass (int, double); private: int u... private members does class xClass have? c. How many constructors does class xClass 

CVS Questions

c++
c++  Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. Also find the exact number of additions executed by the loop. (Assume that all variables are properly declared.) for (int i = 1; i <= n; i++) sum = sum + i 

Development process Questions

c++
c++  .write a prgrm tht accepts 5 subjects of a student,it shld hv a function to calculate the average & another function to grade.grade shld be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70 

UML Questions

c++
c++  Characterize the following algorithm in terms of Big-O notation. for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) for (int k = 1; k <= n; k++) cout << i + j + k 

UML Questions

C++
C++  . Consider the definition of the following class: class CC { public: CC(); //Line 1 CC(int); //Line 2 CC(int, int); //Line 3 CC(double, int); //Line 4 . . . private: int u; double v 

UML Questions

c++
c++  Write the definition of the class dayType that implements the day of the week in a program. The class dayType should store the day... on an object of type dayType: a. Set the day. b. Print the day. c. Return the day 

Development process Questions

c++
c++  write a programme that calculates the area and circumference of a rectangle   #include<conio.h> #include<iostream.h> class rect { int l,b; int area; int peri; public: void get_rect() { cout<<"\n 

Java Beginners

c++
c++   Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9, 0, 4, 2, 6. Second, assume integer variables "a," "b" and "y" with values of 3, x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1 

Java Beginners

program on k-map with graphical circuit in c
program on k-map with graphical circuit in c  write a program in c to solve k-map with digital circuit 

PHP Questions

Ask PHP Questions
Ask PHP Questions       PHP Questions and Answers Ask PHP Questions and get answers from our users and our development team. We will try to solve your queries ASAP 

IDE Questions

Applets - IDE Questions
Applets  Someone please help how to solve this JAVA programs a)An applet that does the following. Takes as input three numbers, computes two numbers... along the top of the frame C) Program that tosses a coin several times 

Java Beginners

A Program To Solve In Java
A Program To Solve In Java  x!/x+(x+2)!/x+(x+4)!/x ... (x+n)!/x 

Java Beginners

How to solve this java code by adding the student marks not in the list of the table. For example -10 and 156 in GUI?
How to solve this java code by adding the student marks not in the list...) { data[a].setGrade("C-"); } if (marks >= 55 && marks <= 59) { data[a].setGrade("C"); } if (marks 

Development process Questions

C,C++
C,C++  Sir, 100&30 gives output 4 in C++ and 100|30 gives output 116 How & and | gives output 4 and 116 

SQL Question

please solve this program
please solve this program  Build a package EMPPACK that contains one stored function Validatesal() and two stored procedures Insertemp() and Getempdetails().The Insert_emp() procedure inserts a particular employee 

Development process Questions

C,C++
C,C++  int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r);   #include<stdio.h> #include<conio.h> void main(){ int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r 

Programming Questions

Ask Questions
Ask Questions      ..., to solve your problems at quicker speed, we have introduced this service. Since now you will have to just ask the questions and leave rest of us on ourselves 

JavaScript Questions

plz solve my query?
plz solve my query?  how to remove all the options from select control in html using java script?   JavaScript remove all items <html> <script language="javascript" > function removeAllItems(selectbox 

Java Beginners

Solve Program - Java Beginners
Solve Program  Write a progaram in java to display all odd number from 1 to 100   hi use this code package rajanikant.code.sep_2008; public class EvenOdd { public static void main(String s 

JSP Servlet Questions

Solve this problem plzzz
Solve this problem plzzz  Prashant.jsp (this is my JSP file) <HTML> <HEAD> <TITLE>Login using jsp <BODY>... kindly help me and check all those files and solve my problem as soon as possible 

Java Beginners

Solve it - Java Beginners
Solve it  Hi Friends, Thanks for continue reply.. I have some query please solved...its urgent.. I have two table,emp,exam.both have e... is write here. no information display in the jsp file please solve it and let me 

JDBC Questions

Solve my code
Solve my code  import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.io.*; public class ChangeDetails extends HttpServlet{ public void doPost(HttpServletRequest request,HttpServletResponse 

Java Beginners

solve it - Java Beginners
solve it  Hi friend, I want to use switch case in jsp please let me know how to call page in jsp using include tag i want call this file using include tag please help me use switch statement in jsp 

JavaScript Questions

solve my question shortly
solve my question shortly  <html> <head> <script> function checkphoneNumber(number){ if(/[^\d ]/.test(number)){ alert('It should contain numbers [0-9] only!'); document.getElementById 

Java Beginners

to solve the error - Java Beginners
to solve the error  class bubbleSort1{ public static void bubbleSort(int[] x) { int n = x.length; for (int pass=1; pass < n; pass++) { // count how many times // This next loop becomes shorter and shorter for (int i=0 

Java Beginners

I couldn't solve it
I couldn't solve it  *A customer who wants to apply for getting a car license should provide information about the brand of the car. *Then the customer receives a request ID from the office. *The customer's request (represented 

WebSevices Questions

programming questions
programming questions  this is my assignment questions please help me... the programs in c# language Describe the following with respect... concepts. Write a program in C# language to perform the following operations: a. Basic 

Java Interview Questions

How to solve the Hibernate Common Exceptions?
How to solve the Hibernate Common Exceptions?  How to solve the Hibernate Common Exceptions 

Advertisements Advertisements
 

 

 

DMCA.com