Forum: C++ May 6th, 2008 |
| Replies: 5 Views: 587 haha I am going to need an actual number... just in case I must submit a requirement |
Forum: C++ May 5th, 2008 |
| Replies: 5 Views: 587 I am an employee at Scottrade (competition with etrade if you guys have not heard of it) and they had me start out as an intern then joined the help desk starting this summer. In the fall I will be... |
Forum: C++ May 4th, 2008 |
| Replies: 3 Views: 365 I am going over some of my quizzes with questions I did not get right and was wondering if someone could help me w\ a few of them...
What will the following code print to the screen:
int... |
Forum: C++ May 2nd, 2008 |
| Replies: 2 Views: 681 let me know if u guys do not know what i mean |
Forum: C++ May 1st, 2008 |
| Replies: 2 Views: 681 just a small issue with my program...I am finishing it up and the issue I have is I need to make me decimal points line up...the array is up and perfect just need some assistance in setting up the... |
Forum: C++ May 1st, 2008 |
| Replies: 10 Views: 1,088 nevermind figured that out |
Forum: C++ May 1st, 2008 |
| Replies: 10 Views: 1,088 still having problems
double Calc_Median(int count, double Size[])
{
double median = 0.0;
double average_median;
median = count / 2; |
Forum: C++ May 1st, 2008 |
| Replies: 10 Views: 1,088 |
Forum: C++ May 1st, 2008 |
| Replies: 10 Views: 1,088 but dont I need an if statement in there somehow to determine if its even or odd numbers |
Forum: C++ May 1st, 2008 |
| Replies: 10 Views: 1,088 i know that but having trouble computing that in coding terms |
Forum: C++ May 1st, 2008 |
| Replies: 10 Views: 1,088 can someone show me how to code the median if it is an even number
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using namespace std; |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 do you guys know what i mean when i say my median when its an even set... I judt dont know how in coding terms to compute this |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 figured out the sort array so there are only two things I am not sure of...one is the median...If the numbers are odd I have it to nor problem but if the numbers are even I do not know how to... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 one other issue I am realizing...my median doesnot take into account if the count is even |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 ok that did work when I tried the same thing so I have average, median, and the first loop finished...the only thing I have left is 1. line up the widths so each line has four numbers which i have... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 I got the median finally...so thats a start...now with the average do I do just the same thing with median????
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 also I get two warnings of possible loss of data that is my other main issue |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 median = Size[ MAX_SIZE / 2 ];
return (median);
so it would be median =Size[count /2]
return median; |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 i think i got the sorting from smallest to largest somewhat right but can someone look at my changes and show me what I am still not doing correctly.....
#include <iostream>
#include... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 ok thank you so much that worked...I have two final things to figure out on my program but you really dont havta help me if you don't wanna because you helped me a ton already but my issues are just... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 ughhh this program will never end...ok I got those errors away but now have a conversion from double to int warning and a fatal error warning....sorry I know I am probably driving you crazy right now... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 Before I forget just wanna say thanks for everyone helping me but now I have an error I have never seen before...actually four of them
1>c:\documents and settings\don & diane kruep\desktop\project... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 so pretty much just change int Size[]
to
double Size[] at every place and it should show the decimal |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 are you positive because I want to print some negative numbers as well and after doing so that negative numbers were removed....this is my input files.....
data2.txt:
54.654 -7.435 345.53... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 from the instructions can anyone give me an idea where and how to print this smallest to largest in my program and also the decimal point issue...i think it has something to do in
Size[count] =... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 I think my only issues from the instructions are setting up my widths(not sure how to do that with an array), the decimal point I seem to be missing, and the sort from smallest to largest...if anyone... |
Forum: C++ May 1st, 2008 |
| Replies: 34 Views: 1,881 I got them to come out but for some reason when i set the precision it doesnt show the decimal point
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using... |
Forum: C++ Apr 29th, 2008 |
| Replies: 34 Views: 1,881 the reason for me to use tempcount just is a way to set the rows and columns up so only 4 are printed on each line...so that part is actually working so I think I will need to keep it...the problem... |
Forum: C++ Apr 29th, 2008 |
| Replies: 34 Views: 1,881 not sure if I did this right or not but returning alot of errors:
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using namespace std; |
Forum: C++ Apr 29th, 2008 |
| Replies: 34 Views: 1,881 no disrespect just made a mistake...sorry |
Forum: C++ Apr 29th, 2008 |
| Replies: 34 Views: 1,881 |
Forum: C++ Apr 29th, 2008 |
| Replies: 34 Views: 1,881 2 questions first did you guys get hacked yesterday or something and 2nd:
Not sure what I am doing wrong but have an issue with a program...i am to input a file name that i have in my project and... |
Forum: C++ Apr 28th, 2008 |
| Replies: 17 Views: 2,961 it works but when I type in a datafile it will not show anything...I have two data files in my program...understand what I mean? |
Forum: C++ Apr 27th, 2008 |
| Replies: 17 Views: 2,961 Ok I am a complete idiot because I just send the wrong code over...
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using namespace std; |
Forum: C++ Apr 27th, 2008 |
| Replies: 17 Views: 2,961 One last thing and I should be done...I think I did it correctly but is not compiling and returning error from my fill array coding
#include <iostream>
#include <fstream>
#include <iomanip>... |
Forum: C++ Apr 25th, 2008 |
| Replies: 17 Views: 2,961 Can anyone see what I am doing wrong in my code...I know this is not one of my text files...my two text files are data1.txt and data2.txt but when I tried that I get the same output
Enter the... |
Forum: C++ Apr 25th, 2008 |
| Replies: 17 Views: 2,961 sorry one final thing and this is completed I am getting this error:
error LNK2019: unresolved external symbol "int __cdecl Calc_Median(int,int const * const)" (?Calc_Median@@YAHHQBH@Z) referenced... |
Forum: C++ Apr 25th, 2008 |
| Replies: 17 Views: 2,961 One last question I have...I dunno how to explain this but I have two input files....I need to type the file to read in from the cout << "Enter the file to read in:"; and one file is data1.txt and... |
Forum: C++ Apr 25th, 2008 |
| Replies: 17 Views: 2,961 so it pretty much is just median = Size[] / 2 |
Forum: C++ Apr 25th, 2008 |
| Replies: 17 Views: 2,961 I am writing a function and need to calculate the median...I am gonna b honest I absolutely have no idea how to start this but it is pretty much one of the last things I need to do with my program. ... |