Answer:
do 15% on a calculator then divide by 9
Explanation:
Answer:
import java.util.ArrayList;
import java.util.List;
public class Vowels {
public static void main(String[] args) {
String word = "I am David from Nigeria";
System.out.println(which_vowels_present(word));
}
public static List which_vowels_present(String enteredWord){
List<Character>list = new ArrayList<>();
String word = enteredWord.toLowerCase();
for (int i =0; i<word.length(); i++){
if (word.charAt(i) == 'a' || word.charAt(i) == 'e' || word.charAt(i) == 'i'
|| word.charAt(i) == 'o' || word.charAt(i) == 'u') {
list.add(word.charAt(i));
}
}
return list;
}
}
Explanation:
- Using Java programming Language
- Import java.util.ArrayList; and java.util.List
- Create the method which_vowels_present which accepts a string parameter
- Within the method create a list object
- Use a for loop to iterate the string. within the for loop use an if statement to check individual characters of the string if any is a vowel, add it to the list
- return the list
- In the main method, create a test string, call the method and pass the string as parameter
Y=In(x)-5
hopefully it’s right :)
Explanation:
There are various basic computer programming languages and one of them is the C language, the base of many computer lanuages.
The code of finding factorial is written below;
CODE
#include<stdio.h>
int main (void)
{
int i,
int factorial =1,
int input;
printf("Enter a number for finding its factorial: ");
scanf("%d",&input);
if (input == 0)
factorial = 0
eles
for ( i =1; I < = input ;i++)
factorial = factorial*i;
printf("Factorial of given %d is: %d",input,factorial);
return 0;
}