Jump to content

darth_bubbles

Member
  • Posts

    197
  • Joined

  • Last visited

Everything posted by darth_bubbles

  1. Any language, any poetry form. It could rhyme, it could be a haiku. Maybe even try for iambic pentameter if you are ambitious. Good Luck!
  2. I will use it only with my phone. Mostly video, with a small amount of music. Sound quality is important but I'd also like them to be durable and hopefully comfortable enough to lie on my side in bed with. Thanks.
  3. They have been friends for a while
  4. I wrote this a year or two ago. It converts mixed numbers(3 1/2) to improper fractions(7/2) <html> <body> <title>Converting Mixed Numbers to Improper Fractions!</title> <script type="text/javascript"> var wholeNum = Number(prompt("How many whole numbers are there?")); var numerator = Number(prompt("What is the numerator? (number on top)")); var denominator = Number(prompt("What is the denominator? (number on the bottom)")); alert("Now I will convert the number!"); var wholeAndDen = wholeNum * denominator; var newNumerator = numerator + wholeAndDen; alert("The number is " + newNumerator + "/" + denominator); </script> </body> </html>
  5. Yeah it probably is quicker. I just need to get used to it
  6. The shortcut does work on all monitors. The mouse movement doesn't work on desktop. Thanks for the shortcuts!
  7. Hmm. You are right with the windows key + S, but it still doesn't work with the mouse movement. I guess I will start using windows+S though!
  8. The thing where you put your mouse into the corner and drag it down to open search. How do I change what monitor it's on? It used to work on my main monitor but now it only works on my secondary monitor. My main monitor is set to my main display, so I don't know why it's not working. The only thing I can think of is that my second monitor is "1" when I click identify, but I don't know how to change that. Please help.
  9. Do your mean corrupt? I don't know. Here's the thing though, My windows version is unlicensed. I used a friends key so I could install it but not validate it. If I use a USB key to install it, does it let me install windows fresh but keep all my other files? Even if my copy isn't validated?
  10. As I am rebooting my computer the screen goes black and says "An operating system wasn't found. Try disconnecting any drives that don't contain an operating system. Press any key to restart" So I press a key and it restarts fine. It does this every time. Is this serious? It's a Western Digital Caviar Blue 1TB 3.5" 7200RPM Internal Hard Drive
  11. It probably wouldn't be a good idea to vape near an intake fan, but I am just guessing here, as I've never vaped before and I don't know anything about them really.
  12. Hey! I am going on a trip soon and I'd like to get a cheap MP3 player to play all my music. I've got 5.33 GB and I don't want to spend too much money. What do you recommend? Thanks!
  13. Newb here. What does that mean and why does it happen?
  14. This new forum design! :lol: I like it! What do you think?
  15. Should I use different curly bracket styles depending on what I'm doing? IE for loops, if statements, etc
  16. Oh, I still had the Multiples.class and I call running that instead of Problem.class My bad.
  17. Thank you so much! What is the difference between | and || ? It seems to work with both. Should I do my curly brackets like that all the time? When should I and when shouldn't I? Here is my final code. I changed the class and method name, and changed 10 to 1000. class Problem{ // Variable set up: static int numbers; static int belowThis = 1000; // Check all numbers below this number public static void main(String[] args){ System.out.println( multiples(belowThis)); } // Change this method name please public static int multiples(int num){ for(int i = 1; i < num; i++){ if (i % 3 == 0 || i % 5 == 0) { numbers += i; } } return numbers; }} However, something is odd... When I run through CMD it says 23, but here it says the correct answer (233168)
  18. I am doing this problem: Problem 1 - Project Euler I need help with how to face some trouble I'm having. First of all, Here's my code. The variable and method names ARE NOT GOOD. I am going to change them later. class Multiples{ // Variable set up: // FIX ALL VARIABLE NAMES static int numbers; static int belowThis = 10; // Check all numbers below (and including) this number public static void main(String[] args){ System.out.println( foo(belowThis)); } // Change this method name please public static int foo(int num){ for(int i = 1; i <= num; i++) { if (i % 3 == 0 | i % 5 == 0) { numbers = i; return numbers; } } }} Here's my problem: When I try to build this code, It says: error: missing return statement So I know I need to fix this by putting a return statement inside the foo class but not in the for statement, but what's the best way of doing this? Thanks!
  19. Codecademy.com is free and really nice. I highly recommend it. It also has a built-in forum for questions.
×