0

How to compute surface area of an object?

Write a program that computes the surface area of an object. The user will choose a circle, rectangle or triangle. The program will prompt the user for the values needed (radius, 2 sides or base & height), then show the answer.

Requirements:

€ include one function to describe what the program is for (to be shown to the user when the program first runs)

€ use one function for input the shape desired (‘c’ ‘r’ or ‘t’)

€ set up one function for each type of computation (one function for area of a circle, one function for area of a rectangle and one function for area of a square)

€ include one function for output of the answer

3
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by serkan sendur
1

As much as we'd love to help you cheat (not really), piss off. We help people who are willing to put in some effort, not people looking for a quick and easy answer.

1

As much as we'd love to help you cheat (not really), piss off. We help people who are willing to put in some effort, not people looking for a quick and easy answer.

i had missed this style of yours.
Recently Kerry King - Slayer's lead guitar player, signed me his poster and we had a photo together. Since that day, i feel like i am a new person. I am inspired. And then i thought about having you sign some code snippet for me. Narue please this time prevent people from attacking my reputation points. If i can have a photo together with my favorite guitar player, why cant i have a photo with my favorite coder?? Think this way; if i have a photo with you, i will produce better code and help more people. Because of you my reputation points reset 3 times when it was above 100, this time i think i dont expect something crazy, so i hope it is going to remain intact.

Votes + Comments
I agree make sure it's a wet t-shirt photograph.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.