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
Bond [772]
3 years ago
13

Give a real life of an if statement

Computers and Technology
1 answer:
bogdanovich [222]3 years ago
7 0

Answer:

If Joe wants to eat an apple then he eats an apple.

Explanation:

The if statement checks if Joe "wants to eat an apple", if it turns out he does not then nothing will happen.

You might be interested in
Which firewall has a network interface located in a unique network segment that allows for true isolation of the segments and fo
elixir [45]

Answer:

DUAL - HOMED FIREWALL

Explanation:

Dual-home firewall refer to an Ethernet device that has more than one network interface that sits between an untrusted network and trusted network in other to provide secure access.

In dua homed firewall one connection is an internal network and the second connection is to the Internet and works as firewall provided in which there is no direct IP traffic between the Internet and the internal network. In such a case, all Internet applications are run only on the dual-homed host.

4 0
3 years ago
Write a program with a loop that lets the user enter a series of positive integers. The user should enter −1 to signal the end o
Fiesta28 [93]

Answer:

import java.util.Scanner;

public class num2 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int count =0;

       int total = 0;

       System.out.println("Enter the numbers");

       int num = in.nextInt();

       while(num!=-1){

           total = total+num;

           count++;

           System.out.println("Enter the next number");

           num = in.nextInt();

       }

//Compute the average

       double average = (double) total/count;

//Outputs

       System.out.println("Total count of numbers entered "+(count));

       System.out.println("Sum of the numbers "+total);

       System.out.printf("Average is %.2f ",average);

   }

}

Explanation:

  • Using java programming language
  • Import scanner class to receive user input
  • declare variables count and total and initialize to zero
  • Prompt user to enter numbers
  • Use a while statement with the condition while(num!=-1)
  • Within the while body keep prompting user to enter a number, increase count and update total
  • when -1 is entered the loop breaks and average is calculated
  • Use printf() method to print average to 2 decimal places.
5 0
3 years ago
To edit the color of the text in presentation software, choose the Font color command Text Color in the ________ ribbon toolbar.
Strike441 [17]
Format because it changes the look


5 0
3 years ago
Read 2 more answers
Convert 12 bits to bytes​
Genrish500 [490]

Answer:

1.5 bytes

Explanation:

I byte = 8 bit ....

3 0
2 years ago
A ____ object is used to hold data that is retrieved from a database via the OleDbDataAdapter connection. a. DataRecord b. DataS
mariarad [96]

Answer:

datatable

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Technology can most broadly be defined as anything that does which of the following ?
    11·1 answer
  • A technician is trouble-shooting an IDE hard drive that is emitting a humming sound. They suspect a faulty connector. Which of t
    6·1 answer
  • If a user wants to add an expansion card to increase the memory of a computer, where should the user insert the card?
    12·2 answers
  • Lenny is a cheese packer at Cheddar Express. He is paid $.52 for every case of cheese he packs and loads onto delivery pallets M
    12·1 answer
  • Look at the following description of a problem domain:The bank offers the following types of accounts to its customers: saving a
    8·1 answer
  • ________ did you sell your computer to?​
    9·1 answer
  • Which can be used to plan a program?
    13·2 answers
  • I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
    12·2 answers
  • How can you have a safe browsing experience?
    10·2 answers
  • Microsoft Office PowerPoint 2016 enables you to create robust multimedia _______.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!