(Solved) : Note Please Don T Use Functions Arrays Using Loop Choice Make Menu Repeat User Selects F F Q41343818 . . .

Note: please don’t use functions and arrays.
Using a loop of your choice, make the menu repeat itself untilthe user selects ‘f’ or ‘F’. (For questions 1-3, write a separatefull C++ program for each solution).
1. Odd factorial is the same equation as the factorial, exceptthat it only multiples the odd numbers. So if you want the oddfactorial of 5, then you’d calculate 5 * 3 * 1.
Your task is to write a program that will check whether theentered number is odd and positive, if it is, then calculate theodd factorial and exit. If not, then ask the user to enter a validnumber again. See example below:First runEnter a number0You’ve entered an even or negative number, please enter apositive odd number2You’ve entered an even or negative number, please enter apositive odd number3The odd factorial result is: 3Second runEnter a number-5You’ve entered an even or negative number, please enter apositive odd number13The odd factorial result is: 135135——————————————————-
2. The mohammed series calculates the result of an equationwhich is simple and has the following rule:n = ( n * 1 ) + ((n-1) * 2) + ….. + (n-(k-1) * k)Where n is a positive odd number and k is (n+1)/2 (middlepoint).Example: if n = 5, then (5×1) + (4×2) + (3×3) = 22Example2: if n = 11, then (11×1) + (10×2) + (9×3) + (8×4) +(7×5) + (6×6) = 161Your task is to write a program that will solve this Mohammedseries equation for any odd positive number n the user selects. Seeexample below for expected output.Enter a number (0 to exit)3The Mohammed series result is: 7Enter a number (0 to exit)-4You’ve entered an even or negative number, please enter apositive odd number5The Mohammed series result is: 22 Enter a number (0 toexit)9The Mohammed series result is: 95 Enter a number (0 toexit)2You’ve entered an even or negative number, please enter apositive odd number15The Mohammed series result is: 372 Enter a number (0 toexit)0Thank you. Bye byeFew things you need to pay attention to:a. The program will keep asking for numbers until the usertypes 0b. The program will ask for the input number again if it isnot odd positivec. If the user enters 0, the program exits and prints out“Thank you. Bye bye”

Expert Answer


Answer to Note: please don’t use functions and arrays.Using a loop of your choice, make the menu repeat itself until the user sele…