1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
liq [111]
3 years ago
15

What does the following code print?

Computers and Technology
1 answer:
Crank3 years ago
3 0

Answer:

It throws an error.

the public class needs a name.

like this:

public class G{ public static void main(String[] args) {

   int x=5 , y = 10;

   if (x>5 && y>=2) System.out.println("Class 1");

   else if (x<14 || y>5) System.out.println(" Class 2");

   else System.out.println(" Class 3"); }// end of main

   }

if you give the class a name and format it, you get:

Class 2

Explanation:

You might be interested in
A hockey stick hits a puck on the ice. identify an action-reaction pair in this situation.
Alika [10]
The stick exerts a force on the puck; the puck exerts a force on the stick.
7 0
4 years ago
10 points if right...
aivan3 [116]

email because with chat it might wake up the kids and wbsite doesnt make sense. neither does blog so with email you can give personal messages and pictures.

7 0
3 years ago
Read 2 more answers
What errors does the grammar tool find? Choose all that apply
Anestetic [448]

Answer:

2

Explanation:

Because comma splices are not a thing.

(at least i don't think they are)

7 0
3 years ago
Produce an infinite collection of sets A1,A2,A3, . . . with the property that every Ai has an infinite number of elements, Ai ∩
atroni [7]

Answer:

Produce an infinite collection of sets A1,A2,A3, . . . with the property that every Ai has an infinite number of elements, Ai ∩ Aj = ∅ for all i = j, and [infinity] i=1 Ai = N.

Explanation:

Solution

For n ∈ N,

define  A_n = {2 ^n−1  ,(3)(2n−1 ),(5)(2^n−1 ),(7)(2^n−1 ), . . .}

I.e. A_n is all odd multiples of 2^n−1 . We must show that these sets satisfy the desired properties.

• (Infinite Number of Elements).

It is clear that the set A_n = {2 ^n−1 ,(3)(2^n−1 )(5)(2^n−1 ),(7)(2^n−1 ), . . .}  has infinitely many elements.

• (Disjoint).

Given A_n and A_m with n ≠ m, we can assume, without loss of generality, that n < m. Suppose  that there existed some x ∈ A_n ∩ A_m. Then by definition of these sets, there exists some odd numbers k  and l such that x = 2^n−1 . k = 2^m−1  . l.

However since n < m, we have that n ≤ m − 1, and therefore we  can write 2^m−1 = (2^n )(2 i ) with i ≥ 0. Hence we have 2^n−1 . k = 2^n. 2 ^i. l  

Dividing both sides by 2^n−1 yields  k = (2)(2^i ) .l, which contradicts the assumption that k is odd. Therefore A_n ∩ A_m = ∅.

• (Union is N).

We want to show that  [infinity] i=1 A_n = N.

(⊆). Since each A_n is a subset of N, the union of these sets is a subset of N as well.

(⊇).Given any x ∈ N, we can write x = 2^n−1 . k for some n ∈ N where k is odd. Then x ∈ A_n, as  desired.

5 0
3 years ago
Describe how computer become <br> in the next 35 year
marin [14]
Well im going to say that it is going to be more advanced and easier to hack. Not only that but more and more people are going to be using it. You'll see ten year olds and five year olds using computers like they are professionals 
8 0
4 years ago
Other questions:
  • Coupon collector is a classic statistic problem with many practical applications. The problem is to pick objects from a set of o
    14·1 answer
  • How can the font type of an existing style named No Spacing be changed?
    14·2 answers
  • In a study on software license infringement, those from United States were significantly more permissive than those from the Net
    15·1 answer
  • What are some of the ways you can use bitlocker encryption? (choose all that apply?
    10·1 answer
  • Write two cin statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a dash,
    7·1 answer
  • categorize each job role as an administrative job or management job auditor director legal secretary payroll clerk etc ​
    8·1 answer
  • Community gardens are public gardens where local residents can grow plants in a plot. They are very popular, so there are often
    7·1 answer
  • Which of these is the fastest transmission medium?
    11·2 answers
  • Can someone please help me to point out what's wrong with this C program:
    13·1 answer
  • What is the half of 3/18
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!