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
oksano4ka [1.4K]
3 years ago
10

Given two variables, is Empty of type boolean, indicating whether a class roster is empty or not, and number Of Credits of type

int, containing the number of credits for a class, write an expression that evaluates to true if the class roster is empty or the class is exactly three credits.
Computers and Technology
1 answer:
Alex_Xolod [135]3 years ago
4 0

Answer:

     if(isEmpty || numOfCredits==3){

         

     }

Explanation:

Consider a complete java program below that prompts user for  number of credits and also asks if class roster is empty or not

<em>import java.util.Scanner;</em>

<em>public class num13 {</em>

<em>    public static void main(String[] args) {</em>

<em>        boolean isEmpty = false;</em>

<em>        Scanner in = new Scanner(System.in);</em>

<em>        System.out.println("Is class Rooster Empty? Yes or No");</em>

<em>        String ans = in.next();</em>

<em>        if(ans.equalsIgnoreCase("yes")){</em>

<em>            isEmpty = true;</em>

<em>        }</em>

<em>        else isEmpty =false;</em>

<em>        System.out.println("Enter number of credits");</em>

<em>      int numOfCredits = in.nextInt();</em>

<em>      if(isEmpty||numOfCredits==3){</em>

<em>          System.out.println("True");</em>

<em>      }</em>

<em>      else {</em>

<em>          System.out.println("Not true");</em>

<em>      }</em>

<em>    }</em>

<em>}</em>

You might be interested in
You have recently resolved a problem in which a user could not print to a particular shared printer by upgrading her workstation
Wewaii [24]

Answer:

B - The user is no longer able to log on to the network

Explanation:

4 0
4 years ago
HELP PLSS!?? I’ve been stuck on this one for a while because I mess up too many time ! If you can solve this than I’ll give you
il63 [147K]

Answer: how can I trust you?

You go first, then I make my move

Explanation:

8 0
3 years ago
A new PKI is being built at a company, but the network administrator has concerns about spikes of traffic occurring twice a day
kipiarov [429]

Answer:

Option A (CRL) is the right answer.

Explanation:

  • Certificates with respective expiration date canceled mostly by CA generating or providing them, then it would no longer be tolerated, is considered as CRL.
  • CRL verification could be more profitable for a platform that routinely manages several clients, all having pronouncements from a certain CA, because its CRL could be retrieved once per day.

Other given choices are not connected to the given scenario. So Option A is the right one.

7 0
3 years ago
Choose all items that represent characteristics of HTML attributes.
OLga [1]

Answer:

- Used to include additional information in an element

- May be required for certain elements

- Consist of a keyword followed by an equals sign and additional information in quotes

Explanation:

<a href="website link goes here">    <---- example element with an attribute.

- You can see the <a> element which creates a link requires a "href" (which means "Hypertext Reference", basically a fancy way of saying a link to another page) attribute for the source of the link.

- The keyword "href" is followed by an equals and wrapped in quotes.

- Can be used to include additional information, like how you can use the keyword "alt" with an <img> tag to add text that shows up when you hover over it.

----------------------------------------------------------------------------------------------------------

In response to the other answers:

- The attribute itself is not wrapped in angle brackets, though it does sit within them. It is the *element* that is wrapped in angle brackets.

- The attributes are not added to the end (closing) tag, they are added to the opening tag.

3 0
3 years ago
Read 2 more answers
In which type of network will a problem with one computer crash the network?
3241004551 [841]

It is easy to troubleshoot problems, Nodes can be added without disrupting the network, The malfunction of one workstation doesn't crash the network.

7 0
3 years ago
Other questions:
  • What type of attack is targeted against a smaller group of specific individuals, such as the major executives working for a manu
    9·1 answer
  • What is the name of the intel technology that allows a processor to handle two threads at the same time?
    6·1 answer
  • When considering the best technology for its particular use what should a business consider
    8·2 answers
  • What is the biggest type of gear?<br><br>A. Spur<br>B.Worm<br>C.Wheel<br>D.Pinion
    6·2 answers
  • Make this the most answered question<br><br><br><br> (for tiktok)
    8·2 answers
  • Which of the following is considered a basic task in the context of computer operations? a. Connecting to the Internet b. Natura
    6·1 answer
  • 2. Which of the following statements describes a need or problem that can be solved using the technology design process.
    14·1 answer
  • Instructions
    15·1 answer
  • What is text or pictures behind the document called?​
    13·1 answer
  • You suspect that a bad video driver is causing a user's system to randomly crash and reboot. Where would you go to identify and
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!