Member Avatar

Right now, this program asks the user to enter the input infile and outfile file names. Then it gives an error if it can't open the file. If it can open infile, it reads the first value and consider that as the array size. After that it continues with other numbers and stores them. Then it sorts them using insert sort, and get the mean, median, and standard deviation. Finally it prints the sorted numbers along with calculated values in the output file. What I want to do is to remove that insert sort, and use my own functions. I …

Member Avatar
0
27
Member Avatar

Here is what I want this program to do: Be able to calculate mean, standard deviation, and median. Data should be sorted using insert sort first though. The program must be able to accept input from an input file and print a report to an output file. These files are to be named by the user at runtime. I first wrote this program so that it would ask for user to enter the numbers, instead of reading from a file. And output to the screen of course. It worked just as it is supposed to, so I know that the …

Member Avatar
0
24
Member Avatar

I am having trouble with this part of my program assignment. I have created and compiled the three separate implementation files that design the three classes, they each have a default constructor, overloaded constructor, and a display function. //************************************************************************************************************ "When your program is working correctly, define an array of pointers to Ship objects to store pointers of up to 15 Ship, CruiseShip or FreightShip objects. Then read in the data from the file pgm8.txt. For each set of ship data it contains a code to indicate whether the data that follows is for a "S"hip, "C"ruise ship or "F"reight ship. …

Member Avatar
0
6
Member Avatar

Dear All, I have a database with two columns, to keep several files of text with lots of text lines in each text: ----------------------- |---name -|- Text---| ----------------------- I want the column |-name-| to be a primary key, and to upload the text file I'm using the command: [CODE] LOAD DATA LOCAL INFILE 'TEXT.htm' INTO TABLE TB(Text) SET name = 'file1'; [/CODE] If set the column 'name' as primary key it won't let me upload more than one line of text by column name. Can you give me a help on this? A way so that I can upload a …

Member Avatar
0
2

The End.