Computers and Technology, 04.11.2020 06:00 drecooks713
The template code provided is intended to take two inputs, x and y, from the user and print "pass" if one or more of the following is true:
x is not less than 4
y is not greater than 5 and x + y is less than 7
However, when using De Morgan's law to simplify this code, the programmer has made some mistakes. Can you correct the errors so the code functions as intended?
/* Lesson 6 Coding Activity Question 2 */
import java. util. Scanner;
public class U3_L6_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System. in);
int x = scan. nextInt();
int y = scan. nextInt();
if(!((x 5) || x+y > 7))
System. out. println("pass");
}
}
Answers: 3
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
The template code provided is intended to take two inputs, x and y, from the user and print "pass" i...
Mathematics, 10.02.2022 14:20
SAT, 10.02.2022 14:20
Mathematics, 10.02.2022 14:20
Computers and Technology, 10.02.2022 14:20
Biology, 10.02.2022 14:20
Business, 10.02.2022 14:20
SAT, 10.02.2022 14:20
Mathematics, 10.02.2022 14:20
Mathematics, 10.02.2022 14:20
Mathematics, 10.02.2022 14:20