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
What are the main techniques used to help manage test anxiety? Check all that apply.
Aleks04 [339]

Answer:

1) Avoid the perfectionist of trap

2)Banish the negative thoughts

3) Get enough sleep

4) Make sure you are prepared

5) take deep breaths

Explanation:

In my thought it's the answer of this question.

4 0
2 years ago
Read 2 more answers
13. An Internet Service Provider (ISP) is a company that builds the routers and wired connections that allow individuals to acce
valentinak56 [21]

Answer:

C. redundant networks are more reliable.

Explanation: I just got a 100 on a test and that question was asked.

7 0
3 years ago
A search will _____ determine the index of the goal.
Lapatulllka [165]

Answer:

The correct answer is C. Sometimes.

Explanation:

A database index is a structure that aims to speed up selections and selective operations on a database. An index reduces the number of comparisons required to find one or more database records. This avoids having to perform a so-called full table scan, whereby all records in the table have to be run through sequentially.

Therefore, if the search does not focus correctly on the necessary data, this search will not always determine the index of the goal. Therefore, the user must correctly handle the search keywords to collaborate with the system.

4 0
3 years ago
Mbr and guid advantages and disadvantages
photoshop1234 [79]

Answer:

GPT does not have limitations in terms of the number of partitions. While you can have only 4 primary partitions in MBR, you can have up to 128 partitions in Windows using the GPT partition layout. GPT partition and boot data are more secure than MBR. MBR stores data in one place only.

Explanation:

I took the test

8 0
3 years ago
why might you want to use the send to compressed (zipped) folder command before sending four pictures to a friend via email
IceJOKER [234]

It's easier to send the files that way because you don't have to attach them individually, and then your friend won't have to download them individually - they can just download the zip package and have all four right at their disposal.

6 0
3 years ago
Other questions:
  • What are some good editing software apps for pc?
    11·1 answer
  • A high-angle shot is the same thing as a bird’s-eye shot. True False
    11·2 answers
  • In which type of attack do you get malicious code in links from seemingly reliable websites?
    14·1 answer
  • Which statement is false? Classes are reusable software components. A class is to an object as a blueprint is to a house. Perfor
    6·1 answer
  • A network address is 131.247.160.0/19. The 19 implies that
    5·1 answer
  • I need help with this problem please
    9·1 answer
  • Write steps to Delete data from ‘Datagridview’
    6·1 answer
  • What is abbreviation of the computer​
    15·2 answers
  • Jon wants to assign a value to the favorite food variable: favoriteFood! = "Pizza" but gets an error message. What does he need
    9·2 answers
  • If userNum1 is less than 0, put "userNum1 is negative.\n" to output. If userNum2 is greater than 10, assign userNum2 with 0. Els
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!