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
Tamiku [17]
3 years ago
12

Display list of numbered or lettered choices for actions

Computers and Technology
1 answer:
Stells [14]3 years ago
5 0

Answer:

import java.util.Scanner;

public class num1 {

   public static void main(String[] args) {

       System.out.println("Age Greater than 18?");

       System.out.println("Y = \"Yes\"\t N = \"No\"");

      Scanner in = new Scanner(System.in);

      char response = in.next().charAt(0);

     switch(response) {

         case 'Y':

         case 'y':

             System.out.println("You can Visit this Website");

             break;

         case 'N':

         case 'n':

             System.out.println("You are to young to visit this website");

             break;

         default:

             System.out.println("You response is not valid");

     }

   }

}

Explanation:

  • Using Java programming language
  • create a list of options for users to input "yes" or "no"
  • Using the imported scanner class, prompt, receive and store the user's response in a char variable.
  • Use the switch statement in an expression to test user input and print appropriate message.
  • If there is no match print the default message

You might be interested in
If somebody is using a laptop at a coffee shop, how are they likely connected to a network?
marusya05 [52]

Answer:

by signing into the wifi network they have

Explanation:

4 0
3 years ago
Determine the output of the following code segment:
Nataly [62]

Answer:

The output to the given code as follows:

Output:

10

100

64

36

16

4

0

4

16

36

64

Explanation:

In the given java code, an integer variable "i" and an array number is defined, which size is 10, in the next step two for loop is declared, that can be described as follows:

  • In the first loop, array use loop variable "i" use, which minus the value of 5 and multiplies by 2, and it will calculate the square of that number.
  • In the next step, a for loop is declared, that prints these array number variable square.
7 0
3 years ago
Anyone who do bug bounty hunting ?​
olchik [2.2K]

Answer:

No

Explanation:

I do not because it's working with skilled security researchers from all over the world is the key to identifying

5 0
2 years ago
You have a large company, and it is important to your business that your employees' work is backed up regularly. Which network w
Artyom0805 [142]
It really depends on what you doing GUI is best for high graphics output
6 0
3 years ago
Read 2 more answers
A B-tree can be ____ in three ways: inorder, preorder, and postorder.
Harman [31]

Answer:

traversed

Explanation:

B-tree is a self balancing tree and it is a data structure which allows insertion, deletion operations.

inorder, preorder and post order, they all are traversing algorithms in the tree data structure.

inorder: first print left, then root and then right.

preorder: first print root, then left and then right.

postorder: first print left, then right and then root.

Therefore, the answer is traversed.

4 0
2 years ago
Other questions:
  • What is the oldest malware victor
    6·1 answer
  • Which window allows you to view and change your computer's system information and settings?
    9·2 answers
  • 1. Some of the music in the 1960s was used to protest social and political issues. Is music still used as a form of protest? Why
    13·1 answer
  • p25: File Write and Read1) User enters a file name (such as "myMovies.txt").2) User enters the titles of 4 of their favorite mov
    12·1 answer
  • IMPORTANT HELP
    8·1 answer
  • Which view is most often used to reorder slides in a presentation that has already been created?
    15·2 answers
  • SOMEONE PLEASE HELP ME WITH THIS PLEASE HELP ME PLEASE!!!!!!
    6·1 answer
  • When planning your App what difficulties did come across and why?
    5·2 answers
  • How is information sent across the internet binary
    5·1 answer
  • THIS IS TIMED PLS HURRY UP
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!