Assignment#1
Assignment#1
Activity
Evaluation Criteria:
1. Functionality: The program meets the specified requirements and runs without errors.
2. Logic and Approach: The problem-solving approach is sound, and algorithms are appropriate.
3. Code Structure: The code is well-organized and efficient.
4. Documentation: Proper comments are included to explain key parts of the code.
You are given an array of integers, and your task is to write a program that searches
for a specific element in the array. Your program should prompt the user to input the
size of the array, the elements of the array, and the target element they want to search
for.
Requirements:
1. The program should first take an integer input for the size of the array.
2. It should then take the corresponding number of integer inputs as the array elements.
3. Finally, it should ask for the target element to be searched in the array.
Problem#3
You are given an array of integers, and your task is to write a program that inserts a
new element into a specific position in the array. The program should allow the user
to input the size of the array, the elements of the array, the element they want to insert,
and the position where the new element should be inserted.
Problem#4
Write a program that deletes an element from an array at a specific position. The
program should prompt the user to: