+1 (229) 255-3712
glass
pen
clip
papers
heaphones

  

Write a C program for a Mililiters to US Fluid Ounces conversion to run on ocelot. (1 Mililiters = 0.0338 US Fluid Ounces using 4 decimal places.)

The source file should have your name & PantherID included in it and it should have an affirmation of originality stating something like: “I affirm that I wrote this program myself without any help from any other people or sources from the internet.”. 

It is expected that this program and the programs from this class follow programming standards learned in previous classes. There should be a program description at the top as well as descriptions of all functions used in the code.

Code should be nicely indented using a consistent style and commented appropriately.

You can choose to indent your code 2, 3 , o r 4 spaces for each level of nesting as long as you are consistent through out the code. If you modify a file, then you should make all indentation in that file match your style.

You can choose either style for your curly braces , but be consistent :

i f ( ... ) {

}

O r

i f ( ... )

{

}

Create a nicely formatted chart with the conversions of each of the following values from Mililiters to US Fluid Ounces. There is no user input, these values can be constants in the program.

  • 10
  • 18
  • 30
  • 58

Columns should be aligned with numbers right justified and rounded to 4 digits after the decimal point. You do not need to include any grid lines, those are from Excel. You should include a title line that says Convert Mililiters at the top. This is a sample of a different conversion to show you how to align columns. Note that this one has 5 digits after the decimal point. Use formatting in the printf statement to align columns properly. Do not use spaces to push data around.

Picture of the output properly aligned.