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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Matrix multiplication
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education