This assignment will give you practice with while loops and pseudorandom numbers
ID: 441641 • Letter: T
Question
This assignment will give you practice with while loops and pseudorandom numbers. You are going to write a program that allows the user to play a simple guessing game in which your program thinks up an integer and allows the user to make guesses until the user gets it right. For each incorrect guess you will tell the user whether the right answer is higher or lower. Your program is required to exactly reproduce the format and behavior of the log of execution at the end of this write-up. You are to come up with your own introduction to the game in the form of a haiku. Recall that a haiku has three lines of text: a line with five syllables followed by a line with seven syllables followed by a line with 5 syllables. Your introduction must be in the form of a haiku. At a minimum, your program should have the following static methods in addition to method main:Explanation / Answer
#include #include #include int main(int argc, char ** argv) { std::cout > grade) { if (grade >= 90 && gradeRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.