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

Programming Tasks and Outputs Guide

The document outlines ten different programs with their respective inputs and outputs. Each program serves a unique function, such as identifying SUPERSPY numbers, performing binary searches, sorting arrays, and generating series. The examples illustrate the expected results for various inputs across different programming tasks.

Uploaded by

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

Programming Tasks and Outputs Guide

The document outlines ten different programs with their respective inputs and outputs. Each program serves a unique function, such as identifying SUPERSPY numbers, performing binary searches, sorting arrays, and generating series. The examples illustrate the expected results for various inputs across different programming tasks.

Uploaded by

rohitbose2468
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Program 1: SUPERSPY Number

Input: 1021
Output: SUPERSPY number

Program 2: Binary Search

Input: 20.8
Output: Search successful

Program 3: Selection Sort

Input: 23 12 45 9 18 1 6 55 3 30
Output: 1 3 6 9 12 18 23 30 45 55

Program 4: Special Array

Input:
4 5 6
5 3 2
4 2 5
Output: Special Array

Program 5: Method Overloading

display():
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

display(123):
1.0
1.414213562
1.732050807

Program 6: Character Bubble Sort

Input: z y x w v u t s r q
Output: q r s t u v w x y z

Program 7: Series Generation

Output: 1 9 52 147 294 503 784 1147 1602 2149


Program 8: Prime Numbers in Array

Input: 3 4 5 6 7 8 9 10 11 12
Output: 3 5 7 11

Program 9: Matrix Linear Search

Input Matrix:
1 2 3
4 5 6
7 8 9
Search: 6
Output: Found at row 2, column 3

Program 10: Menu-Driven (Switch Case)

Choice: 1
Input: 145
Output: Special Number

You might also like