JustAnswer > Programming
Ask A Question|Register|Login|Help
JustAnswer

Programming

Ask a Programming Question, Get an Answer ASAP!

Have your own Programming question?

6 Programmers are Online Now
characters left:
Not a Programming Question?
Bookmark and Share

Question

Using top-down, stepwise refinement, create an algorithm for making toast, frying eggs,
baking a cake,or ordering pizza. How might algorithms be beneficial in your future
profession?

I did the step by step instruction of toasting bread but he wants the refinement steps.
He is looking for sequence of refinements -- the first being the broad outline.

For example, when writing code we might start with

public class X {
static void main(String args[]){
}
}

this class/program will compile and execute.

my next refinement might add:

public class X {
public void doInitialize(){
// 1. initialize variables
doInitialize();
}
static void main(String args[]){
}
}


Can you help with this.

Submitted: 183 days and 7 hours ago.
Category: Programming
Value: $9
Status: AWAITING CUSTOMER ACTION
+
Read More
Posted by Raj 183 days and 7 hours ago.

Info Request

So you need algorithms for the following:
making toast
frying eggs
baking a cake
ordering pizza

on different files or in same algorithm??

183 days and 2 hours ago.

Reply

This is what my answer is:

 

Algorithm for making toast

1. Get bread from bread pan.

2. Get butter or jelly out of refrigerator
3. Get plate out of cupboard
4. Get butter knife out of drawer
5. Plug toaster in
6. Insert bread into toaster
7. Turn toaster on
8. After toasting is completed, remove bread from toaster and place on plate
9. With butter knife, spread butter or jelly on toast


Algorithms is a formula or set of steps for solving a particular problem. Algorithms provide an organized structure to our daily lives. Algorithms can easily be followed when completing any task. If you are putting something together, if the steps are completed in algorithm, it can easily be identified and corrected, you can continue from there. This helps to organize daily task or work related projects as well as provides you with problem solving tools if an issue arise.

Posted by Raj 182 days and 17 hours ago.

Answer

Ok I am done with the algorithms

Please Click here

Please find the file attached with name "algorithm.doc" which contains 5 algorithms
main()
make_toast()
fry_eggs()
bake_cake()
order_pizza()

Answer

I have posted the Algorithm

If you are satisfied with it then Please Don't forget to press ACCEPT button for the Answer

Edited by Raj on 5/24/2009 at 10:39 PM

Picture
Expert: Raj
Pos. Feedback: 100.0 %
Accepts: 
Answered: 5/24/2009

Computer Software Engineer

BE Computers

Posted by Raj 180 days and 2 hours ago.

Info Request

Hi there
are you not satisfied with the Answer?

+
Read More

Related Programming Questions

  • To Raphael:
  • How do I write code to: If a user enters in the word program...
  • Access 2007. I have written a small Access database for a lo...
  • Hi I was wondering if you could build me a helpdesk system
  • $x = array_change_key_case(get_headers($url, 1),CASE_LOWER);
  • I need to translate the following into a C++ program and be
  • Questions:
  • Hi, could someone please respond very very quickly, I have



Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Question List | Become an Expert | Terms of Service | Security & Privacy | About Us
© 2003-2009 JustAnswer Corp.