/* L3-7.cpp (Vote Percentages) What is wrong with this program? Fix it so that it prints each candidate's percentage to the nearest tenth of percent. */ #include using namespace std; int main() { int totalvotes = 30; int rayvotes = 7; int allenvotes = 13; cout << "Ray got " << rayvotes / totalvotes * 100 << "% of the votes." << endl; cout << "Allen got " << 100 * allenvotes / totalvotes << "% of the votes." << endl; return 0; }