Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

suppose you want to make a connection between the client and server using connectionless oriented approach. So for it which protocol will be referred and why .elaborate the steps


Write a function-based C++ program that reads an integer array from a file (“input.txt”) and finds all integers which start and end with the same digit. Write these integers into an output file (“output.txt”). You may assume the length of each integer to be a minimum of 2 digits.


Take an array of size 5x5 and initialize it with random numbers of range 1 to 10, now add all the elements of the 2D array and display sum.

Modify part a in such a way that you have to find individual sum of each row of the 2D array and store corresponding result in 1D array i.e. sum of all the elements of row 0 should be stored in 1st element of 1D array, similarly sum of all elements of the second row of 2D array should be stored at the second index of 1D array. Display the final sum array (i.e. 1D array). Think about the size of 1D array yourself.

Example:

Array:

 2 3 5 3 1

 4 5 1 2 1

 4 7 3 2 0

 2 1 1 5 1

 1 7 8 9 0

Sum array:

14 13 16 10 25

Perform sum of all the elements of the arrays whose row number and column number both are odd. Display the final sum.

Array:

2 3 5 3 1

 4 5 1 2 1

 4 7 3 2 0

 2 1 1 5 1

 1 7 8 9 0

Sum: 13



Write a program to scan a number n and then output the sum of the powers from 1 to n. Thus, if the input is 4, the output should be 288 because: 11 + 22 + 33 + 44 1 + 4 + 27 + 256 = 288


1st Solution – using for loop/ 2nd Solution – using while loop 3rd Solution- using do while loop 


Write a program using two-dimensional arrays that lists the Odd numbers and Even numbers separately in a given 12 input values.


Sample input/out dialogue:


Enter twelve numbers: 15 20 13 35 40 16 18 20 18 20 19

Odd numbers are: 15 13 35 19

Even numbers are: 40 16 18 20 18 20


 We have a 4 x 4 two dimensional array. Fill it with random values from 1 to 100. Write a code to take transpose of the matrix. The following array is shown as an example:




Final Project - Dance Recital Optimization Algorithm

CSC213

The Assignment

Your job is to create a ​program​ to implement an ​algorithm​ that makes scheduling of the dance recital easier for the dance studio.

The Data

The dance studio has 10 classes, and therefor 10 dances in the recital. Each class has 7 students. See the attached class listing, with students ID numbers listed for each class. To determine the possible arrangements of classes in the recital, we are using a mathematical technique called ​permutations​. Permutations tell us how many different ways a set can be arranged, when order matters. Think of a locker combination that has a 4 digit code. Of 10 numbers (0 through 9), you choose 4 numbers to make the code, and the order of those numbers matters.

For our dance recital we have 10 classes, and we are choosing 10 classes. Similar concept to the above, but think of a locker combination with 10 digits. An example of our dance recital ordering may look like the following



Write a PL/SQL program to find greatest of three numbers and print Fibonacci series up the largest number found.


Write a program that reads in a month of the year as a number (eg 1 for January, 4 for April) and then displays the number of days in that month. Keep in mind the impact of leap years. Note – Only for February the actual year is important (you should ask the user for the year of interest)


Implement a class MeraSet, which abstracts a mathematical Set of integral numbers. Maximum members can be 100. Implement following Member functions:


int Insert(int e) ; // adds value e to the set and returns 1, if the value already exists or the set has already 100 members, then it does not add and return -1.

int Size(); // return size of the set

int Remove(int e); // removes e from Set, and return 1. If e is not member of set, returns -1.

void Print(); // prints the members of the set in set notation e.g. Set = {1,2,3,8,-3 }

operator + ; // returns union of two sets

operator -; // returns difference set of two sets i.e. A-B


Make private member variables and more functions as you like.

Implement MeraSet2 class similar to last assignment, Add following members:

operator =; // assignment operator, makes deep copy

Copy constructor 

operator []; // implement subscript operator, to display individual element of a set.



LATEST TUTORIALS
APPROVED BY CLIENTS