Question: please please write down the code for question 2 ASAP Practice writing, compiling, and running programs in C++ using Microsoft Visual Studio. Use variables and

please please write down the code for question 2 ASAP
please please write down the code for question 2 ASAP Practice writing,

Practice writing, compiling, and running programs in C++ using Microsoft Visual Studio. Use variables and do computations using C++. For each problem, upload the .txt file to ELC. Please copy your codes and paste to .txt files and upload the .txt files. The name of each program should have the following form: ELEE2040_ps5_q1_UGAID#. In a comment line at the beginning of the file, please include the same information: class, assignment, UGAID# and name. Comment lines begin with "//". n k! 1. If I have n objects and I wish to choose k objects from those n, there are n(n-1)(n-k+1) n! k!(n-k)! ways to do it. This is referred to as "n choose k". Write a program, which takes two integer arguments (input by the user) and returns an integer. Your program must check that nk and must return-1 and print an error message (using cout) if that is not the case. 2. Create a (double) array to store the batting average of all players in Atlanta Braves (or another team in major league if you want). Use bubble sorting to sort the players' BAs from highest to lowest

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!