General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 30th, 2011, 02:03 PM
compstudent compstudent is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 1 compstudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 56 sec
Reputation Power: 0
Needing Pseudocode Help

Assignment: Create a pseudocode that reads in temperature input.

It should print “Freezing cold!” if the temperature is 32 degrees or below.

If the temperature is above 32 degrees and below 58 degrees it should print “cool”.

If the temperature is equal to or above 58, but below or equal to 75 degrees, it should print “Warm”.

If the temperature is above 75 degrees it should print “Hot”.

Be sure to use the proper decision structures.

Also be sure that the pseudocode matches the functionality of the flowchart above.





---------------My Outcome ------------------

print “Enter temperature”
input temperature
if temperature is less than or equal to 32
print “Freezing cold!”
else
print “OK”
else if temperature is greater than 32 or less than 58
print “cool”
else
print “OK”
else if temperature is greater than or equal to 58
print “Warm”
else if temperature is less than or equal to 75
print “Warm”
else
print “OK”
else if temperature is greater than 75
print “Hot”
else
print “OK”



_____________
I need some help Made a bad grade on assignment and need to understand how to do this pseudocode right.

Reply With Quote
  #2  
Old April 2nd, 2011, 05:46 AM
mecanicu mecanicu is offline
anonymous
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 244 mecanicu User rank is Private First Class (20 - 50 Reputation Level)mecanicu User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 12 h 20 m 46 sec
Reputation Power: 9
Code:
---------------The Outcome ------------------

print “Enter temperature”
input temperature
if temperature < 32
print “Freezing cold!”
else if temperature >= 32 and temperature < 58
print “cool”
else if temperature >= 58 and temperature <= 75
print “Warm”
else 
print “Hot”

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Needing Pseudocode Help


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap