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

  Called cbankaccount

Create a base class, called CBankAccount, and two additional classes (each derived from CBankAccount), called CSavingsAccount and CCheckingAccount.

  State private portion of class to model the item

In c++ state the private portion of a class to model the given item: a class Date for dates consisting of a month, day and year. a class PhoneNumber for a telephone numbers consisting of area code, local exchange, and number.

  Struct definition to represent the data of a person''s bank

Define a struct definition to represent the data of a person's bank account. There will be one string for the name, and two doubles for balance and interest rate. Declare two variables of this new type in the main function. Modify the values of each ..

  Using virtual methods, organize the animals

Using virtual methods, organize the animals in a small zoo, having as guests lions, parrots, alligators, penguins, elephants, cobras, zebras, hawks, turkeys and rabbits.

  Approximately normally distributed

Write a program MakeFile.cpp that creates a file random.dat that contains 200 random numbers where each number is the sum of 12 random values rand( )%9. When we add a sufficient number of uniformly distributed numbers the result is approximately n..

  Write program to perform add-drop-list and update functions

Write C++ program to do add, drop, list (in last name / first name sorted order or id) and update functions. separate UI from data processing use object programming method multiple files

  Design a nested program

How many levels of nesting are there in this design?

  Write a program that reads an array with wind-tunnel test

write a program that reads an array with wind-tunnel test data then allowss the user to enter a flight-path angle. If the angle is within the bounds of the data set, the program should then use linear inteerpolation to compute the corresponding coeff..

  Write a program the contains an array of 1000 elements name

Write a function named equals() that accepts two char arrays and return true if both arrays have the same characters in the same order. The function should return false otherwise. Write a simple main() function to test your function.

  Program that calculates how much a person earns in a month

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day,

  Windows application that function like a banking account

Create a Windows application that function like a banking account register. Separate the business logic from the presentation layer. The graphical user interface should allow user to input the account name, number, and balance.

  Generate a set of 75 random integers in the range -26 to + 4

Write a program that will generate a set of 75 random integers in the range -26 to + 42. The program

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