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
VMariaS [17]
4 years ago
5

Write an application named EnterUppercaseLetters that asks the user to type an uppercase letter from the keyboard. If the charac

ter entered is an uppercase letter, display OK; if it is not an uppercase letter, display an error message. The program continues until the user types an exclamation point. Grading When you have completed your program, click the Submit button to record your score.
Computers and Technology
1 answer:
aleksandrvk [35]4 years ago
5 0

Answer:

Program is in C++

Explanation:

C++ Code:

#include <iostream>

#include <cctype>

using namespace std;

int main(){

char ch;

do{

 cout<<"Enter Character: ";

 cin>>ch;

 if (isupper(ch)){

  cout<<"OK"<<"\n";

 }

}

while(ch!='!');

return 0;

}

_______________________________________

Code Explanation

First execute a do while loop as we want user to enter at least first character to check whether its upper case or not. If user enters exclamation character then this loop will terminate along with the program.

To check whether the entered character is upper case or not we will be using isupper(ch) method defined in cctype library.

If the character is upper case then if condition will show Ok by printing it using cout and this program will show nothing if the character is not upper case.

Sample Output

Enter Character: A

OK

Enter Character: b

Enter Character: c

Enter Character: d

Enter Character: E

OK

Enter Character: G

OK

Enter Character: F

OK

Enter Character: !

You might be interested in
What type of file is MyFile.dll?
pav-90 [236]

Answer:

data file

Explanation:

DLL, in full dynamic link library, a file containing code for commonly used program functions on PCs

3 0
4 years ago
Read 2 more answers
A touch screen can be used as both an input device and output device. explain how this is possible
Evgesh-ka [11]

Well, Touch screen is only an input device as it only takes the input resistance(or capacitance in new touch screens) value as per the touch on the screen. And this value of resistance would determine the location of the touch on the screen.

The output work is done by the LCD or LED displays, which displays some images and texts on screen.

Touch Screen is only a transparent glass which is place on that display and synchronized with the LED displays such that user is able to 'touch' or have a 'sense of touch' on the actual displays

5 0
3 years ago
A palindrome is a string whose reversal is identical to the string. how many bit string of length 20 are palindromes and do not
zepelin [54]

There are 2n possible bit strings for any n.

<h3>What makes something a palindrome?</h3>
  • The way they read both forward and backward is the same.
  • A palindrome is a word, phrase, or sentence that reads the same both forward and backward.
  • Palindrome is a combination of the Greek words for "again" (Palin) and "to run" (drom).
  • A palindromic number, sometimes referred to as a numeral palindrome or a numeric palindrome, is one whose value does not change when its digits are flipped, for example, 16461.
  • The single palindrome date in the M/DD/YYYY date format in 2022 is February 20, 2022. (2-20-2022)

To learn more about palindrome, refer to:

brainly.com/question/28279486

#SPJ4

7 0
2 years ago
The person who suggested that the continents were once a supercontinent, called Pangaea, but slowly drifted apart was who
kherson [118]
Alfred Wegener was the one who came up with the Pangea.
3 0
3 years ago
Read 2 more answers
If a node receives a frame and the calculated CRC does not match the CRC in the FCS,
Basile [38]

Answer:

It drops the frame

Explanation:

The FCS stands for the frame check sequence, and it is nothing else but an error-detecting code which is added to the frame ( communication protocol). However, the frames are being used for sending the payload data via a source to a certain destination. And if the CRC is not correct, or that does not match the CRC of the FCS then it confirms that the sequence is not correct, and FCS drops that frame.

5 0
3 years ago
Other questions:
  • To change the tab order in which fields are encountered on a form, click the tab order button on the ____ tab.
    15·1 answer
  • Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per l
    13·1 answer
  • What kind of a bug is 404 page not found
    10·2 answers
  • Jemima is reviewing her history report and notices that her headings are not formatted the same throughout the
    7·1 answer
  • If the user does NOT click the button what color will "topButton" be when this program finishes running?
    6·1 answer
  • Sandra has composed a draft of her essay in Microsoft Word. She now wants to revise the essay. Which tool can she use to store t
    9·1 answer
  • Study the original and changed passages.
    8·2 answers
  • What is a graphics card?
    5·1 answer
  • Data modeling may be the most important part of the systems development process because: Group of answer choices data are less s
    13·1 answer
  • List two examples of semiconductor materials​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!