Include the iostream, fstream, string, and cctype libraries

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

1. Include the iostream, fstream, string, and cctype libraries in your program.
2. Start main()
Declare three function prototypes:
a. A void function to input the names in "names.dat" file and save them in an array.
b. A void function which uses a "selection sort" to sort the names in the array.
c. A void function to output the names after sorting.
3. Call a function (Step 2 a above) to get the names from the file "names.dat" into the array
4. Call a function to sort the strings (Step 2 b above).
5. Call a function (Step 2 c above) to display the sorted names.
6. End man()
7. Write the source code for the function to get the names in the file and save them in an array
(Step 2 a above).
8. Write the source code to use a "selection sort" to sort the names in the array (Step 2 b above).
9. Write the source code to output the names after sorting ( 

Reference no: EM13161287

Questions Cloud

Compare the effects of racial ideologies : Compare the effects of racial ideologies on North American societies with those on Latin American/Caribbean societies during the period from 1500 to 1830
Include the terms iterative and recursive query : Describe the process a client would perform to resolve the name yahoo.com. Assume that the full DNS names resolution process must be performed. Include the terms iterative and recursive query
Relationship unethical : Under what circumstances is the use of power in a relationship unethical? Explain your answer.  Please respond with at least 150 words.
An isp has received a block : An ISP has received a block of addresses in which the prefix length (n = 24). The ISP needs to make 8 sub-nets (sub-blocks) of equal sizes from this block. What is the prefix of each sub-block?
Include the iostream, fstream, string, and cctype libraries : 1. Include the iostream, fstream, string, and cctype libraries in your program.
Building plans-what is shater : Know the building plans, the names of the two building plans, the domes and roofs of the early structures and why they were used in the cathedrals of Europe and of Byzantine Russia especially churches in Moscow.
Writing a program that parses : The programming project involves writing a program that parses, using recursive descent, a GUI definition language defined in an input file and generates the GUI that it defines.
Diagnosis of terminal cancer : My boyfriend of one year has been given a diagnosis of terminal cancer. He has no family around, and I have been his primary caretaker. We had a wonderful relationship, but we had not discussed long-term plans, and his declining health has changed mu..
Which disease is epidemic or endemic : Which disease is epidemic or endemic.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  C programme to find the minimum and maximum value

write a c programme to find the minimum and maximum value each elements in each row ,to create table b,having 5 rows and 2 coloums,the first coloum of table b is the maximumvalue and thye second coloum is the maximum value in each row.

  Prepare an accounting for a dorm''s kitchen

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

  You will create a linked list module

You will create a linked list module that exactly meets the specifications given in the supplied header (.h) file. The playlist program must accept a filename on the command line (argv).

  Write short c program to develops two processes

Write down a short C program which develops two processes. Each process must repeatedly write its own unique message to test file, one character at time. Do you see garbled messages in the file? Explain why or why not?

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

  Describe the probability of the moves

Write a program in C++ to describe the Probability of the moves

  The mean and standard deviation

How do i write a program in c++ that use functions max, min, the total numbers, the mean and standard deviation to read a file text and return these values from the file text. note the file text has random numbers. note im not suppose to use arrays.

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Program which asks the user for due date of next assignment

Write a program which asks the user for due date of the next assignment (hours, minutes). Then print number of minutes between the current time and the due date in format.

  Find the pairs in any given matrix

write a c program which will find the pairs in any given matrix, whose sum of pairs are 10.

  The process function will then need

The process function will then need to find the time the person waited by calling the time function and finding the difference between the start and end timestamps. Save this time to an accumulator so that in the end you can find the average wait tim..

  Two types of constructors

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

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