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
Darya [45]
3 years ago
8

CHALLENGE ACTIVITY 2.14.1: Printing a message with ints and chars. Print a message telling a user to press the letterToQuit key

numPresses times to quit. End with newline. Ex: If letterToQuit = 'q' and numPresses = 2, print:
Computers and Technology
1 answer:
barxatty [35]3 years ago
8 0

Answer:

Following are the program in c++ language

#include<iostream> // header file

using namespace std; // namespace

int main() // main method

{  

char l;   // variable declaration  

int number_presss; // variable declaration  

cout<<"Enter the character letter To Quit the key and num to Press: ";

cin>>l; // Read the character value

cin>>number_presss;// Read the integer value  

cout<<"Press the key  "<<l<<" key 4  "<<number_presss<<" times to quit"; //display the number with the format

}

Output:

Enter the character letter To Quit the key and num to Press: w

4

Press the key  w  key 4 times to quit

Explanation:

Following are the Explanation of the program  

  • Read the integer value in the "number_presss" variable by the user using cin function.
  • Read the character value in the "l" variable by the user using cin function.
  • Finally display their value in their respective format
You might be interested in
You need to design a backup strategy. You need to ensure that all servers are backed up every Friday night and a complete copy o
Katen [24]

Answer:

Full

Explanation:

You need to design a backup strategy. You need to ensure that all servers are backed up every Friday night and a complete copy of all data is available with a single set of media. However, it should take minimal time to restore data. Which of the following would be the <u>Full</u> .

3 0
3 years ago
When mapping a drive, you can type in the path to the shared folder on the host computer. what is the syntax for the path?
fomenos
For SMB:  \\server\path\to\share
For CIFS: //server/path/to/share
3 0
4 years ago
Identify two real-world examples of problems whose solutions do scale well
stellarik [79]

Explanation:

We should see scaling well as referring to problems that can well be solved using computation. Two real-world examples are:

  • problems involving finding the largest or smallest of several lists of numbers: Usually, a simple program executed to lookup the data set to determine which number fits the properties needed.
  • problems involving equations: By computing the variables (x, y, etc) that make up the equation, and the operations (eg, addition, division) to be performed on the variables the problem can be solved well.
3 0
3 years ago
If your laptop is not able to connect to your wireless network, which of the
krok68 [10]
The answer is A! Hope this is helpful!
8 0
2 years ago
Read 2 more answers
Why do organizations create multiple databases?
igomit [66]
Just in case one database gets hacked or crashes they have another to run on
5 0
4 years ago
Other questions:
  • Retype the statements, correcting the syntax errors.
    9·1 answer
  • Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching exper
    7·1 answer
  • How does montag know that the mechanical hound leaves faber's house alone?
    14·1 answer
  • Which ofthe following is the most correct statement about the interestsection of the indirect plan for persuasion?
    8·1 answer
  • Which features of words are used to separate numbers and texts into columns
    11·1 answer
  • Data are sent through a network on bundles called _______. select one:
    8·2 answers
  • Which position most likely requires your Master's Degree for success
    7·1 answer
  • A(n) ___________ operating system provides process and memory management services that allow two or more tasks, jobs, or program
    6·1 answer
  • The lenght of a formula Can't be more than ________ characters​
    11·2 answers
  • Retail products are identified by their Universal Product Codes (UPCs). The most commonform of a UPC has 12 decimal digits: The
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!