Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this assignment. Please use the lab template. PROGRAMMING: PERMUTATIONS ASSIGNMENT INSTRUCTIONS OVERVIEW Using the double variable type, you will create a

I need help with this assignment. Please use the lab template.
image text in transcribed
image text in transcribed
PROGRAMMING: PERMUTATIONS ASSIGNMENT INSTRUCTIONS OVERVIEW Using the double variable type, you will create a program that uses two variables to calculate the number of permutations of the potential team arrangements. INSTRUCTIONS The number of permutations of a set of n items taken r at a time is given by the following formulan!/r!(n-r)!: where n! is the factorial of n,r/ is the factorial of r, and (nr)! is the factorial of the result of nr. The factorial of a number n can be solved using the following formula: n!=ennn2n. If there are 18 people in your class and you want to divide the class into programming teams of 3 members, you can compute the number of different teams that can be arranged using this formula (n!/r!(nr)!) Write a C++ program that determines the number of potential team arrangements. You will need to use the double type variable for this computation. 1. Copy the Lab Template from the lab submittal instructions to fa new blank c++ file. Use the file as the foundation of your program. 2. Add the variables \& math computations necessary to complete the calculations. 3. Output the results to the screen. The output must be labeled clearly and formatted neatly. 4. Include proper formatting, and appropriate comments in your code. More comments inside for the programmer and outside for the user = better grades. 1/ - brief statement as to the file's purpose //CSIS 111-ADD YOUR SECTION NUMBER // using namespace std; /Global declarations: Constants and type definitions only no variables /Function prototypes int main0 \{ /In cout statement below SUBSTITUTE your name and lab number cout "Your name - Lab Number" endl endl; I/Variable declarations //Program logic //Closing program statements system("pause"); return 0; \}/Function definitions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

15. Identify the rescue from without in The Empire Strikes Back.

Answered: 1 week ago