it is suppose to use the Calculate Charge function. here is my code the program works but if you enter a odd number it will not show decimal.
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
int _tmain()
{
int a = 2.00, // Parking Fee
int h, // number of hours parked
int x=1.00, // charged per hour
int t; // total
Console::WriteLine(S"Please enter the # of hours Parked, -1 to quit");
h = Int32::Parse(Console::ReadLine());
while (h != -1){
t= h*x/2 + 2;
Console::WriteLine(S"Your total is {0}",t.ToString());
a= Int32::Parse(Console::ReadLine());
}//end while
return 0;
}