| | |
c++ computer surface area of an object
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2009
Posts: 18
Reputation:
Solved Threads: 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
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
•
•
Join Date: Jan 2008
Posts: 2,052
Reputation:
Solved Threads: 118
•
•
•
•
As much as we'd love to help you cheat (not really), **** off. We help people who are willing to put in some effort, not people looking for a quick and easy answer.
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.
Due to lack of freedom of speech, i no longer post on this website.
![]() |
Similar Threads
- Starting Python (Python)
- Need help on school exercise!!!pls come in and try to solve for me ,thank (Python)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Prophet Yahweh (Geeks' Lounge)
- what is object oriented???? (IT Professionals' Lounge)
- why won't my virtual area function work? (C++)
- Cylinder surface, area, height etc etc (Java)
- Computer freezes when i try to install windows XP (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Bogged down
- Next Thread: I have this error Debug assertion failed Expression: (x> = 0) & & (x <m_nWidth)
| Thread Tools | Search this Thread |
api array arrays based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






