Answer:
Convert the layer into a smart object.
Explanation:
Answer:
i think its the third one, i hope this helps
Explanation:
You can highlight all of the text you want to center. The next step is to go to the center function in the paragraph tab under the home tab. Or you could just use the keys CTRL and E to center the words highlighted.
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// function
string is_perfect(int n)
{
// string variables
string str;
// if number is negative
if (n < 0)
{
str="invalid input.";
}
// if number is positive
else
{
int a=sqrt(n);
// if number is perfect square
if((a*a)==n)
{
str="True";
}
// if number is not perfect square
else
{
str="False";
}
}
// return the string
return str;
}
// main function
int main()
{
// variables
int n;
cout<<"enter the number:";
// read the value of n
cin>>n;
// call the function
string value=is_perfect(n);
// print the result
cout<<value<<endl;
return 0;
}
Explanation:
Read a number from user and assign it to variable "n".Then call the function is_perfect() with parameter n.First check whether number is negative or not. If number is negative then return a string "invalid input".If number is positive and perfect square then return a string "True" else return a string "False".
Output:
enter the number:-3
invalid input.
enter the number:5
False
enter the number:16
True
Answer:
public static void vowelsConsonantCount(String str){
String text = str.toLowerCase();
String word = text.replaceAll("[^a-zA-Z0-9]", "");
int lenWord = word.length();
int count = 0;
for(int i=0; i<lenWord; i++){
if(word.charAt(i)=='a'||word.charAt(i)=='e'||word.charAt(i)=='i'
||word.charAt(i)=='o'||word.charAt(i)=='u'){
count++;
}
}
int consonants = lenWord-count;
System.out.println("the total vowels are "+count);
System.out.println("The total consonants are: "+consonants);
}
Explanation:
- In Java programming language
- The method uses java's replaceAll() method to remove all spaces and special characters and punctuations.
- It converts the string entered into all lower cases using toLowerCase() method
- Calculates the length of the resulting string using the length() method
- Using if statement the total vowels are counted, subtracting the total vowels from the size of the string gives the total consonants
- These two values are outputed.