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

C++ program that reads an integer array from a file and finds all integers which start and end with same digit. Write these integers into an output file. you may assume the length of each integer to be a minimum of 2 digits.


If 20 more machines have to be added to the network, what changes must be made to the network?


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.


LATEST TUTORIALS
APPROVED BY CLIENTS