Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
0 ratings
0% found this document useful (0 votes)
26 views
2 pages
Data Structure Midterm Lab Project
Uploaded by
Samer Kouta
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save data_structure_midterm_lab_project For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
26 views
2 pages
Data Structure Midterm Lab Project
Uploaded by
Samer Kouta
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Go to previous items
Go to next items
Download
Save
Save data_structure_midterm_lab_project For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save data_structure_midterm_lab_project For Later
Search
Fullscreen
Midterm Project — Data Structure Exercise: Write a java program with the following: - Class ArrayChar that have as private attribute (char[] arr, int size) and it can apply all the methods of ArrayList depending on basic array implementation and algorithm -- ArrayChar can be resizable at any size (similar to be ArrayList but it is not). - Class Stack that can apply all the methods of stack (the implementation Is based on ArrayChar) where the top of stack is the beginning of ArrayChar - Add method Reverse in stack class to reverse a String of characters (entered as. parameter) based on stack methods (push and pop). You can accept from input (char or String) - Method searchFor that can accept also a char or a String you asked for and return an ArrayList contains the count of each char exists in stack - Menu that accepts the input from scanner and output the result based on your choice - Class main to instance ArrayChar and Stack and apply the code of the menu NB: The Following sample run explain how program work (read it carefully). And it should be repeated until you choose to exit. - Choices from 1 to 6 should be based on ArrayChar and from 7 to 12 should be based on Stack Sample Run: The Menu > Insert in Beginning - Insert in end - Insert in particular position . Delete from beginning . Delete from end . Delete from position Push - pop « Length 10. Reverse 11. Display 12. Repeated character 0. BxitSample Run: Execution example Enter your choice: 1 Enter a characte! © c is entered at first Enter your choice: 2 Enter a character: bed bed is entered at end 10 Enter your choic The reverse string i: 1 Enter your choic The string is: cbed Enter your choic: b is pushed into stuck Enter your choice: 12 Enter a character to search for: b is found: 2 times Enter your choice: 12 Enter a character to search for: b is found: 2 times e is found: 1 time Enter your choice: 0 Good Bye Exercise 2: debe be - Isit possible to replace the Stack project in exercise_1 by a Queue? — If possible: rewrite the code using LinkedList implementation to do the same menu. ~ If not possible: Explain why
You might also like
Data Structure Midterm Lab Project
PDF
No ratings yet
Data Structure Midterm Lab Project
2 pages
Ashish Ada Lab File
PDF
No ratings yet
Ashish Ada Lab File
37 pages
STACK & Queue Project (1) (1) Arkadip
PDF
No ratings yet
STACK & Queue Project (1) (1) Arkadip
65 pages
Stack Implementation Guide
PDF
No ratings yet
Stack Implementation Guide
20 pages
DSA Programs
PDF
No ratings yet
DSA Programs
59 pages
Program For Implementing A Stack & To Perform Push & Pop Operations
PDF
No ratings yet
Program For Implementing A Stack & To Perform Push & Pop Operations
28 pages
Java Program for Factorial Calculation
PDF
No ratings yet
Java Program for Factorial Calculation
10 pages
Oops Program Manuval
PDF
No ratings yet
Oops Program Manuval
62 pages
Record and Observation
PDF
No ratings yet
Record and Observation
23 pages
Midterm Practical Exam Guide
PDF
No ratings yet
Midterm Practical Exam Guide
2 pages
MENU 1 - Insert 2 - Delete 3 - List 4 - Close Please Enter The Option
PDF
No ratings yet
MENU 1 - Insert 2 - Delete 3 - List 4 - Close Please Enter The Option
10 pages
STACK & Queue Project (1) (1) DBDBNDNDJND
PDF
No ratings yet
STACK & Queue Project (1) (1) DBDBNDNDJND
36 pages
Data Structures
PDF
No ratings yet
Data Structures
63 pages
Korock Computer First Term Project 12 - Final
PDF
No ratings yet
Korock Computer First Term Project 12 - Final
56 pages
Record Oop Cs3381
PDF
No ratings yet
Record Oop Cs3381
71 pages
DS File 2
PDF
No ratings yet
DS File 2
68 pages
Data Structures Record (1) - 1
PDF
No ratings yet
Data Structures Record (1) - 1
67 pages
Data Structure File Mandy
PDF
No ratings yet
Data Structure File Mandy
59 pages
C++ Lab
PDF
No ratings yet
C++ Lab
26 pages
DSA M1&2 QB Answers
PDF
No ratings yet
DSA M1&2 QB Answers
25 pages
Lab Manual - DSA
PDF
No ratings yet
Lab Manual - DSA
43 pages
Some Dsa Programs
PDF
No ratings yet
Some Dsa Programs
56 pages
ADSA Lab
PDF
No ratings yet
ADSA Lab
30 pages
50 Kash Sharma DS
PDF
No ratings yet
50 Kash Sharma DS
37 pages
Java Interview Programs 2
PDF
No ratings yet
Java Interview Programs 2
10 pages
DSA FirstPagejash
PDF
No ratings yet
DSA FirstPagejash
33 pages
Assignment 28
PDF
No ratings yet
Assignment 28
11 pages
DS Lab Manual
PDF
No ratings yet
DS Lab Manual
105 pages
Oops Manual
PDF
No ratings yet
Oops Manual
43 pages
Oops Lab Mannual Java
PDF
No ratings yet
Oops Lab Mannual Java
50 pages
00ps Record
PDF
No ratings yet
00ps Record
61 pages
DSViral Sir LABSubmission
PDF
No ratings yet
DSViral Sir LABSubmission
144 pages
Fat Lab Programs List
PDF
No ratings yet
Fat Lab Programs List
12 pages
Ex 5.2:-To Implement A Program To Accept A String From The Console and Count Number of Vowels, Consonant, Digits, Tabs and Blank Spaces in A String
PDF
No ratings yet
Ex 5.2:-To Implement A Program To Accept A String From The Console and Count Number of Vowels, Consonant, Digits, Tabs and Blank Spaces in A String
37 pages
VIT Bhopal University: Practical File Fall 2020-2021
PDF
No ratings yet
VIT Bhopal University: Practical File Fall 2020-2021
51 pages
Data Structure Lab Report
PDF
No ratings yet
Data Structure Lab Report
28 pages
Data Structure Lab Manual 2022-23
PDF
No ratings yet
Data Structure Lab Manual 2022-23
9 pages
Questions Day 3
PDF
No ratings yet
Questions Day 3
3 pages
OOPS Record 02
PDF
No ratings yet
OOPS Record 02
44 pages
Data Structure Lab Manual
PDF
No ratings yet
Data Structure Lab Manual
24 pages
Data Structure Programs
PDF
No ratings yet
Data Structure Programs
71 pages
C Programming: Array & Stack Ops
PDF
No ratings yet
C Programming: Array & Stack Ops
38 pages
MSc CS: Data Structures Lab Guide
PDF
No ratings yet
MSc CS: Data Structures Lab Guide
67 pages
Asseditted1213 No Last Page
PDF
No ratings yet
Asseditted1213 No Last Page
24 pages
EX - 2 Oops and Java
PDF
No ratings yet
EX - 2 Oops and Java
13 pages
Data Structures Lab Manual 18CSL38
PDF
No ratings yet
Data Structures Lab Manual 18CSL38
72 pages
Department of Computer Science and Engineering Lab Record - Design and Analysis of Algorithim
PDF
No ratings yet
Department of Computer Science and Engineering Lab Record - Design and Analysis of Algorithim
53 pages
Arts, Commerce and Science College, Kowad: Page No
PDF
No ratings yet
Arts, Commerce and Science College, Kowad: Page No
53 pages
Lab Manual for ADTs in C
PDF
No ratings yet
Lab Manual for ADTs in C
78 pages
21 30
PDF
No ratings yet
21 30
52 pages
C Program To Implement A Stack: Problem Description
PDF
No ratings yet
C Program To Implement A Stack: Problem Description
9 pages
EX To Students
PDF
No ratings yet
EX To Students
20 pages
Dsa Pratcial
PDF
No ratings yet
Dsa Pratcial
22 pages
Java Book Management Program Guide
PDF
No ratings yet
Java Book Management Program Guide
9 pages
Oops Lab Record
PDF
0% (1)
Oops Lab Record
37 pages
Oops Lab Record Print
PDF
No ratings yet
Oops Lab Record Print
110 pages
CS8381 Data Structures Record
PDF
No ratings yet
CS8381 Data Structures Record
107 pages
Oops Full Lab Manual-01
PDF
No ratings yet
Oops Full Lab Manual-01
43 pages
C++ Programming Lab
PDF
No ratings yet
C++ Programming Lab
58 pages