Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the program assigned below, submit the following: . Hard copy of the source code. 2. Hard copy of sample executions (black or, preferably white

image text in transcribed
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 whiclh contains the following: Program namei.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 linc. Since we have studied the math library, use the pow function to square or cube a value. Program 1. Write a C program that does the following: 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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago