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
Each TextField has a text property that's returned by its textProperty method as a StringProperty. The StringProperty method ___
masha68 [24]

Answer:

B: Bind

Explanation:

JavaFX property binding permits the synchronization of the value of two properties in such a way that whenever there is a change in one of the properties, there is an immediate update on the value of the other property. In this way, The StringProperty method bind receives an ObservableValue as an argument. When the ObservableValue changes, the bound property is updated accordingly.

4 0
3 years ago
The fastest way to get help is to type a word or two in the search box.
Elanso [62]
The fastest way to get help is to type a word or two in the search box. TRUE.
5 0
4 years ago
Which of the following best describes open source software?
sp2606 [1]
What was the options they gave you?
5 0
3 years ago
Read 2 more answers
Memory of the computer is measured by the following units which is = to 1 character
andrey2020 [161]

Memory of the computer is measured by the following units:

                                    Unit  

1 Kilobyte (KB)     1 KB = 1024 Bytes

2 Megabyte (MB)    1 MB = 1024 KB

3 GigaByte (GB)   1 GB = 1024 MB

4 TeraByte (TB)    1 TB = 1024 GB

<h3>In what unit is the computer memory  said to be measured?</h3>

Computer storage and memory is one that can be measured  by the use of units such as megabytes (MB) and gigabytes (GB) as well as others.

Hence, Memory of the computer is measured by the following units:

                                    Unit  

1 Kilobyte (KB)     1 KB = 1024 Bytes

2 Megabyte (MB)    1 MB = 1024 KB

3 GigaByte (GB)   1 GB = 1024 MB

4 TeraByte (TB)    1 TB = 1024 GB

Learn more about Memory from

brainly.com/question/24688176

#SPJ1

4 0
2 years ago
Read the following code used to calculate the weight of an item with two-pound packaging:
Veronika [31]

When there is an error in the code, the function that should be used is A. float(); weight requires decimals

<h3>When is a code?</h3>

Computer code, or a set of instructions or a system of rules defined in a specific programming language, is a term used in computer programming (i.e., the source code). It is also the name given to the source code after a compiler has prepared it for computer execution.

A float is a number with a decimal place since it is a floating-point number. When greater precision is required, floats are employed. The provided value is transformed into a floating point number by the float() function. In this case, the code is used to calculate the weight of an item and the float function will be vital.

Learn more about programs and code on:

brainly.com/question/22654163

#SPJ1

7 0
1 year ago
Other questions:
  • Mass production usually uses an _______________ ____________ or production line technique.
    7·1 answer
  • When you first launch the internet, what page will open?
    9·1 answer
  • How can this be achieved? Universal Containers stores invoices in SAP. Users want to view invoice data onthe related Account rec
    9·1 answer
  • What does px mean in css ?
    13·1 answer
  • A ______ or workstation computer is typically used by one or a small number of people to perform everyday productivity tasks, su
    10·1 answer
  • Any task done by software can also be done using computer hardware, and any operation performed directly by hardware can be done
    8·1 answer
  • A ________ attack uses software to try thousands of common words sequentially in an attempt to gain unauthorized access to a use
    15·1 answer
  • It is the responsibility of a manager to understand the company’s IT architecture and corresponding infrastructure so that the
    8·1 answer
  • What is the objective of Accenture‘s e-stewards program
    5·1 answer
  • Which terms would be found in search for "Mo*”? Check all that apply.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!