Working on a assignment, needs to be done soon so if you can help please do as soon as possible. It runs and everything is good how it should be but, im having issues with getting it to show the total amount it should come out to $553.35 if you enter 40 for kruger and 53 for stein. but i cant get it to show the cents. it just shows the dollars.
#include <string>
#include <iostream>
#include <iomanip>
usingnamespace std;
int main()
{
int kruger, stein, ghoul, total;
cout << "A reward is being handed out of $5.95 per each ghoul sighting... so... :)"<< endl;
cout << "How many times has Freddy Kruger been sighted?";
cin>> kruger;
cout << "How many times has Frank N. Stein been sighted?";
cin>> stein;
total = kruger + stein;
cout << "That is a total amount of sightings are " << total;
cout << " YIKES!!!!!" << endl;
ghoul = 5.95*total;
cout << "The total reward amount of ghoul sightings is $" << ghoul << endl;
system("pause");
return 0;
}
where would i add that exactly? just anywhere? im familiar with that just never knew how to use it. my teachers extremely rude when people ask him questions so like i never bothered