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
                                                       HELP PLEASE 
Marina CMI [18]
Your answer should be mode







5 0
3 years ago
Read 2 more answers
Which option should you select to ignore all tracked changes in a document? To ignore all tracked changes in a document, you sho
Cloud [144]

Answer:

where is the options

Explanation:

4 0
2 years ago
In reference to computer communications, what does the term noise mean?
jeka94
Noise usually means static.
6 0
2 years ago
Read 2 more answers
Jenny needs to record the names of 30 students, write down the subjects they studied, and note their grades in each subject afte
SCORPION-xisa [38]

Changing a worksheet name in Microsoft Excel can be done in multiple ways, but only one of them is correctly explained in the provided option, which is (A) double-click both the worksheet tabs one at a time and then enter the new names.

The other options are incorrect. Even though you can change a worksheet’s name by right-clicking the sheet name, you also need to choose the appropriate option from the window bar that would appear – which is, of course, the rename option.

5 0
3 years ago
Read 2 more answers
Why was the microchip essential to improving computers?
-BARSIC- [3]
Because it downsized the scale of the computer itself.

5 0
3 years ago
Other questions:
  • Question 5
    5·1 answer
  • Which group of commands all appear on the Standard toolbar?
    9·2 answers
  • Kaitlin likes a particular design theme, but she is not sure about every single color for bullets, backgrounds, etc found in the
    5·2 answers
  • The statement ____ declares intList to be a vector and the component type to be int
    8·1 answer
  • Modify class Time2 of fig 8.5, (which is split into four pictures) to include a tick method that increments the time stored in a
    8·1 answer
  • 1. Do our shared social experiences lead us to think<br><br> communication is a cure-all?
    13·1 answer
  • I will give brainliest!!!!! I NEED HELP ASAP!!!!!!!
    9·1 answer
  • Explain the concept of “survival of the fittest”
    15·1 answer
  • The area of ai that investigates methods of facilitating communication between computers and people is?.
    5·1 answer
  • What represents a user’s specific preferences?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!