Question
This is an example of a function where you do not pass any parameters to the function and nothing is returned to the calling function.
This is an example of a function where you do not pass any parameters to the function and nothing is returned to the calling function. (the function returns void) Write a C function that will : 1. in the function, ask the user for a number of gallons 2. convert a given number of gallons into quarts, liters, cups, and fluid ounce. 3. print out the answer in the function 4. the output should look like: ??? gallons is: ??? quarts ??? liters ??? cups ??? fluid ounces function header should be void convertGallons() in main 1. call your function 2. the output should look like: ??? gallons is: ??? quarts ??? liters ??? cups ??? fluid ounces Use the output (cout) manipulators to format the output correctly [setw(?), fixed, right, left, etc]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started