# How do you round up?

 Giorgio M · January 31, 2015 I've tried everything possible and the final answer won't round up. This is what I have so far and this is what it is telling me to do."Enter pounds: 7Enter shillings: 17Enter pence: 9Result in Decimal pounds = £7.89In ASCII the '\x9c' represents the pound sign. Also, display the result with two decimal places (display £7.89, not £7.88xxxx) by using the fixed, showpoint and setprecision() manipulators"I got the code working perfectly, the one issue I am having is that I keep getting £7.88 not £7.89 I got it rounded to 2 decimal places at least. If anyone can help that would be highly appericated. Thank You-Giorgio#include #include #include using namespace std;int main(){//Declare Variablesint Pounds;int Shillings; int Pence;string User_Answer;//Initialize VariablesPounds = 0;Shillings = 0;Pence = 0;User_Answer = "C";while ( User_Answer == "C" || User_Answer == "c" ){ cout << "Enter pounds     : "; cin >> Pounds; cout << "Enter shillings  : "; cin >> Shillings; cout << "Enter pence      : "; cin >> Pence; Pence = (((Shillings * 12) + Pence) * 100)/240; //If statement (Pence will not exceed 100) if (Pence >= 100){ //Calculating expressions Shillings = Pence % 100; Pounds = Pounds + ((Pence-Shillings) / 100); Pence = Shillings; } cout << "Decimal pounds   = \x9c" << fixed << setprecision(2) << Pounds << "." << Pence << endl; cout << "Press C to continue or E to exit.\t\t"; cin >> User_Answer; }system("pause");return 0;}