Purchase Solution

C program to display in words what number is entered

Not what you're looking for?

Ask Custom Question

Write C program to display in words what number is entered when a single digit is entered.

Ask the user to enter a digit between 0 and 9. Have the program print out the digit in words, for example:

Enter a digit between 0 and 9: 4
You entered the number four

Assume that the user will enter only a single digit. The user may accidentally enter a single character, and this should generate an error message.

Purchase this Solution

Solution Summary

The solution writes a C program to display in words what number is entered when a single digit is entered.

Solution Preview

See below and also the attached file.
======================
// oned.cpp : Defines the entry point for the console application.
//

#include ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.