Answer:
IN PYTHON ::
x=int(input('Enter length:'))
y=int(input('Enter width:'))
print('Area of the rectangle is', x*y,'squared units')
I hope it will be useful.
Answer:
1. A high level algorithm for cooking a cheeseburger could be:
- Heat fry pan
- Cook one side of the hamburger
- Wait
- Turn hamburger upside down
- Put cheese over hamburger
- Wait
- Cut hamburger bread in half
- Put cooked hamburger inside bread
- End (eat)
2. A detailed algorithm for cooking a cheeseburger could be:
- Place fry pan over the stove heater
- Turn on heater (max temp)
- IF fry pan not hot: wait, else continue
- Place raw hamburger on fry pan
- IF hamburger not half cooked: Wait X time then go to line 5, else continue
- Turn hamburger upside down
- Put N slices of cheese over hamburger
- IF hamburger not fully cooked: Wait X time then go to line 8, else continue
- Turn off heater
- Cut hamburger bread in half horizontally
- Put cooked hamburger on one of the bread halves.
- Put second bread half on top of hamburger
- 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.
Explanation:
1. How many computers do you want to connect or how big the network should be?
This would tell us what kind of a network need to be built. It can be LAN/MAN/WAN
2. The location where network needs to be built?
We have to check the geographic condition too before creating a network
3. What is the budget?
Based on the budget only, we can decide the wires to be used if require we can negotiate the budget so that we can create effective network
4. Will I get an additional resources to work?
This is essential to estimate the time that is required to complete the task.
5. When the project needs to be completed?
This is crucial because a business might be planned thereafter.
Answer:
Input devices: For raw data input.
Processing devices: To process raw data instructions into information.
Output devices: To disseminate data and information.
Storage devices: For data and information retention.
The standard for internal text coding system is called Unicode (Encoding, representation and handling text). Nearly every operating system uses this. The basic reason for choosing Unicode for converting binary to text is because this is compatible with almost every language in the world making it popular. Although there are other ways to do this, Unicode stays popular of all.