# complete C code for calculating total currency

Not what you're looking for?

I have been working on this tutorial for awhile now. I will state what the output should look like.

My program will do some computation with two numbers.

The two numbers used by this program are 22 and 16.

The Sum of 22 and 16 is 61

The Difference of 22 minus 16 is 11

The Product of 22 times 16 is 900

When 22 is divided by 16 you get 1 with remainder 11

If you have 22 nickels and 16 pennies you would have $2.05

Thank you for using this program.

I have the 1st two statements figured out, and had the arithmetic figured out based on results of 22 and 16, but turns out I interpreted it wrong and results should be what's posted above when the user changes the two numbers. The tutorial says not to use scan or flush. Should a put in code stating to Please enter a number? I am a little unsure of what to do about the float. I know to use the float and to put it as %.2f, but after that unsure. Any help would be appreciated. I will attach what I have. ( I am probably making this harder than it actually is). Oh, and should compile in C.

##### Purchase this Solution

##### Solution Summary

The solution gives a complete C code for calculating total currency containing nickel and penny.

##### Purchase this Solution

##### Free BrainMass Quizzes

##### Excel Introductory Quiz

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

##### Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

##### C# variables and classes

This quiz contains questions about C# classes and variables.

##### C++ Operators

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

##### Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.