
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
I am getting stuck on the code to see if its a factor or not. Im not sure where I went wrong.
![Refactor Navigate
Search Project
Window Help
Eclipse
File
Edit Source
Fri Oct 4 10:53:23 PM
Run
35%
eclipse-workspace - Project1-FirstDay/TryAgain.java - Eclipse IDE
Quick Acces
010
Ра X
Lab.java
Tianna.java
Chapter3ProjectTake1.java
*TryAgain.java
4 import java.util.Random;
5 import java.util.Scanner;
6 public class TryAgain
Chapter_3
Chapter2
JRE System I
private static final int remainder
8
0;
=
9
EI resources
public static void main(String[] args)
{
10e
11
19 rt.jar - /Lil
jsse.jar -
12
jce.jar /L
I9charsets.j
13
= new Scanner(System.in);
= new Random();
Scanner input
Random rnd
14
15
16
jfr.jar - /Li
sunec.jar
O10
rnd.nextInt 101)
int x =
{
System.out.print("Please enter a number between 1 and 4: ");
}
int y
17
nashorn.ja
18
010 cldrdata.ja
19
jfxrt.jar
20
Eו
input.nextInt ( ) ;.
21
dnsns.jar
O10
22
010 localedata
int remainder
23
у % х;
sunjce_pr
24
sunpkcs1
if (remainder
{
System.out.print("The number
0)
O10
o25
26
jaccess.ja
O10
y " is a factor of
х);
27
+
zipfs.jar
O10
28
MRJToolk
else
29
Chpt3_Quiz_Tiai
{
System.out.print("The number
}
30
JRE System l
х)%;
y " is not a factor of
31
(default pack
32
33
J Lab.java
34
idk
Project1-First D
ConsoleX
JRE System terminated> TryAgain [Java Application] /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java (Oct 4, 2019, 10:42:21 PM)
(default pack Please enter a number between 1 and 4: 2
Tianna.jav The number 2 is not a factor of 90
TryAgain.j
Writable
Smart Insert
21 41
WP
5
27
2
3.141593
ОСТ
W
P
9
CD
LO](https://content.bartleby.com/qna-images/question/d4491ab8-6fd7-4021-aed8-739218cb6e96/2b897840-6768-4fc1-8396-0c565c16aa7a/g2l6jf.png)
Transcribed Image Text:Refactor Navigate
Search Project
Window Help
Eclipse
File
Edit Source
Fri Oct 4 10:53:23 PM
Run
35%
eclipse-workspace - Project1-FirstDay/TryAgain.java - Eclipse IDE
Quick Acces
010
Ра X
Lab.java
Tianna.java
Chapter3ProjectTake1.java
*TryAgain.java
4 import java.util.Random;
5 import java.util.Scanner;
6 public class TryAgain
Chapter_3
Chapter2
JRE System I
private static final int remainder
8
0;
=
9
EI resources
public static void main(String[] args)
{
10e
11
19 rt.jar - /Lil
jsse.jar -
12
jce.jar /L
I9charsets.j
13
= new Scanner(System.in);
= new Random();
Scanner input
Random rnd
14
15
16
jfr.jar - /Li
sunec.jar
O10
rnd.nextInt 101)
int x =
{
System.out.print("Please enter a number between 1 and 4: ");
}
int y
17
nashorn.ja
18
010 cldrdata.ja
19
jfxrt.jar
20
Eו
input.nextInt ( ) ;.
21
dnsns.jar
O10
22
010 localedata
int remainder
23
у % х;
sunjce_pr
24
sunpkcs1
if (remainder
{
System.out.print("The number
0)
O10
o25
26
jaccess.ja
O10
y " is a factor of
х);
27
+
zipfs.jar
O10
28
MRJToolk
else
29
Chpt3_Quiz_Tiai
{
System.out.print("The number
}
30
JRE System l
х)%;
y " is not a factor of
31
(default pack
32
33
J Lab.java
34
idk
Project1-First D
ConsoleX
JRE System terminated> TryAgain [Java Application] /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java (Oct 4, 2019, 10:42:21 PM)
(default pack Please enter a number between 1 and 4: 2
Tianna.jav The number 2 is not a factor of 90
TryAgain.j
Writable
Smart Insert
21 41
WP
5
27
2
3.141593
ОСТ
W
P
9
CD
LO
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Create a Java program to check if a number is an Armstrong number.arrow_forwardChoose a series (Any series you can find in your math notes or on the internet) and program it to find the solution. The starting and ending points should be input by the user in the program. Use good programming guidelines that we talked in class (clear all, comment lines etc...)...arrow_forwardi fixed what you said and its still giving me the same errorarrow_forward
- How would I write some code that would find the average of a random set of temperatures? I already found out how to find the highest temp and lowest temp.arrow_forwardI'm getting an error 'GeoPoint' not defined when I run the code.arrow_forwardPython Program (Machine learning) Take pictures of the rectangular objects and segment out the objects from the background. a. One object per imageb. Multiple rectangular objects per imageThe rectangular or square objects could be whatever size you can find. You can repeat the same for circular objects too.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education