Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

after i input the goals and assists all 4 players are outputed, how can i fix th

ID: 3661283 • Letter: A

Question

after i input the goals and assists all 4 players are outputed, how can i fix this program so only one player is ouputed based on the conditions. #include #include using namespace std; int main(int argc, char *argv[]) { double goals_scored; double assists; double points; points= goals_scored+assists; cout<<"Enter the players goals total"<<endl; cin>>goals_scored; cout<<"Enter the players asssists total"<<endl; cin>>assists; if (points<=10); cout<<"This is cam Jannsen"<<endl; if (points<=20); cout<<"This is Petr Sykora"<<endl; if (points<=30); cout<<"This is David Clarkson"<<endl; if (points>30); cout<<"This is Ilya Kovalchuk"<<endl; system("PAUSE"); return EXIT_SUCCESS; }

Explanation / Answer

change the if conditions

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote