Answer:
The program in Pascal is as follows:
Program Perimeter;
Uses Crt;
Var
Length : Real;
Width : Real;
Area : Real;
Perim : Real;
Begin
Clrscr;
Write('Area: ');
Readln(Area);
Write('Length : ');
Readln(Length);
Width := Area/Length;
Perim := 2 * (Length + Width);
Write('Perimeter: ' ,Perim:5:2,'.');
End.
Explanation:
This declares all variables as real
<em>Var
</em>
<em> Length : Real;
</em>
<em> Width : Real;
</em>
<em> Area : Real;
</em>
<em> Perim : Real;</em>
The program execution begins here<em>
</em>
Begin
This clears the screen
Clrscr;
This prompts the user for Area
Write('Area: ');
This gets input for Area
Readln(Area);
This prompts the user for Length
Write('Length : ');
This gets input for Length
Readln(Length);
This calculates the width
Width := Area/Length;
This calculates the perimeter
Perim := 2 * (Length + Width);
This prints the calculated perimeter
Write('Perimeter: ' ,Perim:5:2,'.');
This ends the program
End.
Answer:
True
Explanation:
The statement is true. Packet switching is a method that groups the data and transmit it over the digital network. It is basis for communication in the computer. When the two host decides to communicate the network creates a control function and data is transmitted. Addressing is an added and is not mandatory for the operations of the internet as packet switching.
Answer:
These individuals are called "netizens" or "nethead"
Answer:
#include <iostream>
using namespace std;
int main()
{
int mt, day, yr, magic;
cout << "Enter a month(numeric form)"<< endl;
cin >> mt;
cout << "please enter a day"<<endl;
cin >> day;
cout << "please enter a year"<< endl;
cin >> yr;
// Input Validation
if (mt<1 || mt>12){
cout<<"Invalid Month";
}
else if (day<1||day>31){
cout<<"Invalid Day";
}
else if (yr>99||yr<0){
cout<<"Invalid Year";
}
else{
// Calculates magic
magic = (mt * day);
if (magic == yr)
{
cout << "it is a magic year"<<endl;;
}
else
cout << "It is not a magic year" << endl;
}
return 0;
}
Explanation:
Using C++ we request the user to enter values for Month, day and year (two digits). We carry out input validation to ensure the user enters a valid month, day and year. Using if/elseif/if statements we ensure the conditions given in the question.
Answer:
Communication - Speed / time – money can be saved because it's much quicker to move information around. ...
Globalization - Video conferencing saves money on flights and accommodation. ...
Cost effectiveness - It feels free to send an email (although it isn't); it's without doubt cheaper than phone calls.
Explanation: