Write a program that uses 3 input files and 3 output files

Assignment Help C/C++ Programming
Reference no: EM13168462

write a program that uses 3 input files and 3 output files. The input files are:

   A file of integers: IntFile.dat

   A file of floating point numbers: FloatFile.dat

   A file of words: Quotes.dat

2. Your program will include a function template that sorts an array of values in ascending order. The function will receive an unordered array and will return an ordered array. The function will not perform any input or output. I recommend that you find and modify an already written sort function. Your template will contain two parameters: a generic array and an integer. The integer indicates the number of elements in the array to be sorted.

3. Read the 3 input files into 3 arrays of 100 positions each. call the function template to sort them. write the sorted data in the arrays to 3 output files. Print them.

4. since none of the flies contains 100 values you must count the number of values in each file as you read it. This number will be passed to the sort function to indicate how many values should be sorted.

 

 

Reference no: EM13168462

Questions Cloud

What is the new m of the hcl and naoh : 39 ml of .2 M HCL and 50 ml of .4 M NaOH are mixed. After mixing, but before they react, what is the new M of the HCL and NaOH?
Write a program that sorts a linked list : Write a program that sorts a linked list of integers using merge sort. the program will read the integers froma file onto a linked list and then sort the linked list using MERGE SORT. this will require additional linked lists but you should use li..
Explain how many zinc atoms are used in the coating : The surface area of the nail is 8.59 cm. The density of the zinc is 7.13 g/cm3 how many zinc atoms are used in the coating?
How much heat energy di this sample absorb : A 2kg sample of lead is heated from a temperature of 30 degrees celsius to a temperature of 60 degrees celcius. The specific heat of lead is 128 J/kg degrees celsius. How much heat energy di this sample absorb?
Write a program that uses 3 input files and 3 output files : write a program that uses 3 input files and 3 output files.
Segment that prompts the user for an arithmetic operator : The variables x and y refer to numbers. Write a code segment that prompts the user for an arithmetic operator and prints the value abtained by appying that operator to x and y.
How much heat is needed to melt ice at zero degrees : How much heat is needed to melt 22.4g of ice at zero degrees celcius to form liquid water at zero degress celcius?
Write a c program that copies the contents of one file : write a c program that copiest the contents of one file to a destination file. This program works by first prompting the user for the name of the source file and destination file.
What is the molecular weight of the gas : The density of an unknown gas is 4.00 grams per liter at 4.00 atmospheres pressure and 127 degrees C. What is the molecular weight of the gas?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Randominrange() function that accepts two integer

Write a randomInRange() function that accepts two integer parameters. The parameters will represent the low number and the high number (both inclusive) in the random range. For example, when the function receives 3 and 8.

  Create a boolean function that computes

Create a Boolean function that computes the value of a factorial for values up to including 10. Include comments about how to use the function and describing how it works.

  Object oriented programming paradigm is better choice

Explain why object oriented programming paradigm is considered better choice than structured programming paradigm. Does it reflect our "natural" way of thinking or do you find it artificial?

  Function called timesten that returns back

Write a function called timesTen that returns back to the caller the value passed into the function multiplied by 10. If the value passed into the function is negative, the function also returns the string

  Write a function template square()

Write a function template Square() that returns the square of its only argument.

  Create a class called point3d

Create a class called Point3D to represent 3D point in space, a class called Sphere and a class called Cylinder. The sphere is characterized by its center point and the radius while the Cylinder can be characterized by its center point, radius and he..

  Define a class for a type called fraction

Define a class for a type called Fraction. This class is used to represent a ratio of two integers. Include mutator functions that allow the user to set the numerator and the denominator.

  Write a c++ program to sort a list of number using vectors

Write a C++ program to sort a list of number using vectors. Output the values when the elements are inserted into its correct position. Assume the first element in the list is sorted.

  Write a program that finds the equivalent series

Write a program that finds the equivalent series and parallel resistance for a collection of resistor values. Your program should scan first the number of resistors and then the resistor values. Then compute the equivalent series resistance for all r..

  Maze program

Maze program. In this assignment you will represent a maze with a binary tree. . The starting point is node N and the ending point is node Z.

  Write a program in c that will find smallest value

Write a programe c that will find the smallest, largest and average values in a collection of N numbers.Get the value of N before scanning each value in the collection of N numbers.

  Write a program that keeps an employee database

Using C++, Write a program that keeps an employee database in a random-access file. Implement functions for adding and removing employees. You need not keep employees in sorted order.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd