Sellcodes
  • Browse
    • Login
    • Sign Up
  • Users are requesting the codes...
  • See all requests

JAVA

Write a program called Zapper that takes as input two integers and does the following:

If the start number is not even print "The start is not an even number."

Using a for loop, loop through all of the numbers from the smaller integer to the bigger integer.

Using a switch statement, if the remainder of the number divided by 3 is 0 print "ZIP", if the remainder is 1 print "ZAP", otherwise just print the number.

If the input given is not an integer, the program must catch the exception and print out "Not an integer." then exit.

link-img

1

# Users who requested
the code (so far)

link-img

$10

Suggested price from buyers
at which they’d buy

link-img

$10

Potential revenues from requesters (actual
revenues can be significantly higher)

Time of last request:on Nov 23, 2020

Tags:javascript, java

Sellers

If you own such codes, please set up an offer and then invite users to it by clicking on «Invite to offer».

Invite to offer

Buyers

If you’re also be willing to buy those codes then click on «I’d also buy it» (no commitment to buy, but please only click when you’re serious about it).

I'd also buy it!

Tell people about Sellcodes and get 20-40% on every resulting sale!

Spread the word
  • PARTICIPATE
  • Buy
  • Offer
  • Share
  • LEARN
  • About
  • Blog
  • FAQ
  • CONNECT
  • Twitter
  • Facebook
  • Contact
  • LEGAL
  • Terms
  • Privacy
  • © 2025 Sellcodes
Log in to your Sellcodes account
Keep me logged in Forgot your password?
Looking to create an account?
Sign up for Sellcodes
By creating an account you agree to our Terms Of Use and Privacy Policy
Did you mean to Login?