Write a java program that uses a whileloop to check for all

Assignment Help JAVA Programming
Reference no: EM131286109

Write a Java program that uses a while-loop to check for all numbers between 0 and 500 that are: 
(a): a multiple of 5 and 7 
(b): a multiple of 5 or 7 

The program should print in the format of the sample output below. 
Sample Output 
0 is a multiple of 5 or 7 
5 is a multiple of 5 or 7 
7 is a multiple of 5 or 7 
10 is a multiple of 5 or 7 
...etc... 
35 is a multiple of 5 and 7 
40 is a multiple of 5 or 7 
...etc... 

Reference no: EM131286109

Questions Cloud

Design an algorithm for computing vn for any positive : Design an algorithm for computing vn for any positive integer n. Besides assignment and comparison, your algorithm may only use the four basic arithmetical operations.
Identify a policy relevant to health care : You are a health care policy analyst for the local health department. Identify a policy relevant to health care from your state health department.
Ummarize each of the four sections of your capstone paper : A 7- to 8-slide PowerPoint-style presentation with audio that summarizes each of the four sections of your Capstone Paper. Use the PowerPoint record feature within the PowerPoint program to narrate your slides.
Common security weaknesses inherent in unix or linux : Question A: What are some of the common security weaknesses inherent in Unix or Linux based systems and what techniques can be used to harden these systems against an attack?
Write a java program that uses a whileloop to check for all : Write a Java program that uses a while-loop to check for all numbers between 0 and 500 that are:
Estimate created by senior management : Why is the cost estimate generated by the project team likely to be different from the cost estimate created by senior management?
Explain the image using the four visual cues : Choose one of their works. Analyze the image using the four visual cues from your reading: color, form, depth, and movement. Explain how the artist makes use of these four cues.
Anshu correctly remembers that his sisters bday is before : Anshu correctly remembers that his sister's b'day is before 20th but after 15th Oct. but her father correctly remembers that his daughter's b'day is before 17th Oct. Anshu's sister's b'day falls on which day?
Communication techniques and professionalism : Summarize the process of addressing prohibited content/activity, and explain privacy, licensing, and policy concepts. Describe proper communication techniques and professionalism when working with users.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Determine the number is prime

Determine if the number is prime. If N is prime, then print a message stating that it is prime - If the integer is not between 0 and 8000000, then the program keeps prompting the user to re-enter the number till the integer is within the proper ran..

  Java application that calculates the body mass index

Write a Java application that calculates and displays the body mass index (BMI) for N people

  Write a java program called calctickets

write a java program called CalcTickets that prompts (asks) the user to enter a ticket number. The format of a valid ticket is C[C]DDDDD[C][C]

  Exceptions-memory management and concurrency

This question asks you to compare properties of exceptions in C++ and Java.

  Write prolog clauses to express therelationships

Write prolog clauses to express the following relationships, given the parent relationship: grand-parent, sibling, cousin.

  Write a statement that prints the number of characters

Write a statement that prints the number of characters in a String object called myString. Write statements to prompt for and read user's age using Scanner variable

  Problems related to java programming

Create a Java program to do the following: - Open the text file you downloaded. - Read each record.

  Concepts of interfaces and inheritance

In this assignment we will work with the concepts of interfaces and inheritance. We will make use of a extends to create an inheritance hierarchy, and use implements to implement an interface that allows properties to be added to objects at run-ti..

  Develop and test stand alone java applications

Gain practical skills in Graphical User Interface (GUI) programming by implementing an event driven application.

  Create a guessing game

Create a guessing game where the user enters an integer between 1 and 10.

  Write a payroll applicaion in java

The program should allow the user to enter information for any number of employees in this manner.

  Develop a set of classes for a college

Person: A Person contains a first name, last name, street address, zip code, and phone number. The class also includes a method that sets each data field and display method that displays all of a Person's information.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd