Lab Session-10 CSIT221 Fall 2002 - PowerPoint PPT Presentation

About This Presentation
Title:

Lab Session-10 CSIT221 Fall 2002

Description:

Write a program that calls a recursive function to display all ... You should build the sorted list class from the online code for sorted list ... Displayer. ... – PowerPoint PPT presentation

Number of Views:11
Avg rating:3.0/5.0
Slides: 4
Provided by: sunyfr
Category:

less

Transcript and Presenter's Notes

Title: Lab Session-10 CSIT221 Fall 2002


1
Lab Session-10 CSIT221 Fall 2002
  • Lab Exercise Based on recursion (Demo Required)

2
Lab Exercise (Demo Due Nov 12th Sec 01 and Nov
14th Sec 02)
  • Write a program that calls a recursive function
    to display all the items in a sorted list in any
    order (forward or backward). You should build the
    sorted list class from the online code for sorted
    list implementation. Then you should add
    necessary member and auxiliary functions to do
    the job. Your program will be tested as follows

3
Testing the Program
  • Source Code Test Must Use Recursive Functions
  • Test Data12,3,67,45,18,32,76,22,85
  • Program displays the following
  • Welcome to List Displayer. Enter 1 for displaying
    forward and 2 for displaying backward(3 to quit)
  • lt1gt ENTER
  • 3,12,18,22,32,45,67,76,85
  • Welcome to List Displayer. Enter 1 for displaying
    forward and 2 for displaying backward (3 to quit)
  • lt2gt ENTER
  • 85,76,67,45,32,22,18,12,3
  • lt3gt ENTER
  • Thank you!!.Exiting
Write a Comment
User Comments (0)
About PowerShow.com