Create a program based on the attached 3 outputs below. Using a while loop is required in your program
Sample output 1:
Choices
E or e for Even
O or o for Odd
X or X for Exit
Enter your choices: e
.........This program is for Multiplication of even numbers........
Enter a number:20
1 * 2=2
2 * 4=8
3 * 6=18
4 * 8=32
5 * 10= 50
6 * 12=72
7 * 14=98
8 * 16=128
9 * 18=162
10 *20= 200
Sample output 2:
Choices
E or e for Even
O or o for Odd
X or X for Exit
Enter your choice:o
.....This program is for Multiplication of Odd numbers....
Enter a number:10
1 * 1=1
2 * 3=6
3 * 5=15
4 * 7=28
5 * 9=45
Sample output 3:
Choices
E or e for Even
O or o for Odd
X or X for Exit
Enter your choice:X
Your program will now exit.
Permutation and Combination:
Carbonyl fluoride, COF
2
COF2, is an important intermediate used in the production of fluorine-containing compounds. For instance, it is used to make the refrigerant carbon tetrafluoride, CF
4
CF4 via the reaction
How many possible samples of size n=8 can be drawn from a population of size 11
The tap code, sometimes called the knock code, is a way to encode text messages on a letter-by- letter basis in a very simple way. Tap code has been one of the most basic communication protocols and still used to convey SOS messages and other urgent communication. The tap code uses a 5×5 grid of letters representing all the English alphabets, see Figure 1. To communicate the word "water", the cipher would be the following (with the pause between each number in a pair being shorter (single space) than the pause between letters (two spaces)),
Your task is to design a program that can
i) convert any given string into a Tap code sequence
Prototype: char* convertToTapCode(char*)
ii) and A Tap code sequence to a string (char*)
Prototype: char* convertToString(char*)
Note: You are not authorized to use string data type; however, you can use char*
Addition of Big Integer
In this problem, you have to take two char arrays of numbers (e.g., “1203009954” and
“109876201453”) from the user and add these two numbers and store answer in a third char array digit by digit (“111079211407”).
char* additionOfBigInteger(char * Num1, char* Num2)
Subtraction of Big Integer
In this problem, you have to take two char arrays of numbers (e.g., and “1203009954”
“109876201453”) from the user and subtract these two numbers and store answer in a third char array digit by digit (“-108673191499”).
char* subtractionOfBigInteger(char * Num1, char* Num2)
Multiplication of Big Integer
In this problem, you have to take two char arrays of numbers (e.g., and “1203009954”
“109876201453”) from the user and multiply these two numbers and store answer in a third char array digit by digit (“132182164055668263162”).
char* multiplicationOfBigInteger(char * Num1, char* Num2)
Write a C++ recursive function PrintPattern1 to print following pattern using recursion. No
loops allowed whatsoever, and you can write other helping (recursive) functions. For example, calling your function with these argument PrintPattern1(1,10) should print following pattern. Your function prototype must be as follows:
void PrintPattern1(int start, int end);
pattern:
*
*
*
*
*
*
*
The Haber process for the synthesis of ammonia from nitrogen and hydrogen gases in an exothermic process.
N2(g) + 3H2(g) ⇌ 2 NH3 (g) ΔHrxn= -92.4 kJ
How will the following conditions affect the equilibrium of the system?
a) adding more N2 =
b) removing 3H2 =
c) removing NH3 =
d) increasing the pressure in the reaction vessel =
e) decreasing the temperature of the system =
An empty 1.0 L was filled with 5.0 moles of oxygen and 4.0 moles of nitrogen monoxide. If the amount of NO2 at equilibrium is 1.5 moles, calculate the equilibrium constant, Kc.
2NO(g) + O2(g) ⇌ 2 NO2 (g)
For the reaction CH4(g) +2H2S(g) ⇌ CS2(g) + 4H2(g) , Kc = 0.046 at 687oC. In an experiment, 4.00 mol of CH4, 1.00 mol of H2S, 2.00mol of CS2, and 2.00 mol of H2 are mixed in a 500mL vessel. Is the reaction at equilibrium? If not, in which direction is it progressing?