Question: C Programming Assignment 6 Due Wednesday, May 30, 2018 a 4:00 p.m. For the program assigned below, submit the following Hard copy of the source
C Programming Assignment 6 Due Wednesday, May 30, 2018 a 4:00 p.m. For the program assigned below, submit the following Hard copy of the source code 2. Hard copy of sample executions (black or, preferably, white screen). 3. Copy saved as an Word document to C Assignment 6 located in Canvas under Assignments The program should compile without error and run gracefully Observe the following guidelines: Begin each program with a comment section which contains the following: Program name (i.e., "Assignment 6" Author's name Due date (Wednesday, May 30, 2018) A description of what the program does. In general, use lower case letters for variable names. Variable names should be mnemonic (i.e., somewhat intuitive). Separate words in a variable name with an underscore or begin the second word with an uppercase letter Indent 2-4 spaces within main. The editor should take care of proper indenting. Place no more than one C statement per line Do not type more than 80 characters per line. Since we have studied the math library, use the pow) function to square or cube a value Program: 1. Wri a. The main function calls function #1, named introduction. This function prints a program description to the user b. The main function gets an input of a radius from the user. The radius is of type double to allow decimal points. Assume units of cm. c-The main function then calls function #2, named sphere-volume. This function has as its input a radius (in cm of type double) and outputs the volume of a sphere (in cm of type double) to 2 decimal places. The function calls "pow" in doing the calculation. If you have to search for the equation for the volume of a sphere, be sure to put the reference in a comment in the code te a C program that does the following: Run the following radius to test the program: radius-5.0 For the submitted screen capture, run the program with an input radius of 5.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
