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.
Indentation
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.
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
FOSSwire.com
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
Compression
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
compression
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
We.cz
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
Network
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()
Installation
• 2 – write (w
• 1 execute (x)
Install from source:
– /configure
Examples:
make
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
ssh user ghost – connect to host as user
Shortcuts
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
Searching
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.
Tic)
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics