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
Y_Kistochka [10]
3 years ago
9

Write a switch statement that tests the value of the char variable response and performs the following actions: if response is y

, the message Your request is being processed is printed if response is n, the message Thank you anyway for your consideration is printed if response is h, the message Sorry, no help is currently available is printed for any other value of response, the message Invalid entry; please try again is printed.
Computers and Technology
1 answer:
kirill [66]3 years ago
6 0

// Here is the required switch statement on response character

switch(response){

case 'y': // case to check if the response is y

cout<<" Your request is being processed ";

case 'n': // case to check for n

cout<<" Than you, anyway for your consideration";

case 'h': // case to check for h

cout<<"Sorry \, no help is currently available.";

default : // default case

cout<< Invalid entry: please try again.";

}

You might be interested in
Binary Number Cards
Sedaia [141]

Answer:

13: 1101

5: 0101

10: 1010

2: 0010

Explanation:

The binary system, on the other hand, is a base-2 number system. That means it only uses two numbers: 0 and 1. When you add one to one, you move the 1 one spot to the left into the twos place and put a 0 in the ones place

what is done with the dice is to have an example of how binary numbers are made until 15

5 0
3 years ago
A research study does not need to be well designed to be effective.<br> False<br> O True
Sedbober [7]
Answer:

true

Remember to drink water!!
7 0
3 years ago
2.4 Code Practice: Question 2
Romashka-Z-Leto [24]

Answer:

import math

x = float(input("Input a decimal number of your choice: "))

y=int(x)

x=x-y

print(math.fabs(x))

Explanation:

6 0
3 years ago
Most programming languages allow you to ask two or more questions in a single comparison by using a(n) ____ operator that joins
g100num [7]

Answer:

And is the correct answer for the above question.

Explanation:

  • And operator is an operator in the programming language which described two decisions in a single statement and it gives true if both the condition defined in the statement is true and it gives false if any of the conditions defined in the statement gives the false result.
  • The above question-statement asked about that operator by which the user can write the two conditions in a single statement. Then the answer is And operator. One example for And operator in c language with if statement is-- if(a>=5&&a<=10), in which && symbols represents AND operator.
6 0
3 years ago
Finish the sentence. If the IP address and MAC address are parameters of layer 3 and layer 2, respectively, a port number is a p
stepan [7]

Answer:

Layer 4

Explanation:

MAC address works at the data link layer (layer 2) of the OSI model. Mac address allows computers to uniquely identify themselves in the network

IP Address is a logical address that works at the network layer of OSI model (layer 3) (actually the IP layer of TCP/IP model).

The port number works at the transport layer of the OSI model (layer 4).The port number uses sequence number to send segments to the correct application thereby ensuring they arrive in the correct order.

7 0
3 years ago
Other questions:
  • I need help to find out what is wrong with this program and my variable, "exponent" comes out as 0 in the output instead of the
    14·1 answer
  • Which of the following applies to a DNS caching server? (Choose all that apply.)
    6·1 answer
  • Which of the following mountain ranges stretches from Alabama to Canada?
    10·1 answer
  • A meeting of the quality team June is nervous about suggesting ideas because he is not sure he understands why they are qualifie
    6·2 answers
  • What does the binary odometer show about representing large numbers?
    8·1 answer
  • Which kind of testing runs the system in a simulated environment using simulated data?a) validation testing. b) verification tes
    5·1 answer
  • The Word feature that would allow you to insert fields from an Access database into multiple copies of a Word document is called
    12·1 answer
  • Chloe is creating the software requirements specifications (SRS) for a project. The project is a web app that allows students to
    12·1 answer
  • Priortization is an example of a skill that helps you reach long term goals because
    14·1 answer
  • Analyze the sentence below . choose your answer on the box below write your answer in your quiz notebook
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!