Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago