Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. nebmucoy674

    Java Using random number to multiply by user input

    Hey all, I want to create a random number and multiply it by a users input; the objective is to: Total number of zombies = population - (A random number between: minimum expected survivors and (5 * minimum expected survivors).... So the input is going to be the minimum expected survivors...
  2. nebmucoy674

    Java Simple 10 second question for if an integer is defined in blocks of code

    Hey, maybe a learning experience for new people. Watching something on youtube it said that a string/integer is defined in each new block of code. So why is 9 still showing instead of 6 in the console After watching this video on blocks of code I thought that after the variable is defined...
  3. nebmucoy674

    Java Creating a google search to create a URL

    I originally thought I had this one... Use scanner, get input from user, then concatenate it to a google search. My teacher stated the follow rules for URL's: 1. Replace +'s with %2B 2. Replace all spaces with +'s 3. Replace all "'s with %22 So here I am, doing what I thought was said, and...
  4. nebmucoy674

    Java Package required in .java using Eclipse? (first project)

    Hey all, I hope this thread finds everyone well! I'm new to Java and this is literally my first project. The school I attend requires us to use Eclipse. When I start a new "class" (which please correct me if I'm wrong is about the same thing as a new java program inside a java project?)...
  5. nebmucoy674

    JavaScript If/Else JS with time of day

    Again, thank you all for your help. I'm being taught a class online and HAVE to follow a If/Else script for the current project. I've tried multiple times with no success.... is it so simple I can't see it? Furthermore, is there an online resource that can check JS code pretty well with a...
  6. nebmucoy674

    JavaScript Greeting with day of the week

    Why is this JS not showing the appropriate greeting? I'm new to this, but I thought the getDay() would result in 0-6, with 0 and 6 being weekend, resulting in the appropriate greeting. Thank you! <p id="weekday"></p> <script> const day = new Date().getDay(); let greeting; if (day = 0) {...
  7. nebmucoy674

    JavaScript Multiple Scripts = Multiple Problems?

    Hey all, First, thank you for the forum; I've asked only one question and got an answer much quicker than asking my local college professors..... So from my previous post it seems I have problems with more than (1) script on one page. Is that why I can't get the first and third JS to run...
  8. nebmucoy674

    JavaScript (2) JS scripts resulting in the same array (for the first script) showing for both

    Hey all, I'm beginning at JS and was going through some exercises online. I'm attempting to have (2) different arrays show when the appropriate button is clicked. However, the "cities" show for both, as opposed to the "countries" for the second. Any help is appreciated. <body> <...
Back
Top Bottom