Jump to content

ohJey

Member
  • Posts

    1,284
  • Joined

  • Last visited

Everything posted by ohJey

  1. my friend totaled his bike 2 days ago lane splitting... luckily he didn't total his life
  2. My friend has a 1993 Impreza wagon that needs a transmission, so I might just have another subaru
  3. nono, when I bought it I sold the rest of the parts off the car and it's just a shell in my friends back yard now
  4. yeah the cars are really cool, like giant legos just mix and match parts just get a wheel boot and a steering lock that should eliminate like 99.5% of thieves (this is a picture when I bought the car)
  5. yeah it power wheelies easy i want to get a short clutch so I can learn to clutch wheelie
  6. yeah it is but us Americans call it the FZ-07 I think it has to do with the yamaha fazer .
  7. ohJey

    CAR STOLEN

    CAR IS BACK! I don't know if this is allowed, but my car was stolen in Cathedral City, California It's a 1998 Subaru Impreza Car was spotted in Desert Hot Springs on DILLON ROAD and in Palm Springs on CALLE ENCILIA near the Hilton Hotel, heading south If you know anyone from DHS/PALM SPRINGS please help me out! The car is hard to miss http://imgur.com/a/ND0Fv
  8. I'm looking at the previous "no". If the previous statement (b^2-4ac>=0) is "no", then how could (b^2>>4ac) be "yes"?
  9. Is this a logic error? This is the flow chart my teacher gave me for a program that solves the quadratic formula how could b^2-4ac not be >= 0 and b^2 be much greater than 4ac at the same time?
  10. 1. anything newer than office 2007 doesn't work 2. adobe software wont work or it wont use your hardware properly it's best to stay on windows
  11. ohJey

    Need Help C++

    wow... I did i = i-number-1 and it worked
  12. ohJey

    Need Help C++

    the problem is I'm trying to subtract the last dice roll and I can't figure out how to do it the lands.back() was me trying to get the last number in the vector... but it gives me random numbers
  13. I'm trying to make the program simulate dice rolls... the dice add up until 100. If the dice "rolls" and the number is over 100, the roll is subtracted until 100 is landed upon. Ex: 98+4=102, then 102-4=98, then it keeps "rolling" and subtracting until 100 is landed on #include <iostream> #include <ctime> #include <cstdlib> #include <vector> using namespace std; int main() { srand(time(0)); int number, tries{0}; ///the number that the dice lands on vector<unsigned int> lands(5); for(int i=0; i<=100; ++i) { if(i<100) { number = rand()%6; i=number+i; cout << "i: " << i << endl; ++lands[number]; } if(i>100) { i=i-lands.back(); ///need help here cout << "lands.back(): " << lands.back() << endl; ///debugging cout << "i: " << i << endl; } else if(i==100) { cout << "i: " << i << endl; cout << "Done!" << endl; } } tries = lands[0]+lands[1]+lands[2]+lands[3]+lands[4]+lands[5]; cout << "Tries: " << tries; cout << "\nAfter " << tries << " throws the lands are: " << "\n#1= " << lands[0] << "\n#2= " << lands[1] << "\n#3= " << lands[2] << "\n#4= " << lands[3] << "\n#5= " << lands[4] << "\n#6= " << lands[5]; }
  14. actually... I fixed it by adding the line studentID=sqrt(studentID); cout << studentID; I plugged 2742724836164 into a calculator and divided by 524142 and the answer was 524142, so it wasn't doing the square root anyways, thanks a lot
  15. sorry, late reply but I got this
  16. it's ok no hard feelings. I think I might understand now, but feel free to check it out
  17. yeah... I'll have to ask my teacher... If there was a way to store the remainders after each modulus I think that would help
  18. Students in my class have already done it. If you look at the program the number is encrypted by squaring it, doing modulo 90, and adding 33 to that character. Now I need to know how to reverse it.
  19. I need to reverse the "encryption" done in this program cloudflare is acting up so I have to post as a pastebin http://pastebin.com/SyCS8CZh
×