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
Degger [83]
3 years ago
12

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:Press the q key 2 times to quit.Sample program:#include int main(void) { char letterToQuit = '?'; int numPresses = 0; return 0;}
Computers and Technology
1 answer:
LekaFEV [45]3 years ago
3 0

Answer:

#include <stdio.h>

int main(void) {

char letterToQuit = '?';

int numPresses = 0;

printf("Press the %c key %d times to quit ", letterToQuit, numPresses);

return 0;}

Explanation:

in print statement %c is replaced by value of  variable 'letterToQuit'and %d is replaced by value of variable 'numPresses'

You might be interested in
Tablets, smartphones, and video game consoles usually have which of the following types of operating systems? distributed multiu
vovikov84 [41]
Embedded.
<span>
Real-time is for thing like your thermostat (Nest) etc.
Distributed is for huge number crunching supercomputers.
Multi-user would mean more than one person was using the device at the same time with a different device.</span>
6 0
4 years ago
Read 2 more answers
8. A pattern of being late for work or for appointments is usually
Reika [66]
As I see it, I think people are being late because of different reasons. I used to come late, but when I realized it annoys other people, I tried to change this bad habit and it required a lot of work (but I managed to to that). It is not easy to change bad habits with a little work.
Some people are late because they do not realize it really annoys people and I think problem is related to the type of personality. Some people are late, because they have a lot to do, some are late because they are lazy. I would choose answer B.
7 0
4 years ago
Frank develops a questionnaire for his study on Internet dating. One of his questions asks, "How do you feel about Internet dati
Nitella [24]

Answer:

Open-ended questions

Explanation:

Open-ended questions are constructed in a statement format and require a response. These questions cannot be answered with a 'yes' or 'no' or a rating scale.

The question "How do you feel about internet dating?" cannot be answered with a 'yes' or a 'no'. It is aimed at revealing the position of the reviewer and can be answered in detail.

3 0
3 years ago
Read 2 more answers
What linux command is used to change file permissions?
postnew [5]
Chmod

See:

man chmod


------------------------
5 0
3 years ago
Imagine you just left a store with a bag of groceries. You are concerned that the fragile items will not survive the trip home,
iogann1982 [59]

Answer:

Explanation:

#include <iostream>

using namespace std;

#include <iostream> // For cout and cin

#include <string>   // For string objects

#include "Bag.h"    // For ADT bag

using namespace std;

int main()

{

int y=0;

string clubs[] = { "eggs", "eggs", "eggs", "orange", "bread", "bread" };

Bag<string> grabBag;

Bag<string> fragileBag;

for (int x = 0; x < 6; x++) {

grabBag.add(clubs[x]);

}

int count = 0;

for (int q = 0; q < 6 ; q++)

{

if (clubs[y] == "eggs" || clubs[y] == "bread") {

fragileBag.add(clubs[y]);

if(grabBag.remove("eggs")){

   ++count;

}

}

y++;

}

cout << "fragile bag contains:" << endl;

fragileBag.displayBagContents();

cout << "grocery bag contains:" << endl;

grabBag.displayBagContents();

cout << "Number of items removed from grocery bag : " << count<<endl;

return 0;

};

3 0
4 years ago
Other questions:
  • A triangle is an example of __________ .
    9·1 answer
  • The _device provides a means of communication between a computer and outer world.​
    14·1 answer
  • A developer has been asked to create code that will meet the following requirements: Receives input of: Map, List Performs a pot
    13·1 answer
  • Difference between TIFF and BMP
    14·1 answer
  • identify at least three additional ethical responsibilities expected from a computer professional. In brief, explain each respon
    11·1 answer
  • To change the contents of the text that appears on the face of a Button object, you must use the Caption property. True or false
    12·1 answer
  • Discuss four uses of computer ​
    13·2 answers
  • The tags are always enclosed within a pair of<br>(a) curly<br>(b) square<br>(©) angular​
    6·1 answer
  • What is known as the global network of computers?
    9·2 answers
  • 9. Which of the following will best protect your computer from viruses and hackers?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!