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
klio [65]
3 years ago
5

Write a C program to input a character, then check if the input

Computers and Technology
1 answer:
rodikova [14]3 years ago
6 0

Answer:

// CPP program to find type of input character

#include <iostream>

using namespace std;

void charCheck(char input_char)

{

// CHECKING FOR ALPHABET

if ((input_char >= 65 && input_char <= 90)

|| (input_char >= 97 && input_char <= 122))

cout << " Alphabet ";

// CHECKING FOR DIGITS

else if (input_char >= 48 && input_char <= 57)

cout << " Digit ";

// OTHERWISE SPECIAL CHARACTER

else

cout << " Special Character ";

}

// Driver Code

int main()

{

char input_char = '$';

charCheck(input_char);

return 0;

}

Explanation:

// CPP program to find type of input character

#include <iostream>

using namespace std;

void charCheck(char input_char)

{

// CHECKING FOR ALPHABET

if ((input_char >= 65 && input_char <= 90)

|| (input_char >= 97 && input_char <= 122))

cout << " Alphabet ";

// CHECKING FOR DIGITS

else if (input_char >= 48 && input_char <= 57)

cout << " Digit ";

// OTHERWISE SPECIAL CHARACTER

else

cout << " Special Character ";

}

// Driver Code

int main()

{

char input_char = '$';

charCheck(input_char);

return 0;

}

You might be interested in
What is going to be the shortest, most concise restatement of information?
iVinArrow [24]
Not sure i need this too
4 0
3 years ago
Read 2 more answers
A feature of the IEEE 802.11n/ac standards for wireless networking whereby two or more antennas are used at both ends of transmi
Vitek1552 [10]

Answer:

Yes it is.

Explanation:

The IEEE 802.11n/ac standards for wireless networking use two antennas to improve the data rates, with these both antennas the transmission is better and the performance, MIMO is a technology that uses multiple antennas to coherently resolve more information than possible using a single antenna, this is the main feature for this technology.

5 0
3 years ago
The while loop has two important parts: a condition that is tested and a statement or block of statements that is repeated as lo
natima [27]

Answer:

TRUE

Explanation:

The while loop is used to run the block of statement again and again until condition is TRUE. if condition false program terminate the loop and execute the next of while statement.

syntax:

initialize;

while(condition)

{

 statement;

  increment/decrement;

)

when condition is TRUE, the block of statement execute again and again.

8 0
3 years ago
Write a function called cipher(phrase,shift)that accepts two parameters: a string phrase and an integer shift.The integer shift
Aleks [24]

Answer:

Following is given the code according to requirement.

The code is attached as an image so that the indentation is understood by the user. Comments are given inside the code where necessary.

The output of code is also attached as well  in end.

I hope it will help you!

Explanation:

7 0
3 years ago
Computers are not simple enough to be used by the common citizen. -John Howard, 1975.
Rina8888 [55]
The answer would be FALSE because computers are simple enough to be used by people, and today many use computers for many things.
4 0
3 years ago
Read 2 more answers
Other questions:
  • Create a single line comment that says ""Print results to screen""
    13·1 answer
  • A new computer workstation has been installed in a small office. the user of the workstation can print a document using a networ
    9·1 answer
  • Which statements are true about modern
    9·1 answer
  • Defeating authentication follows the method–opportunity–motive paradigm.
    5·1 answer
  • SHOW ME SOME C++ TUTORIALS?
    10·1 answer
  • Which is a safe practice when online
    5·2 answers
  • Linda is searching for a new job. Which information would her potential employers likely review in her social profile?
    14·2 answers
  • Discuss the challenges of not using the five elements of multimedia in a positive manner<br>​
    7·1 answer
  • An analyst determines the value of investments<br><br> True<br><br> False
    15·2 answers
  • Pedro would like to create a computer program to add two numbers. The commands for the algorithm he created are:
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!