Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
14 views
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 now
Download
Save data_structure_midterm_lab_project For Later
Download
Save
Save data_structure_midterm_lab_project For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
14 views
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 now
Download
Save data_structure_midterm_lab_project For Later
Carousel Previous
Carousel Next
Save
Save data_structure_midterm_lab_project For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
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
VIT Bhopal University: Practical File Fall 2020-2021
PDF
No ratings yet
VIT Bhopal University: Practical File Fall 2020-2021
51 pages
Data Structure Midterm Lab Project
PDF
No ratings yet
Data Structure Midterm Lab Project
2 pages
Oops PGM 2,3&4
PDF
No ratings yet
Oops PGM 2,3&4
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
Program - 1: Question: Write A Program To Find Factorial of A Number
PDF
No ratings yet
Program - 1: Question: Write A Program To Find Factorial of A Number
10 pages
Record and Observation
PDF
No ratings yet
Record and Observation
23 pages
Midterm Practical Exam PDF
PDF
No ratings yet
Midterm Practical Exam PDF
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
Record Oop Cs3381
PDF
No ratings yet
Record Oop Cs3381
71 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
Some Dsa Programs
PDF
No ratings yet
Some Dsa Programs
56 pages
Lab Manual - DSA
PDF
No ratings yet
Lab Manual - DSA
43 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
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
DSViralSirLABSubmission
PDF
No ratings yet
DSViralSirLABSubmission
144 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
Data Structure Lab Report
PDF
No ratings yet
Data Structure Lab Report
28 pages
Dsprog5 2k20ep104
PDF
No ratings yet
Dsprog5 2k20ep104
9 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
Mca 1ST Sem Programs & Outputs 2022
PDF
No ratings yet
Mca 1ST Sem Programs & Outputs 2022
38 pages
Cs 16 Lab 2.data Structure and Algorithms Lab Programs
PDF
No ratings yet
Cs 16 Lab 2.data Structure and Algorithms Lab Programs
67 pages
DSA Labmanual PDF
PDF
No ratings yet
DSA Labmanual PDF
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
DS
PDF
No ratings yet
DS
53 pages
DS LAB Manual
PDF
No ratings yet
DS LAB Manual
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
Hacettepe University: Computer Science and Engineering Department
PDF
No ratings yet
Hacettepe University: Computer Science and Engineering Department
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
Program
PDF
No ratings yet
Program
49 pages
Program-21: To Implement A Stack and Manage Data
PDF
No ratings yet
Program-21: To Implement A Stack and Manage Data
16 pages
I Bca (DS Lab)
PDF
No ratings yet
I Bca (DS Lab)
59 pages
Lab Manual DS
PDF
No ratings yet
Lab Manual DS
52 pages
Define A Class 'Stack' With Following Specification:-Data Members
PDF
No ratings yet
Define A Class 'Stack' With Following Specification:-Data Members
54 pages
21-35
PDF
No ratings yet
21-35
72 pages
DSC Programs 2015
PDF
No ratings yet
DSC Programs 2015
37 pages
DS Lab Manual 22-23
PDF
No ratings yet
DS Lab Manual 22-23
20 pages
Subject:: Submitted by
PDF
No ratings yet
Subject:: Submitted by
10 pages
DSA Programming Assignment-VII
PDF
No ratings yet
DSA Programming Assignment-VII
4 pages
Program - 1 by Dev: Searching
PDF
No ratings yet
Program - 1 by Dev: Searching
19 pages
Lab3 - Data - Staructures and Algorithms
PDF
No ratings yet
Lab3 - Data - Staructures and Algorithms
19 pages
Oops Manual
PDF
No ratings yet
Oops Manual
47 pages
Program 9
PDF
No ratings yet
Program 9
7 pages
Oop With Java Programming Lab Program
PDF
No ratings yet
Oop With Java Programming Lab Program
20 pages
Recursion, Linked List Queue & Deque
PDF
No ratings yet
Recursion, Linked List Queue & Deque
24 pages
Stack, Queue, Linked List
PDF
No ratings yet
Stack, Queue, Linked List
33 pages
Java Lab
PDF
No ratings yet
Java Lab
14 pages