Nothing, it will just keep sending you annoying notifications that become more and more frequent, i would just confirm it if i were you
Answer:
cout << setprecision(2)<< fixed << number;
Explanation:
The above statement returns 12.35 as output
Though, the statement can be split to multiple statements; but the question requires the use of a cout statement.
The statement starts by setting precision to 2 using setprecision(2)
This is immediately followed by the fixed manipulator;
The essence of the fixed manipulator is to ensure that the number returns 2 digits after the decimal point;
Using only setprecision(2) in the cout statement will on return the 2 digits (12) before the decimal point.
The fixed manipulator is then followed by the variable to be printed.
See code snippet below
<em>#include <iostream> </em>
<em>#include <iomanip>
</em>
<em>using namespace std; </em>
<em>int main() </em>
<em>{ </em>
<em> // Initializing the double value</em>
<em> double number = 12.3456; </em>
<em> //Print result</em>
<em> cout << setprecision(2)<< fixed << number; </em>
<em> return 0; </em>
<em>} </em>
<em />
A.Information on social networking sites can give most or all digits of a person’s social security number.
Answer:
The answer to the given question is it will produce an "error"
Explanation:
In the given java program it will produce an error because in java we do not use double quote("""") for message printing. We use a single quote("") for message printing. In the given program if we use a single quote(""). so it will give output that is "dogood:dogood".
The correct program to this question is can be given as:
Program:
public class Test //define a class test.
{
public static void main(String[] args) //define main method
{
Test obj = new Test(); //create class object
obj.start(); //calling function
}
void start() //define function start.
{
String stra = "do"; //define variable and assign value.
String strb = method(stra); //define variable and pass stra variable in method() function as a parameter.
System.out.print(":"+stra + strb); //print value.
}
String method(String stra) //define function method
{
stra = stra + "good"; //add value
System.out.print(stra); //print value of stra
return"good"; //return value
}
}
Output:
dogood:dogood