Question
Programming challenge description: The sentence A quick brown fox jumps over the lazy dog contains every single letter in the English alphabet. Such sentences are
Programming challenge description:
The sentence "A quick brown fox jumps over the lazy dog" contains every single letter in the English alphabet. Such sentences are called pangrams. You are to write a program which takes a sentence and outputs all the letters it is missing which prevent it from being a pangram. You should ignore the case of the letters in the input sentence, and your output should be all lowercase letters in alphabetical order. You should also ignore all non US-ASCII characters. In case the input sentence is already a pangram, output the string NULL.
Input:
Your program should read lines of text from standard input. Each line contains a sentence.
Output:
For each line of input, print to standard output all the letters it is missing, in lowercase, sorted in alphabetical order. If there are no missing letters, print the string NULL.
Test 1
Test InputDownload Test 1 Input
A quick brown fox jumps over the lazy dog
Expected OutputDownload Test 1 Input
NULL
Test 2
Test InputDownload Test 2 Input
A slow yellow fox crawls under the proactive dog
Expected OutputDownload Test 2 Input
bjkmqz
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started