Answer:
Change the theme colors in Word
1. Select Design > Colors.
2. Point to a color to preview how it will look in your document.
3. Select a color scheme.
Explanation:
Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
string in;//string in for taking input...
cout<<"Do you want to continue ?"<<endl;
getline(cin,in);//taking input from the user...
if(in=="y"||in=="Y"||in=="yes"||in=="OK"||in=="Why not?")//conditions..
cout<<"OK"<<endl;
else if(in=="No")
cout<<"terminating"<<endl;
else
cout<<"Bad input"<<endl;
return 0;
}
Explanation:
I have taken a string in.
Then taking input from user.
Checking the conditions using if else if ladder.
Answer:
public class TestImport{
public static void main(String[] args) {
String string1 = args[1];
String string2 = args[2];
System.out.println(string1 +" " +string2);
}
}
Explanation:
The solution here is to use string concatenation as has been used in this statement System.out.println(string1 +" " +string2);
When this code is run from the command line and passed atleast three command line arguments for index 0,1,2 respectively, the print statment will return the second string (that is index1) and the third argument(that is index2) with a space in-between the two string.
Answer:
Find the detailed code in attached file.
Explanation:
See the attached file.