Answer:
B. Use cross-platform tools to write code that will translate the existing Android app code into different native formats.
Explanation:
Cross-platform application development tools are tools that can be used tool generate applications of different platforms, by just writing a single type of code. It has the ability to automatically create an application of a different platform from another.
A developer can develop an application like Android and convert it to IOS for Apple. Xamarin, Appcelerator coroner etc, are all examples of cross-platform tools.
Answer:
<em>C++</em>
///////////////////////////////////////////////////////////////////////////////////////////
#include <iostream>
using namespace std;
//////////////////////////////////////////////////////////////////
class QuadraticEquation {
int a, b, c;
public:
QuadraticEquation(int a, int b, int c) {
this->a = a;
this->b = b;
this->c = c;
}
////////////////////////////////////////
int getA() {
return a;
}
int getB() {
return b;
}
int getC() {
return c;
}
////////////////////////////////////////
// returns the discriminant, which is b2-4ac
int getDiscriminant() {
return (b*2)-(4*a*c);
}
int getRoot1() {
if (getDiscriminant() < 0)
return 0;
else {
// Please specify how to calculate the two roots.
return 1;
}
}
int getRoot2() {
if (getDiscriminant() < 0)
return 0;
else {
// Please specify how to calculate the two roots.
return -1;
}
}
};
//////////////////////////////////////////////////////////////////
int main() {
return 0;
}
Answer:
Since the question expect us to declare a C-string, the solution code is written in C as follows:
- char ssn[9];
- scanf("%s",ssn);
Explanation:
A C-String is a string written in C language. It is an array of characters. To declare a C-string, we use the keyword, <em>char </em>and then followed with the variable name + brackets and the number of characters in the string. For example, we can create a C-String for the SSN number as in Line 1.
To read standard input into the array, we can use C built-in function, <em>scanf(). </em>Just include a string placeholder, %s, and the variable<em> ssn </em>as arguments to <em>scanf()</em>. This will assign the string input by user to variable <em>ssn</em> as C-String.
I cannot see the options but I am guessing that it is just regular HTML
If that is the case the <meta></meta> tag can be used and should be placed within the <head></head> tag