Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing

This Question is Closed

eSpeXBest ResponseYou've already chosen the best response.3
Pseudo code is just a tool to help you get the flow and thought of the program on paper. So if you know that you want something to happen so long as one condition is true you could write: /* pseudo code */ while this is true do something if this happens do this or else this /* end pseudo */ This way you can organize your thoughts before you actually sit down and start writing code.
 2 years ago

lcombsBest ResponseYou've already chosen the best response.0
I have to write a Pseudocode based on turning Fahrenheit into Celsius.. With a formula of C=C=(f32)*5/9. and Fahrenheit= (C*5/9)+32. Then a table with Fahrenheit Celsisus 32 0 60 15.56 90 32.2 12 11 How would I start writing this code.
 2 years ago

eSpeXBest ResponseYou've already chosen the best response.3
Assuming there were no specifics given during the outline of this assignment, I would do something along the lines of: Create variables and assign value; An array for each, assign to F for i equals zero, while i less than number of values, increment i; C[i] = f[i]  32 * 5/9 Generate table display output
 2 years ago

eSpeXBest ResponseYou've already chosen the best response.3
As you examine your code and evaluate each step you have to do you will find more details to add. Think of it as explaining to the computer in "human words" what steps to take.
 2 years ago

lcombsBest ResponseYou've already chosen the best response.0
I am just trying to figure out how to start it.. Start Input tempToday If = F Then C=(f32)*5/9?? Is that looking right?
 2 years ago

eSpeXBest ResponseYou've already chosen the best response.3
That is a good start but you will probably want to add a little more detail the further you progress, like your input section could be: /* start */ Display prompt for user "Enter temp for today" Get input from user temp = input display prompt for conversion "Would you like to convert that to F or C?" get input from user, convert = input etc. etc.
 2 years ago

paul99santosBest ResponseYou've already chosen the best response.0
http://en.wikipedia.org/wiki/Pseudocode
 2 years ago

eSpeXBest ResponseYou've already chosen the best response.3
Yes, that url has some good examples of pseudo code.
 2 years ago

paul99santosBest ResponseYou've already chosen the best response.0
This question is a joke.
 2 years ago

eSpeXBest ResponseYou've already chosen the best response.3
If you look at the wiki url you can see how you will eventually get to the point of programming in "human words" rather than the programming language you are using.
 2 years ago

lcombsBest ResponseYou've already chosen the best response.0
Sadly I have to use the programming language..
 2 years ago

eSpeXBest ResponseYou've already chosen the best response.3
Writing the problem in code is much easier than pseudo code, IMHO.
 2 years ago

lcombsBest ResponseYou've already chosen the best response.0
I agree but this teacher wants it in pseudocode.. And it is a complicated thing for me to understand..
 2 years ago

paul99santosBest ResponseYou've already chosen the best response.0
Pseudocode is just syntax (e.g) program bizzbuzz do i = 1 to 100 set print_number to true if i is divisible by 3 print "Bizz" set print_number to false if i is divisible by 5 print "Buzz" set print_number to false if print_number, print i print a newline end do  you have to make a F` to C` for that.
 2 years ago

eSpeXBest ResponseYou've already chosen the best response.3
Well you are on the right track, I can say that my professors did not require the closeness to programming that the example here is, and it is very likely that yours will not be that strict either. The main concept is most likely to get you to think about your code from another perspective and help you create a tangible link between "everyday" and programming. Keep going the direction you started I think it will become more clear as you progress. :)
 2 years ago

farmdawgnationBest ResponseYou've already chosen the best response.0
@paul99santos Comments like "this question is a joke" aren't exactly in line with the spirit of OpenStudy. To quote the old adage, "If you have nothing good to say, say nothing at all."
 2 years ago

nczempinBest ResponseYou've already chosen the best response.0
I'm getting confused. You're saying "Sadly I have to use the programming language.." and at the same time "this teacher wants it in pseudocode." It can't be both. If it has to be pseudocode that looks vaguely like your programming language (which one?), the task is eaasier than actually writing it in the language, because you don't have to make sure it compiles and runs correctly, just that someone can grasp the method you're using to solve the program (and presumably check that you're on the right track, and _then_ you can convert that pseudocode into real code). Sorry about the runon sentence. IMHO atually writing down the code is _not_ easier than writing pseudocode, or drawing diagrams, or any combination of the two, for most nontrivial problems (of which converting a unit is not an example; my pseudocode would just say "convert to celsius")
 2 years ago

farmdawgnationBest ResponseYou've already chosen the best response.0
@nczempin It's possible her teacher has a specific pseudocode syntax she's supposed to use. I've dealt with a few of those before.
 2 years ago
See more questions >>>
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.