Answer:
Explanation:
import java.util.Scanner;
public class KboatTriangleAngle
{
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
System.out.print("Enter first angle: ");
int a1 = in.nextInt();
System.out.print("Enter second angle: ");
int a2 = in.nextInt();
System.out.print("Enter third angle: ");
int a3 = in.nextInt();
int angleSum = a1 + a2 + a3;
if (angleSum == 180 && a1 > 0 && a2 > 0 && a3 > 0) {
if (a1 < 90 && a2 < 90 && a3 < 90) {
System.out.println("Acute-angled Triangle");
}
else if (a1 == 90 || a2 == 90 || a3 == 90) {
System.out.println("Right-angled Triangle");
}
else {
System.out.println("Obtuse-angled Triangle");
}
}
else {
System.out.println("Triangle not possible");
}
}
}
OUTPUT:
The answer is 326.
Range is found by subtracting the smallest number in the data set from the largest number.
Highest number: 419
Lowest number: 93
419-93
=326
(Next time make sure to post this under the Mathematics section.)
Answer:
1. Load the data as a CSV file.
2. Use Oracle Database connector.
Explanation:
In this scenario, an Einstein Analytics team wants to create a dashboard that displays values from an external, on-premise Oracle Database. The two (2) options to load the data from the Oracle Database into Einstein Analytics are;
1. Load the data as a CSV file: the data from the external, on-premise Oracle database should be loaded as a comma separated value (CSV) file because these data are normally a text source file. To load the data as a CSV file, the Einstein analytics team can either use the SQL developer, SQL loader, external table or SQL command-line tool and create a database table.
2. Use Oracle Database connector: this is use to import the comma separated values (CSV) files that has been created. It is the necessary program that helps user to connect with the on-premise Oracle Database in order to enable perform various actions such as create, delete, get, and update in a table. Thus, it would load the data from Oracle database into the Einstein Analytics.
Answer:
//C++ code for the cash register..
#include <iostream>
#include<vector> //including vector library
using namespace std;
int main() {
vector<float> cash; //declaring a vector of type float.
float item=2,cash_sum=0;
int counter=1;
while(item!=0)//inserting prices in the vector until user enters 0...
{
cout<<"Enter the price of item "<<counter<<" :"<<endl;
cin>>item;
counter++;
cash.push_back(item);//inserting element in the vector...
}
for(int i=0;i<cash.size();i++)//looping over the vector...
{
cash_sum+=cash[i];//summing each element..
}
cash_sum*=1.08;//adding 8% sales tax.
cout<<cash_sum;//printing the result....
return 0;
}
Explanation:
I have taken a vector of type float.
Inserting the price of each item in the vector until user enters 0.
Iterating over the vector for performing the sum operation.
Then after that adding 8% sales tax to the sum.
Printing the output at last.
I vote A for the answer to your question. Hope this helps!