Purchase Solution

Writing a Narrative Program: Example Currency Conversion

Not what you're looking for?

Ask Custom Question

Using the C compiler, write a C program that contains your narrative from broken down into one line sentences, that have been commented out.

Write English narrative that converts currency. The narrative should display a title, "Currency Conversion," and then write the names of currencies and exchange rates. Allow the user to select a country and exchange rate from a menu.
Allow the user to designate the amount of dollars to exchange. The exchanged amounts are displayed. Repeat this process until the users desires to stop.
You may use any nouns that you want, but restrict your verbs to the following: input, display, add, multiply, and repeat. . Be sure and remember to keep Input information/Processing/Output information separate. Do not mix them. Your submission should read like an English paragraph, and NOT like a programming language.

Purchase this Solution

Solution Summary

Solution clearly explains the concept of writing a narrative program for an example Currency Conversion.

Solution Preview

Please see attached file.

The code is pasted below for convenience:

====== currencyconv.c Start =======

/*Include Standard Input and output directory*/
#include<stdio.h>

/*Start of the main the function*/
main(){

/* Declare variables to input amount and store conversion value from user*/
float amount,conversion;
unsigned int choice;
/*Clear the screen */
clrscr();

/* Print the heading */
printf("Currency ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

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.

C# variables and classes

This quiz contains questions about C# classes and variables.

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.