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
Reika [66]
4 years ago
13

You're a ticket agent for a commercial airline and responsible for checking the identification for each passenger before issuing

their boarding pass. Due to federal regulations, there is a total of three different forms of ID that can potentially be used. You must determine whether the passenger has the sufficient identification to board the plane or not. Facts: ⢠A passport is enough for a boarding pass ⢠Without a passport, passengers must have two other forms of ID: driver's license birth certificate ⢠If the above two conditions are not met, then they are denied. Input Your solution must take in three boolean inputs. The first input represents whether they have a passport or not. The second input represents whether they have a driver's license or not. The third input represents whether they have a birth certificate or not Output The output should display as a boolean result whether they can board the plane or not. Sample Input Sample output true false false true false true true true false false false false
Computers and Technology
1 answer:
algol134 years ago
3 0

Answer:

Follows are the code to this question:

import java.util.*;//import package for user input  

public class Main //defining class  

{

  public static void main(String[] as)//main method

  {

      boolean x,y,z;//defining boolean variable

      Scanner ox= new Scanner(System.in);//create Scanner class object for user input

      System.out.println("input value: "); //print message  

      x=ox.nextBoolean();//input value

      y=ox.nextBoolean();//input value

      z=ox.nextBoolean();//input value

      System.out.println("Output: ");//print message

      System.out.println(x || (y &&z));//use print method to check value and print its value  

  }

}

Output:

1)

input value:  

true

false

false

Output:  

true

2)

input value:  

false

true

true

Output:  

true

3)

input value:  

false

false

false

Output:  

false

Explanation:

In the given code, inside the class three boolean variable "x,y, and z" is declared, that uses the scanner class for input the value from the user end, and in the next print, the method is declared, that uses " OR and AND" gate for calculating the input value and print its value.

In the AND gate, when both conditions are true. it will print the value true, and in the OR gate, when one of the conditions is true, it will print the value true.  

You might be interested in
When evaluating portable CD players, you consider price, the sound quality, and ease of using the controls. These are your _____
ElenaW [278]

Answer:

Hi you haven't provided the options to the question so I will just give the answer in my own words and you can check with the options.

Answer is ALTERNATIVES

When evaluating portable CD players, you consider price, the sound quality, and ease of using the controls. These are your ALTERNATIVES in the purchased decision process

Explanation:

Purchase decision process is the decision making process used by consumers regarding the market transactions before, during and after the purchase of a good or service.

There are five stages involved in purchase decision process which are: need recognition,

Information search, evaluation of alternatives, purchase decision and post purchase behavior.

Evaluation of alternatives: The information search reveals different products for the consumer to evaluate and understand which product would be appropriate, this can also be referred to as the consumer's alternatives.

Therefore, the answer that best suits the question is ALTERNATIVES. When evaluating portable CD players, you consider price, the sound quality, and ease of using the controls. These are your ALTERNATIVES in the purchased decision process

7 0
3 years ago
Read 2 more answers
Notebook is the answer
shusha [124]

Answer:

yea that's the answer lol

8 0
3 years ago
Read 2 more answers
The ________ is responsible for the Internet's domain name system and the allocation of IP addresses.
Agata [3.3K]

Answer:

The answer is "ICANN"

Explanation:

In the given question some information is missing, that is option, which can be described as follows:

A) IAB

B) ICANN

C) W3C

D) ISOC

It manages the installation and processes of multiple databases concerning the Network domain and  provides a stable and safe networking service, and wrong choices were explained as follows:

  • IAB, It provides a protocol to manage IETF, that's why it is wrong.
  • W3C is used in web development.
  • ISOC is used to provide internet accessibility.
6 0
3 years ago
The formula for calculating the amount of interest charged on a loan is:
Marianna [84]

The Python statement that correctly performs the interest calculation is:

  • interest = (principal interest) time.

<h3>What is a Python statement?</h3>

This is known to be a statement  that is said to an instruction that a Python is said to often decode or interpreter and it is also one that it can execute.

Therefore, The Python statement that correctly performs the interest calculation is:

  • interest = (principal interest) time.

Learn more about Python statement from

brainly.com/question/14986545

#SPJ1

6 0
2 years ago
Jessica has pinned her favorite applications as icons on her desktop. She always clicks on these icons to work on them. Which us
Hatshy [7]

Answer:

Graphical User Interface (GUI)

Explanation:

Graphical User Interface clicking on various icons to perform a certain functionality. GUI is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces or command line interface where you would have to type to run the program rather than just click it.

7 0
3 years ago
Other questions:
  • 9) If you are working on the part of 5-15 minutes, time-stamping (every 30 seconds) should start at: a) [00:05:00] b) [00:00:00]
    9·1 answer
  • When advising a customer on the purchase of a new power supply, you should explain that if the power supply runs at peak perform
    9·1 answer
  • The smallest unit of storage is​
    15·1 answer
  • A device can transport objects instantaneously anywhere in the world without damaging them. Is it a creative invention? Yes, bec
    6·1 answer
  • 1. What are the advantages and disadvantages of the digital darkroom as compared to a regular darkroom?
    15·1 answer
  • Basic python coding, What is the output of this program? Assume the user enters 2, 5, and 10.
    8·1 answer
  • How many total bits are required for a direct-mapped cache with 128 blocks and a block size of 8 bytes, assuming a 4GB main memo
    15·1 answer
  • What is computer/why it is called data processor
    7·1 answer
  • It is the responsibility of a manager to understand the company’s IT architecture and corresponding infrastructure so that the
    8·1 answer
  • Intro Programming - Problem(s)
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!