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

Write a program that will input the number of wins and losses that a baseball te

ID: 3633038 • Letter: W

Question

Write a program that will input the number of wins and losses that a baseball team acquired during a complete season. The wins should be input in a parameter-less value returning function that returns the wins to the main function. A similar function should do the same thing for the losses. A third value returning function calculates the percentage of wins. It receives the wins and losses as parameters and returns the percentage (float) to the main program which then prints the result. The percentage should be printed as a percent to two decimal places.
Sample Run:
Please input the number of wins
80
Please input the number of losses
40
The percentage of wins is 66.67%

Explanation / Answer

//believe this is what it's asking for #include #include using namespace std; int Wins(); int Losses(); float percentage(int,int); int main(){ int win,lose; float percentile; win=Wins(); lose=Losses(); percentile=percentage(win,lose); cout
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