Everything posted by Promise
-
Advertise your thing here - all posted elsewhere = removed
This is my entry photo.
-
Advertise your thing here - all posted elsewhere = removed
Tip.it has always been good to me these past years, hoping that if any of you have a free time and are on facebook, please vote for my truck that I built for this give away contest! My name is Perris, and I bagged my 2006 colorado xtreme. Please vote for me, all you have to do is like the photo on autoplicity's album :)
-
Obsolete Items with Toolbelt
In some ways the tool belt is obsolete to some. It doesn't hold a magic watering can or a crystal saw.
-
Post all RS Screenshots, Videos, and Sounds here!
What is thissss?
-
Melee Brawling Gloves
Like I said before, I don't know anyone who PKs in a quick chat only world but the risk proved to be worth it in the end. To each their own.
-
Melee Brawling Gloves
If I died, then it wouldn't have bothered me. I never took the time to "hunt" for these gloves, they were just a bonus to my drop, so they had little value to me. I'd like to add, if you see a dot on a mini map, then just let the greater demon attack you. The area isn't multi combat, so if you're already in combat, you'll be fine.
-
Melee Brawling Gloves
I quit playing for almost 2 years and they were sitting in my bank. I did pk/stake often. I am a retired PvP mod for tip.it.
-
Post all RS Screenshots, Videos, and Sounds here!
yay :mrgreen:
-
Dwarven Army Knife
Allow us to fletch with the blade of an axe, who needs knives :thumbsup:
-
Runescape Pkers = Ignorant Hypocrites
People seriously pk with barrel chest anchor? lol I think you fought someone who is messing around in the wild. Not pking.
-
Melee Brawling Gloves
How is it too much of a loss? lol
-
Melee Brawling Gloves
Risked wealth was only 700k, so I figured the exp gained in that hour was definitely worth the risk. Also went into a quick chat world...don't know ANYONE who pks in a quick chat world. lol And its also 30 hp, not 50 :mrgreen:
-
Melee Brawling Gloves
Used my brawling gloves right after I got 98 attack. Got over 500k exp from a single pair of gloves. I used DH on black demons, with welfare gear. Didnt take a pic, but got over 60 crimson chins, 3 half keys, some ranars, and 200 addy bolts. P pots paid for themselves. Best part is. Under an hour and half. Used about 14ish p pots. About 2.5k exp for a single hit. I was constantly hitting 400-750 realm. Used the poison spiders and skellys to keep my health low.
-
i cant go to homepage
It wasn't working for me, but using the beta site worked perfect. And the regular site is working fine for me again url for the beta page is: open.tip.it
-
Infernal urn
I remember reading some where where you are only allowed x amount. This was to prevent mass-collection of them for some reason. <_< RS wiki: "If you have 10 Infernal Urn (full) you will no longer be able to collect ashes in urns. You will be prompted with a message saying: "You should get rid of some of your prayer urns before starting a new one.""
-
Helping hand for c++ homework?
Big thank you to those who helped me <3 Hope this will be the last programming homework for the quarter... :mrgreen:
-
Helping hand for c++ homework?
FOUND THE PROBLEM. OMGGGG. Needed this to make it work...the " = 0"... double sumMaleGPA = 0; double sumFemaleGPA = 0;
-
Helping hand for c++ homework?
Still having an issue outputting the correct GPAs...
-
Helping hand for c++ homework?
Thanks for all your help so far <3
-
Helping hand for c++ homework?
This is my output in the text file. The male/female counts are correct! But the Average GPA...ughhhhhhh.....don't know how a negative got in there. SO close to being done! Thank you everyone for helping out <3: Did not realize the outfile is pretty much the same thing as cout.... Number of Males: 12 Average Male GPA: -7.71e+060 Number of Females: 8 Average Female GPA: -1.16e+061 Also, it asks for an output file twice...need to get rid of one...but which one....im going to guess the one in side of bool writeData? I misinterpreted my teachers instructions...I had to text the program with several text files. But the program did not need to accept multiple infules. #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <cmath> using namespace std; void outLine (int, double, int, ofstream&); bool openFiles (ifstream&, ofstream&); bool writeData(int, int, double, double); int readFile (ifstream&, ofstream&, int&, int&, double&, double&); double averageGrade(int, double); int main() { int countMale = 0; int countFemale = 0; int numlines = 0; double sumMaleGPA; double sumFemaleGPA; double averageMaleGrade; double averageFemaleGrade; ifstream infile; ofstream outfile; bool opened; opened = openFiles (infile, outfile); if (!opened) exit (1); numlines = readFile(infile, outfile, countMale, countFemale, sumMaleGPA, sumFemaleGPA); averageMaleGrade = averageGrade(countMale, sumMaleGPA); averageFemaleGrade = averageGrade(countFemale, sumFemaleGPA); cout << "\n" << ' ' << numlines << "lines read and written.\n"; writeData(countMale,countFemale, averageMaleGrade, averageFemaleGrade); infile.close(); outfile.close(); return 0; } bool openFiles (ifstream& input, ofstream& output) { string filename; cout << "INPUT file name please: "; cin >> filename; input.open (filename.c_str()); if (input.fail()) { cout << "Input file not found or corrupt!\n"; return false; } cout << "OUTPUT file name please: "; cin >> filename; output.open(filename.c_str()); if (output.fail()) { cout << "Output file: deevice not found or disk full!\n"; return false; } return true; } int readFile (ifstream& input, ofstream& output, int& countMale, int& countFemale, double& sumMaleGPA, double& sumFemaleGPA) { char first; int line_count = 0; double second; if (input.eof()) return line_count; else { while (input.good()) { input >> first >> second; line_count++; if(first == 'm') { sumMaleGPA += second; countMale++; } else if(first == 'f') { sumFemaleGPA += second; countFemale++; } } } double average = 0; for(int i = 0; i < countMale; i++) average += sumMaleGPA; average = average / countMale; return line_count; } double averageGrade(int count, double sumGPA) { double averageGrade = sumGPA / count; return averageGrade; } void outLine (int f, double s, int c, ofstream& out) { out << setw(3) << c << ' ' << setw(4) << f << ' ' << setw(6) << s << endl; } bool writeData(int countMale, int countFemale, double averageMaleGrade, double averageFemaleGrade) { string filename; ofstream output; cout << "OUTPUT file name please: "; cin >> filename; output.open(filename.c_str()); if (output.fail()) { cout << "Output file: deevice not found or disk full!\n"; return false; } output << "Number of Males: " << countMale << '\n' << endl; output << "Average Male GPA: " << setprecision(3) << averageMaleGrade << '\n' << endl; output << "Number of Females: " << countFemale << '\n' << endl; output << "Average Female GPA: " << setprecision(3) << averageFemaleGrade; output.close(); return true; }
-
Helping hand for c++ homework?
An example being: outfile << countMale << sumMaleGPA << countFemale << sumFemaleGPA << endl; It's that simple? :shock:
-
Helping hand for c++ homework?
My assignment requires me to find the following: [hide=requirements] Opens the input and output files, and sets the ouput of the floating point numbers to two decimal places in a fixed decimal format. Find the sum of the female and male GPAs Find the total amount of males and females Find the Average GPA for males and females. Outputs the relevant results There can be no global variables. [/hide] The only thing I cannot do is: -output everything into a textfile This is my entire code so far #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <cmath> using namespace std; void outLine (int, double, int, ofstream&); bool openFiles (ifstream&, ofstream&); int readFile (ifstream&, ofstream&, int&, int&, double&, double&); double averageGrade(int, double); int main() { int countMale = 0; int countFemale = 0; double sumMaleGPA; double sumFemaleGPA; double averageMaleGrade; double averageFemaleGrade; int numlines = 0; ifstream infile; ofstream outfile; bool opened; opened = openFiles (infile, outfile); if (!opened) exit (1); averageGrade(countMale, sumMaleGPA); averageGrade(countFemale, sumFemaleGPA); numlines = readFile(infile, outfile, countMale, countFemale, sumMaleGPA, sumFemaleGPA); cout << "\n" << numlines << "lines read and written.\n"; infile.close(); outfile.close(); return 0; } bool openFiles (ifstream& input, ofstream& output) { string filename; cout << "INPUT file name please: "; cin >> filename; input.open (filename.c_str()); if (input.fail()) { cout << "Input file not found or corrupt!\n"; return false; } cout << "OUTPUT file name please: "; cin >> filename; output.open(filename.c_str()); if (output.fail()) { cout << "Output file: deevice not found or disk full!\n"; return false; } return true; } int readFile (ifstream& input, ofstream& output, int& countMale, int& countFemale, double& sumMaleGPA, double& sumFemaleGPA) { char first; int line_count = 0; double second; if (input.eof()) return line_count; else { while (input.good()) { input >> first >> second; line_count++; if(first == 'm') { sumMaleGPA += second; countMale++; } else if(first == 'f') { sumFemaleGPA += second; countFemale++; } } } double average = 0; for(int i = 0; i < countMale; i++) average += sumMaleGPA; average = average / countMale; return line_count; } double averageGrade(int count, double sumGPA) { double averageGrade = sumGPA / count; return averageGrade; } void outLine (int f, double s, int c, ofstream& out) { out << setw(3) << c << ' ' << setw(4) << f << ' ' << setw(6) << s << endl; }
-
Helping hand for c++ homework?
I got my average function to work :) Still need to figure out how to output it into the text file now...
-
Helping hand for c++ homework?
The spawn of satan AKA my teacher, HATES when we do math in the main function. I need to do the math in a separate function! <_<
-
Helping hand for c++ homework?
Got the program to finally start without errors.... 1.) It didnt put anything in my output list....I need to keep going over notes to look for this. 2.) Still need to learn how to accept multiple input files. 3.) Average (shouldn't be too hard for me.) :---) #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <cmath> using namespace std; bool openFiles (ifstream&, ofstream&); int readFile (ifstream&, ofstream&, int&, int&, double&, double&); void outLine (int, double, int, ofstream&); int countMale = 0; int countFemale = 0; double sumMaleGPA; double sumFemaleGPA; int main() { int numlines = 0; ifstream infile; ofstream outfile; bool opened; opened = openFiles (infile, outfile); if (!opened) exit (1); numlines = readFile(infile, outfile, countMale, countFemale, sumMaleGPA, sumFemaleGPA); cout << "\n" << numlines << "lines read and written.\n"; infile.close(); outfile.close(); return 0; } bool openFiles (ifstream& input, ofstream& output) { string filename; cout << "INPUT file name please: "; cin >> filename; input.open (filename.c_str()); if (input.fail()) { cout << "Input file not found or corrupt!\n"; return false; } cout << "OUTPUT file name please: "; cin >> filename; output.open(filename.c_str()); if (output.fail()) { cout << "Output file: deevice not found or disk full!\n"; return false; } return true; } int readFile (ifstream& input, ofstream& output, int& countMale, int& countFemale, double& sumMaleGPA, double& sumFemaleGPA) { char first; int line_count = 0; double second; if (input.eof()) return line_count; else { while (input.good()) { input >> first >> second; line_count++; if(first == 'm') { sumMaleGPA += second; countMale++; } else if(first == 'f') { sumFemaleGPA += second; countFemale++; } } } double average = 0; for(int i = 0; i < countMale; i++) average += sumMaleGPA; average = average / countMale; return line_count; } void outLine (int f, double s, int c, ofstream& out) { out << setw(3) << c << ' ' << setw(4) << f << ' ' << setw(6) << s << endl; }