Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Do the 6 programs below. Combine them into one menu driven program where option

ID: 3531696 • Letter: D

Question

Do the 6 programs below. Combine them into one menu driven program where option 1 is tossing the coin and option 7 is to quit.You will have a screen shot for each program.

1. Simulate tossing a coin 10,000 times. Record the number of heads and tails. Use the random number generator.

2. You are a double naught spy like Jethro. Take the string "I love C++ programming at Calhoun College" and convert into a secret code using a displacement of 2. That means an a is a c and a b is a d and a c is an e, and so on. You could take each letter 1 at a time, convert the letter into its ascii Equivalent( google ascii table), and then increase that by 2 and then change it back into a character.

3. The the string "Reema M.Johan" and convert in into "Johan,Reema M." using the string functions.

4. Take the string "Calhoun" and print it backwards.

5.Redo the factorials program using recursion, a function calling itself.

6. Simulate rolling a pair of dice 10,000 times. Roll di 1, then di 2, then add the 2 di together to get a number in the range of 2 to 12. Record and display the total amount of 2s, 3s, so on. . Again use the random number generator.

Explanation / Answer

i will solve your question if u wait for 20 mins without giving rating

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote