Answer:
Explanation:
El siguiente codigo esta escrito en Java. Le pide al usario que marque la edad. Despues el programa analiza la edad y imprime a la pantalla si el usario es mayor de edad o menor de edad. El programa fue probado y el output se puede ver en la imagen abajo.
import java.util.Scanner;
class Brainly
{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Cual es tu edad?");
int age = in.nextInt();
if (age > 18) {
System.out.println("Mayor de Edad");
} else {
System.out.println("Menor de Edad");
}
}
}
Answer:
The answer is "predictive".
Explanation:
The statement lacks some details, which can be answered by the choice of the question:
A. Presumptive
.
B. suggestive
.
C. interpretive.
D. predictive.
Predictive text is considered to be auto-correct text as well. It is an input technique, which allows people to type words onto a smartphone throughout the text field. It's focused on both the significance of the words and letters in the message, and certain choices were wrong, which can be defined as follows:
- Option B and Option D both were wrong because it provides the synonyms of the words.
- In option C It is wrong because it is a text version.
Answer:
You can begin your report, and write about CNN, BBC, or any other liberal news network.
Explanation:
Answer:
#include <iostream>
#include<time.h>
using namespace std;
class Student
{
public :
int grades[20]; //array of grades
double average(int arr[],int n) //method to calculate average of array of grades passed
{
int sum=0;
for(int i=0;i<n;i++) //loop to calculate sum of all grades
sum=sum+arr[i];
return sum/n; //average is sum of items/number of items
}
int get_grade() //method to return grade number(1-14)
{
srand(time(NULL)); //method to generate different random number each time
int num = rand() % 14 + 1; //method to generate random number b/w 1-14
return num;
}
};
int main()
{
Student s;
int grade[]={5,3,9,8,10};
cout<<"Average is : "<<s.average(grade,5);
return 0;
}
OUTPUT :
Average is : 7
Explanation:
A class Student is created in which a method named average is there to calculate average of the grades passed and a method to generate a grade number b/w 1-14.
Answer:
option I
Explanation:
If you misspell a word in your Java program it may be true that the program will not compile