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
Naddik [55]
3 years ago
14

Demonstrate how to write each condition as an if-else in Java. If yes, then the computer should print “The answer is A,” “The an

swer is B,” or “The answer is C.” Otherwise, the computer should print “The answer is not here.”
Condition: variable choice is A, B, or C.


(You must actually give a answer to the question. If your answer is A B or C then im removing your answer and flagging it.
Computers and Technology
1 answer:
konstantin123 [22]3 years ago
4 0

\tt x=(float(input("Enter\;your\:answer")))

\tt if\:x=A:

\qquad\tt print("The\:answer\:is\:A")

\tt elif\::

\tt x=B;

\qquad\tt print("The\:answer\:is\:B")

\tt x=C;

\qquad\tt print("The\:answer\:is\:C")

\tt else\::

\qquad\tt print("The\:answer\:is\:not\:here")

You might be interested in
Anyone have Minecraft dungeons I need help with it
steposvetlana [31]

Answer:

for sure add me upppp its mypplong

5 0
3 years ago
Read 2 more answers
A system administrator at Universal Containers created a new account record type. However, sales users are unable to select the
Kobotan [32]

Answer:

The record type has not been added to the sales user profile.

The record type has not been activated.

Explanation:

They are two possible reasons in the available options for the sales user not being able to select the record type when creating new account records. they are :

  • The record type has not been added to the sales user profile.
  • The record type has not been activated.
4 0
3 years ago
Which of the following is the correct order of the poses in a walk cycle?
siniylev [52]
A. Contact, recoil, passing, high-point
4 0
4 years ago
Read 2 more answers
What is the output of the following code? import java.util\.\*; public class Test { public static void main(String[] args) { Lis
beks73 [17]

Answer:

true false

Explanation:

list1 is assigned as Atlanta, Macon, Savanna

list2 is assigned as Atlanta, Macon, Savanna

list3 is assigned as Macon, Atlanta, Savanna

After these assignments,

The program checks if lis1 is equal to list2 and prints the result. Since both lists are equal, it will print true

The program checks if lis1 is equal to list3 and prints the result. Even though both lists contain the same elements, the order is different, it will print false.

6 0
3 years ago
Write a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as:
cestrela7 [59]

Answer:

6

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Suppose you want to delete an existing file from within Word. What would you do? A. Click on the File button, choose Recent, ope
    9·1 answer
  • Net Worth is equal to assets minus liabilities. Which event will have the greatest impact (positive or negative) on one's net wo
    9·1 answer
  • What is the Documenter?
    10·1 answer
  • Why is Net WPM a better formula than Gross WPM to calculate typing speed?
    9·2 answers
  • Suppose you have the following declaration.char[] nameList = new char[100];Which of the following range is valid for the index o
    7·1 answer
  • 1. Before operating any power tool, you need to
    14·1 answer
  • Edhesive 9.10 Question 3
    13·2 answers
  • Who is the host in super monkey ball?
    14·1 answer
  • What is 2+2 I need to know hurry
    12·2 answers
  • The process of arranging the item of a column in some sequence or order is known as?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!