Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do you write this in c language? In the language of an alien race, all words take the form of Blurbs. A Blurb is

How do you write this in c language?
In the language of an alien race, all words take the form of Blurbs. A Blurb is a Whoozit
followed by between zero or more Whatzits. A Whoozit is the character 'x' followed by
between one or more 'y's. A Whatzit is a 'q' followed by either a 'z' or a 'd', followed by a
Whoozit.
You need to design and implement two programs, one in a non-declarative language (C
or C++) and the other in a declarative language (Scheme or Prolog). Both the programs
should have the following features:
1.(15 points) The program should ask the user to Enter an alien word:, read the input
as a string, and check whether or not it is a valid word (Blurb). If it is valid, it prints
"The word is fine.", otherwise it prints "The word is a mess!".
2.(5 points) The program should loop and ask the user for new input until they enter a
valid blurb.

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

Step: 3

blur-text-image

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

4. Does cultural aptitude impact ones emotional intelligence?

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago