Lab Work_array Assignment_736940 (1)
Lab Work_array Assignment_736940 (1)
Assignment no 3
Name:
Ayla tahir
Roll no:
07
Submitted to:
Prof.Amjad
Deadline: 11-02-2025
Final 20 C++ Programs
Assignment: Arrays, Loops, and Selection Statements in C++
💡 Instructions: Implement the following programs using arrays, loops, and selection
statements (if-else, switch-case).
Find and display the maximum and minimum numbers from an array of 10 elements.
ITC LAB ASSIGNMENT
Count how many numbers are even and odd in an array of size 10.
ITC LAB ASSIGNMENT
Search for a user-entered number in an array and display its position if found.
5. Reverse an Array
Count how many numbers are positive, negative, and zero in an array of 10 elements.
ITC LAB ASSIGNMENT
Store marks of 5 students and assign grades (A, B, C, D, Fail) based on their marks.
Take 5 years in an array and determine which ones are leap years.
ITC LAB ASSIGNMENT
ITC LAB ASSIGNMENT
ITC LAB ASSIGNMENT
Display a menu with the following options and execute the chosen task:
1. Find Maximum
ITC LAB ASSIGNMENT
2. Find Minimum
4. Exit
ITC LAB ASSIGNMENT
ITC LAB ASSIGNMENT
Extract and display the first and last digits of each number in an array.
ITC LAB ASSIGNMENT