0% found this document useful (0 votes)
28 views2 pages

Assignment 02 Fall 2024

Uploaded by

Hossam Bakr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Assignment 02 Fall 2024

Uploaded by

Hossam Bakr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

King Abdulaziz University

Faculty of Computing and Information Technology


Computer Science Department

Programming I (CPCS204) – Assignment #2


Assigned: Thursday 26th September 2024
Due: Thursday 10th October 2024

Objective

The purpose of this assignment is to practice recursion.

Instructions:
• This program is worth 5% of your final grade.
• The deadline for submission for this assignment is by 11:59 PM on Thursday 10 th
October 2024, on Blackboard
• No assignment will be accepted after the deadline.
• This is an individual assignment, and you must solve it by yourself. Any form of cheating
will result in you receiving 0% in the assignment.
• Please read the course and department policies on the course syllabus regarding plagiarism
and cheating.
• This assignment must be submitted online via Blackboard.
• The source file(s) of your program should be zipped up. You must name the zip file using
the following naming convention: SectionNumber_StudentID_ProgramNumber.zip

• If your file is empty or you upload the wrong file, it will be solely your responsibility, and
you will be awarded zero for the assignment.

Description

You are required to solve the problems given in Table 1 in this assignment. All solutions should
be submitted in the Java programming language.
Table 1 : List of problems for Assignment #2
Problem link Marks

1 palindromic string problem– C++, Java, Python | Techie Delight 1

2 remove adjacent duplicates problem – C++, Java, Python | Techie Delight 1

3 maximum occurring word problem – C++, Java, Python | Techie Delight 1

4 pattern match problem– C++, Java, Python | Techie Delight 2

Considerations for all given questions:


1- Ensure that your solutions are versatile and robust, capable of handling any input single
string or a set of strings configurations, not just the examples provided.
2- Make the program interactive by allowing the user to enter the required values.
3- You must use recursion.

Deliverables

You are required to upload your Java code files on Blackboard as part of this assignment. The
files should be named as Problem_1.java, Problem_2.java, Problem_3.java, and Problem_4.java.

Each of your submitted source code in Java should have the following header
(comments) appropriately filled.
/*
Course: CPCS 204
Name:
University ID:
Section:
Name of lab instructor:
Problem number:
Assignment number: #2
*/

You might also like