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 />
Answer:
i have no idea what the answer is
Explanation:
Answer:
I think u had forgot to mention the statements.
Answer:
ATM card and the pin number, the status of the bank account and the total of the purchase and the account and method of payment.
Explanation:
The POS or point of service is a device that allows the purchase of product from a commercial store to be done wirelessly and cashless.
It promotes The cashless policy to reduce the circulating physical currency. The POS electromagnetic wave to wirelessly access bank database to retrieve bank account information.
It takes in the smart card, and with the command, retrieves the bank account information addressed on the card. The cashier types the total price of purchased product and it is automatically minus and updated on the account database. Then the invoice of the transaction is issued to the customer.