Answer:
10. Start
20. Enter Width of the room (W)
30. Enter length of the room (L)
40. LET Area = L * W
50. Output Area
60. End
Explanation:
The flowchart is attached to this answer as an attachment.
Answer:
Explanation:
a = input("what kind of pet the user has")
if a == 'cat':
print("Too bad")
elif a == 'dog':
print("Lucky you!")
Answer:
#include <iostream>
#include <string>
#include <stack>
#include <math.h>
using namespace std;
int main() {
string s;
double n=0;
int position=0;
stack<int> wholeNumbers;
cout<<"Enter a decimal number:";
cin>>s;
string::iterator counter = s.begin();
while(*counter!='.' && counter!=s.end()){
wholeNumbers.push(*counter-48);
counter++;
position=position+1;
}
for(int i=0;i<position;i++){
n=n+(wholeNumbers.top()*pow(10,i));
wholeNumbers.pop();
}
position=-1;
if(counter!=s.end()){
counter++;
}
while(counter!=s.end()){
n=n+((*counter-48)*pow(10,position));
position=position-1;
counter++;
}
cout<<n;
}
Explanation:
- Inside the while loop, push the push a number to the wholeNumbers stack by subtracting it with 48.
- Increment the counter and position variable by 1 inside the while loop.
- Count the number of digit, push each digit to top of stack and find the end of the number,
- Run a for loop up to the value of position variable and pop a value from the wholeNumbers stack.
Answer:
1. Hyperlink
2. IP address
3. Fault tolerance
4. Server
5. To do list
Explanation:
Text within a document that is linked to other information available to the reader is called HYPERLINK.
A unique location for a computer on the network is its IP ADDRESS.
The FAULT TOLERANCE is the ability of a network to cover after any type of failure.
The computer that responds to requests from the client computer is known as the SERVER.
A TO-DO LIST is an ordered list of tasks waiting to be performed.