1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Katarina [22]
3 years ago
7

1. Write a high level algorithm for cooking a cheeseburger.

Computers and Technology
1 answer:
pishuonlain [190]3 years ago
7 0

Answer:

1.  A high level algorithm for cooking a cheeseburger could be:

  1. Heat fry pan
  2. Cook one side of the hamburger
  3. Wait
  4. Turn hamburger upside down
  5. Put cheese over hamburger
  6. Wait
  7. Cut hamburger bread in half
  8. Put cooked hamburger inside bread
  9. End (eat)

2. A detailed algorithm for cooking a cheeseburger could be:

  1. Place fry pan over the stove heater
  2. Turn on heater (max temp)
  3. IF fry pan not hot: wait, else continue
  4. Place raw hamburger on fry pan
  5. IF hamburger not half cooked: Wait X time then go to line 5, else continue
  6. Turn hamburger upside down
  7. Put N slices of cheese over hamburger
  8. IF hamburger not fully cooked: Wait X time then go to line 8, else continue
  9. Turn off heater
  10. Cut hamburger bread in half horizontally
  11. Put cooked hamburger on one of the bread halves.
  12. Put second bread half on top of hamburger
  13. End (eat)

Explanation:

An algorithm is simply a list of steps to perform a defined action.

On 1, we described the most relevant steps to cook a simple cheeseburger.

Then on point 2, the same steps were taken and expanded with more detailed steps and conditions required to continue executing the following steps.

In computational terms, we used pseudo-code for the algorithm, since this is a list of actions not specific to any programming language.

Also we can say this is a structured programming example due to the sequential nature of the cooking process.

You might be interested in
PLEASE HELP ME WITH MY UNIT TEST!!!!!!!!!!!!!! I'M STRUGGLING AND I AM ESPECIALLY STUCK ON THIS ONE!!!!!!!!!!!!!!!!!!!!!! FOR BR
Nikitich [7]

A company’s technology policy applies only to the Internet usage of employees

I’m not sure if it right so sorry if it wrong!

7 0
2 years ago
What observations can you make about any of these data structures ? Go into as much as you can. Try proposing your own data stru
STALIN [3.7K]

Answer:Here Is An Example Data Structure We Can Struct Coordinate Int X; Intys Struct Square Coordinate Centers Coordinate Box[41; Here Is An Alternative Data Structure We Can Use To Describe Squares Struct Coordinate Int X; Int Y 2) Consider Our Drawing Example From Lecture. In The Below All We Can Draw Are Circles And Squares. Here Is An Example Data Structure

Explanation:

6 0
3 years ago
State Newton’s second law of motion. Show that Newton’s first and third laws of motion are contained in the second law​
mixer [17]

Answer:

Every physics student learns Newton's three laws of motion. It's tempting to consider that these are three separate and independent laws. That's not so. Both the first and third laws may be mathematically derived from the second law, as we will show.

The fact that the first law may be derived from the second has long been known. The second law,Fnet=ma, tells us that the net (vector sum) of all forces acting on a body is equal to the product of the body's mass and its vector acceleration. When the acceleration is zero, the net force must be zero. This is exactly the content of the first law.

Let's first consider the case of two bodies in contact. Each exerts a force on the other at the interface, or point of contact, where the bodies touch. If that point or interface is treated as a "body" of mass zero, then Newton's second law tells us thatFnet=0a, soFnet= 0. So the net force on a body of zero mass is always zero, whatever forces act upon it. Therefore if only two forces act on a body, they must add to zero, and therefore must be equal size and oppositely directed. This establishes Newton's third law.

Explanation:

Hope this helps

6 0
3 years ago
Insurance can help you:
Blababa [14]
No it can not .............
3 0
4 years ago
110101111.11011 to decimal (base 10)
Leokris [45]
The part 110101111 is 1+2+4+8+32+128+256 = <span>431

The part after the dot is 1/2 + 1/4 + 1/16 + 1/32 = </span>0.84375

Together that's 431.84375
4 0
4 years ago
Other questions:
  • The IT director instructed the systems administrator to build a server to support the accounting department's file growth. The I
    7·1 answer
  • What are two methods for playing a slide show from the first slide?
    9·2 answers
  • Why do generated backup scripts usually include backticks around names such as database names and column names?
    5·1 answer
  • An administrator has noticed that GPO containing new update settings has not yet applied to one of the computers on the network.
    5·1 answer
  • To draw a clustered cylinder chart, first select the data to be charted and then click the column button (insert tab | charts gr
    13·1 answer
  • The refresh or reload button is in the browser toolbar and usually looks like a pair of curved arrows. Clicking it will ________
    14·2 answers
  • Professor Gig A. Byte needs to store text made up of the characters A with frequency 6, B with frequency 2, C with frequency 3,
    10·1 answer
  • What facilitates the automation and management of business processes and controls the movement of work through the business proc
    9·1 answer
  • I'm having trouble with an assignment of mine. I'm making a text based adventure game for extra credit in my class and I'm stuck
    12·1 answer
  • A museum is evaluating historical documents for authenticity, reviewing their physical condition, and categorizing them by subje
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!