In portrait the height is taller than its wide and in landscape the height is smaller than wide
so its the wider and taller
Answer:
#include <bits/stdc++.h>
using namespace std;
void funct(){
string name;
cout<<"enter the string: ";
cin>>name;
reverse(name.begin(), name.end());
cout<<"The string is : "<<name<<endl;
}
int main()
{
funct();
return 0;
}
Explanation:
create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.
The string enter by user is store in the variable using cin instruction.
after that, we use a inbuilt function reverse() which takes two argument.
firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.
name.begin() it is a function which return the pointer of first character of string.
name.end() it is a function which return the pointer of last character of the string.
finally, print the reverse string.
for calling the function, we have to create the main function and then call the function.
Answer:
Commands: commands are also known as "programs" and the program is a set of rules that performs a specific task which is executed by a computer.
Unix is an operating system. that supports multi-tasking and multi-user functionality. Unix is most widely used in all forms of computing systems such as desktop, laptop, and servers. It provides a Graphical user interface similar to windows.
The Unix operating system there are various commands. The list of five Unix commands can be given as:
1) cal
2) date
3) banner
4) who
5) whoami
1)cal:
The cal command stands for calender. It displays the date.
Syntax:
$ cal
or
$ cal [[month] year]
Example:
$ cal 10 2019
2)date:
The date command stands for date and time. It displays the system date and time.
Syntax:
$date
or
$ date[+format]
Example:
$ date +%d/%m/%y
3) banner
The banner command stands for display the text in to a large size.
Syntax:
$banner message
Example:
$banner Unix
4) who
The who command stands for display the list of users currently logged in.
Syntax:
$who
or
$who [option] … [file][arg1]
Example:
$who
5) whoami
The whoami command stands for display the user id of the currently logged-in user.
Syntax:
$whoami
Example:
$whoami
Explanation:
1)cal command display the current month and year.
2)date command display system date and time.
3)banner command display text in large size.
4)who command display the user name who currently login.
5)whoami command display user id.
Answer: Any person or people asking about someone being a hardware or software person displays that they are questioning about the computer knowledge of the person and his/her interest.
The interest can be regarding software tools for programming, designing , etc or hardware device like troubleshooting, assembling the computer parts ,etc.
The person persisting good knowledge about software programming language and software is diverted towards software side .The person who likes to deal with hardware parts of the computer system is hardware-oriented person.