- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
9 Posted Topics
Declare an integer variable size of 10 elements, input the elements. find the sum of the elements. display the elements. display sum using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int size, sum = 0; Console.WriteLine("input 10 elements"); size=Convert.ToInt32(Console.ReadLine()); … | |
impliment the selection sort algorithm to sort the elements in a two dimentional array of order 3*4 in descending order. the program should prompt the user to input 12 element, sort and display the elements in the matrix format. | |
menu driven program to perform the following stack operations using a linked list: push pop and display elements. #include<iostream.h>//header file i/o stream flow #include<conio.h> class Stack { int A[10]; int top; public: Stack() { top=-1; } void push(); void pop(); void show(); }; void Stack::push() { int x; cout<<"Enter the … | |
write a menu driven program to create a linked list, insert an item, delete an item, and display the list of items. the program should contain a class with the required data and functions. #include <conio.h> #include <stdio.h> #include <stdlib.h> //Structure containing a Data part & a //Link part to … | |
declare two dynamic arrays of integers, input **size** needed for the arras, allocate **size** integers, initialize all elements to 0, prompt the user to input **size** elements in the first array, diplay the elements, copy the elements to the second array after deleting duplicate elements, and display the elements from … | |
write a binary search algorithm to look for the presence of a search key in a single dimensional array of 10 elements. prompt the user to input 10 elements and the search key. display meaningful messages after the search operation. #include<iostream.h> #include<conio.h> void main() { int p[10]; int search_key; cout<<"\n … | |
Dr Mirna always gives True/False tests to her class. Her tests have always 10 questions. The maximum class size is 5. She needs a program that will calculate the students’ grades based on the best grade. Grade A will range from the best score, to the best score minus 2. … | |
Assume that the following data is stored in file “data.txt”: 2 5 7 1 12 -999 1 4 11 55 66 3 43 23 -999 9 87 56 34 22 12 21 -999 8 7 5 4 6 111 -999 The number -999 at the end of each line acts … |
The End.