Question: Please help me with these c++ programs: 2. Write a program that increments a given number by a given value. a) Main should handle all

Please help me with these c++ programs: Please help me with these c++ programs: 2. Write a program thatincrements a given number by a given value. a) Main should handle

2. Write a program that increments a given number by a given value. a) Main should handle all input and output b) Create a void function that i ncrement s a specified number by a specified value. c) Demonstrate the function with sample input from console. Example Output (input in bold italics) Enter a number: 5 Enter a value to increment by: 3 The incremented value is 8. 3. Write a program that calculates n factorial (n!). a) Main should handle all input and output b) Create a function that accepts a number n and returns n factorial. c) Demonstrate the function with sample input from console. n!n * n-1 * n-2 * n-3, for all n >0 For example, 3!-3 * 216 Example Output (input in bold italics) Enter a number: 5 5' = 120

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 Databases Questions!