Program for A Mililiters to US Fluid Ounces Conversion Lab Report


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.
Curly Braces
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.


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.

2 attachmentsSlide 1 of 2attachment_1attachment_1attachment_2attachment_2

Unformatted Attachment Preview

28-105.0024 Notice of Filing.
The agency shall file a notice of the Petition for Declaratory Statement in the next available Florida Administrative Register
including the following information:
(1) The name of the agency with which the Petition for Declaratory Statement is filed.
(2) The name of the Petitioner.
(3) The date the Petition for Declaratory Statement was received.
(4) The statutory provision(s), rule(s) or order(s) on which the declaratory statement is sought.
(5) The contact name, address, e-mail address, and phone number where a copy of the petition may be obtained.
(6) The applicable time limit for filing motions to intervene or petitions for administrative hearing by persons whose substantial
interests may be affected.
Rulemaking Authority 14.202, 120.54(5)(b)6. FS. Law Implemented 120.54(5)(b)6. FS. History–New 1-15-07, Amended 2-5-13.
Unix/Linux Command Reference
File Commands
System Info
Ls – directory listing
date – show the current date and time
Ls .al – formatted listing with hidden files cal – show the month’s calendar
cd dir. change directory to dir
uptine – Show current uptime
cd-change to home
– display who is online
pud – show current directory
who ani – who you are logged in a
mkdir dir- create a directory dir
finger user-display information about user
m file-delete file
unane -a -show kernel information
mur dir-delete directory dir
cat /proc/cpu into – cpu infomation
m.f file-force remove file
cat /proc/men into – memory information
m -rf dir – force remove directory dir* man command – show the manual for command
cp file file2-copy fel to fez
at – show disk usage
por diri dir2 – copy dirito dir2; create dir2 if it du – show directory space usage
doesn’t exist
free-show memory and swap usage
– file file-rename or move flel to fle2 whereis app – show possible locations of app
ple2 is an aisting directory moves filed into which app-show which app will be run by default
directory file2
in s file link-create symbolic link link to file
touch file – create or update file
tar ct file.tar files – Create a tar named
cat > file-places standard input into file
e.tar containing files
more file-output the contents of file
tar xt file.tar-extract the files from fletar
head file-output the first 10 lines offe tar czt file.tar.gz files – create a tar with
tait file-output the last 10 lines of We
Gzip compression
tail -f file-output the contents of file as it
tar xzf file.tar.gz – extract a tar using Gzip
grows, starting with the last 10 lines
tar cjt file.tar.bz2 – create a tar with Bzip2
Process Management
tar xjt file.tar. bz2 – extract a tar using Bzip2
Ps – display your currently active processes gzip file-compresses file and renames it to
top-display all running processes
kill pid kall process spid
gzip .d file.gz – decompresses file.gz back to
killall proc – kill all processes named proc*
bg – lists stopped or background jobs; resume a
stopped job in the background
to-brings the most recent job to foreground
ping host – ping host and output results
to brings job n to the foreground
who is domain – get whok intomation for domain
File Permissions
dig domain-get DNS information for domain
chmod octal file-change the permissions of file
dig x host-reverse lookup host
to octal, which can be found separately for user
wget file download We
group, and work
by adding:
wget .c file continue a stopped download
• 4 – read()
• 2 – write (w
• 1 execute (x)
Install from source:
– /configure
chmod 777 – read, write, execute for all
make install
chmod 755 -rwx for owner, rx for group and world
For more options, see nan chmod.
dpkg i pkg.deb – install a package (Debian)
rpm -Uvh pkg.rpe-install a package (RPM)
ssh user ghost – connect to host as user
ssh up port user ghost – connect to host on port
Ctrl+Chalts the current command
port as user
Ctrl+Z – stops the current command, resume with
ssh-copy-id user ghost – add your key to host for
to in the foreground or bg in the background
user to enable a keyed or passwordless login
Ctrl+D – log out of current session, similar to exit
Ctrl+M – erases one word in the current line
Ctrl+U-erases the whole line
grep pattern files – search for pattern in files !!. repeats the last command
grep -r pattern dir – search recursively for exit – log out of current session
pattern indir
comand | grep pattern – search for pattern in the
output of command
Locate file-find all instances of fille
use with extreme caution.

Purchase answer to see full

Systems Programming

Command line

decimal point

User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.

Reviews, comments, and love from our customers and community:

Article Writing

Keep doing what you do, I am really impressed by the work done.



PowerPoint Presentation

I am speechless…WoW! Thank you so much!

Stacy V.

Part-time student

Dissertation & Thesis

This was a very well-written paper. Great work fast.

M.H.H. Tony


Annotated Bibliography

I love working with this company. You always go above and beyond and exceed my expectations every time.

Francisca N.


Book Report / Review

I received my order wayyyyyyy sooner than I expected. Couldn’t ask for more.

Mary J.


Essay (Any Type)

On time, perfect paper

Prof. Kate (Ph.D)


Case Study

Awesome! Great papers, and early!

Kaylin Green


Proofreading & Editing

Thank you Dr. Rebecca for editing my essays! She completed my task literally in 3 hours. For sure will work with her again, she is great and follows all instructions

Rebecca L.


Critical Thinking / Review

Extremely thorough summary, understanding and examples found for social science readings, with edits made as needed and on time. Transparent

Arnold W.




Joshua W.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>