C Programming

I am new to c programming and I cannot understand the teacher for the life of me. It becomes very difficult to learn this stuff even just by reading. I'd greatly appreciate any help...

The program asks for the user to input the radius and height of a right
cylinder. It then calculates surface area and volume of this cylinder
and prints the out-put on the screen in the FORMAT GIVEN BELOW. The
main program calls following three functions to accomplish the above job.
calc_area (double rad, double height)
calc_volume (double rad, double height)
and
print_info (void)

II. Helpful Math Hints:
Surface area = 2*PI*r*h + PI*r*r; and volume = PI * r*r*h

III. Helpful Programming Hints:

1. Preprocessor define PI= 3.14159
2. Declare PROTOTYPE FUNCTIONS shown above with proper return
parameters.
3. Define the three programs mentioned above, in region out-side your
main program.
3. Declare variables r, d, h, V, A as “double”.
4. Ask user to enter r in centimeters, read the value and assign to r;
ask to enter h in cms, read the value (scan in lf format) and assign
to h.
5. Call the three programs, assigning their return values
appropriately.
6. Using the results print the out-put.

IV: Output to the screen in the format:
__________________________________________________ ________________________

Enter diameter in centimeters: 3
Enter height in centimeters: 5

A right circular cylinder with a diameter = 3.00 cm and a height = 5.00
cm
will have a volume and surface area

VOLUME SURFACE AREA
------------------------------------------------------

35.3429 cu_cm 61.2610 sq_cm
Press any key to continue

Where do I even begin?!?

  1. 👍
  2. 👎
  3. 👁

Respond to this Question

First Name

Your Response

Similar Questions

  1. Language. Mrs Sue pls check

    Which sentence connects an element of a story to a theme? A. The symbol of the butterfly helps readers understand the importance of change in a person's life. B. The story takes place during the early 1900s and helps readers

  2. Computer Literary

    Which of the following is Not an example of debugging A)Looking for errors in programming code B)Fixing misspelled commands in programming code C)Solving faulty logic in programming code D)Upgrading to improve the programming code

  3. Childhood education

    What can a teacher do to reinforce the primary relationship between the parent and the child and to communicate that the teacher does not desire to take the parent's place in the child's life

  4. early childhood educastion

    what can a teacher do to reinforce the primary relationship between the parent and child and communicate that the teacher does not desire to take the parent's place in the child's life?

  1. Chemistry

    The half-life of iodine -125 is 60 days. What fraction of iodine-125 would be left after 180 days? my teacher didn't teach us this and expects us to know it and I don't understand!!! could you explain it please!?

  2. Algebra

    I would really try and answer but I don't know how to start or even understand the problem. I would appreciate it if you help A music teacher runs a guitar class for 20 weeks. The class meets each week in a rented music studio.

  3. cultural diversity

    Which is NOT a strategy that can be implemented by a teacher to understand a family’s goals for his or her child’s linguistic development? A. The teacher can create a parent survey. B. The teacher can assume each family has

  4. IT/210

    Assignment: Chapter 5 Programming Problems · Complete Programming Problems 1 and 2. · Provide the analysis, pseudocode and test cases using the template submitted in Week 6 only (no diagrams are required). Chapter 5 Programming

  1. Math/Radioactive Dating

    My teacher said that if the ratio of mass (in a rock) for 40K and 40Ar was 1:3 then the age of the rock would be 2.5 billion years. I don't understand how he concluded that to be the age. The only thing he knew was that the

  2. Overjustification Effect

    A fifth grader has just learned how to do some simple programming on her dad's computer. Now, her class at school is learning programming and she gets gold stars for doing well. If the overjustification effect occurs, what is

  3. English

    Help:Please change show me anthing that I need to do, by placing the correct form at the it the bottom of the essay. Topic: What is your biggest regret in life? My Biggest Regret Everyone has had some regrets about something in

  4. English

    Question : Matthew Antony, Grant’s former teacher tells him, “What do you know about life?” He tells him, “ You have to go away to know life.” – What does this mean to you? I need some pointers to help me answer my

You can view more similar questions or ask a new question.