| | |
PLEASE help me with this pseudocode problem!!!!
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
I'm totally stuck on this problem for homework::
*** Write pseudocode to represent the logic of a program that allows the user to enter values that represent the radius of a Circle. The Program calculates the Diameter (by multiplying the Radius by 2) and then calculates the Circumference (by multiplying the Diameter by 3.14). The program prints both the Diameter and Circumference.***
This stuff is kinda confusing to me and my class book isn't helping me much. This is what I've come up with, but it looks wrong to me but I don't know which parts are and what I should fix or change::::
Start
input radius
compute diameter as radius times 2
print diameter
circumference = diameter times 3.14
print diameter, circumference
end
Btw, THANK YOU to all who helps me! =)
*** Write pseudocode to represent the logic of a program that allows the user to enter values that represent the radius of a Circle. The Program calculates the Diameter (by multiplying the Radius by 2) and then calculates the Circumference (by multiplying the Diameter by 3.14). The program prints both the Diameter and Circumference.***
This stuff is kinda confusing to me and my class book isn't helping me much. This is what I've come up with, but it looks wrong to me but I don't know which parts are and what I should fix or change::::
Start
input radius
compute diameter as radius times 2
print diameter
circumference = diameter times 3.14
print diameter, circumference
end
Btw, THANK YOU to all who helps me! =)
•
•
Join Date: Sep 2008
Posts: 1,580
Reputation:
Solved Threads: 200
1
#2 Oct 9th, 2009
It looks ok to me. Pseudocode doesn't really have a "standard" format (that I know of) - if an experienced programmer were writing that pseudocode, it would look a bit different - but I think you covered most of the steps, which is the important thing. A program wouldn't just "input radius" though. You need to prompt the user first, asking them to input the radius, then you need to read that value into the radius variable.
Out.
![]() |
Similar Threads
- Hey!! Need Help With A Pseudocode Problem, Help Please (C)
- Trouble with figuring out the flowchart to pseudocode problem (Computer Science)
- PseudoCode Help For Newbie (Computer Science)
Other Threads in the Computer Science Forum
- Previous Thread: Need help with Karnaugh map
- Next Thread: Structured Systems Analysis and Design
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware connect conversion csc dataanalysis dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy extensions floatingpoint foreclosure fuel gadgets geeks givemetehcodez government hardware homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone itcontracts jobs kindle laser linkbait lsmeans mainframes marketing mining msaccess nano netbeans networking news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying sql stephenfry study supercomputer supercomputing sweden technology textfield turingtest two'scompliment uk virus warehouse ww2






