Create a program to read two random data set in two files
named data1.txt and data2.txt manifold contains integer
numbers, whereas data2.txt file contains the float type
numbers. Simpanlahmasing each into 2 pieces of data that is
an array of type integer array and an array of type float,
then calculate the average numbers in the second array.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ Code Interview Questions

How to Split Strings with Regex in Managed C++ Applications?

0 Answers   Microsoft,


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

0 Answers   Facebook, Webyog, Wipro,


A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect

0 Answers  


write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation

0 Answers   HCL,


what is the diffrence between ++x , x++ pleaaaaase ???

7 Answers  






Min-Max Write an algorithm that finds both the smallest and largest numbers in a list of n numbers and with complexity T(n) is at most about (1.5)n comparisons.

10 Answers   ABC, College School Exams Tests, ITC Infotech, Kyambogo University, Qatar University,


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

0 Answers   HCL,


Given 1 to n distinct random number of which n+1th element was duplicated. How do find the duplicate element and explain the time complexity of the algorithm.

0 Answers   Microsoft, NetApp,


Deriving time complexity of Binary tree and AVL tree, step by step.

4 Answers   NetApp,


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

0 Answers   iGate,


Write a simple encryption program using string function which apply the substitution method.

0 Answers  


Min-Max Write an algorithm that finds both the smallest and largest numbers in a list of n numbers and calculate its complexity T(n).

1 Answers   Infosys, Qatar University,


Categories