Question: Write a C++ program that will randomly generate letters. You can assign letters of the alphabet to 1 to 26 OR you can use the

 Write a C++ program that will randomly generate letters. You can

Write a C++ program that will randomly generate letters. You can assign letters of the alphabet to 1 to 26 OR you can use the ASCII values of uppercase letters of 65 to 90. Your program will not be using arrays for this problem. Your program should use the Rand Int function given in class and in your textbook. Prompt forw many letters you want to generate and pick the letter of your first name. Run the si how many times your letter was selected. Your program only needs to work with all up lowercase but it needs to be clear to someone using your program what it is expecte Thoughts In C++ you can "cast" an integer variable to temporarily be a decimal value sing this: answer-(double) count/total; You can also view the integer equivalent to a character ANDt like casting. aracter equivalent of an integer. Acts For example: I/ariables declared char ch ('A); creatingth variable and initializing it to A int test(90); //creating the test variable and initializing it to 90 //output t uivalent of the character variable cout //outputs 65 //qutput the character equivalent of the integer variable cout

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!