Using C Write Program Asks Guess Fruit Name Preset Inside Code Please Use Cstring Library Q37091473

Using C++

Write a program which asks you to guess a fruit name that youpreset inside the code. Please use cstring library and strcmp forthis exercise by fulfilling the following requirements:

• Your code should get user’s guess inside a while loop whichshould stop either by entering ”quit” for user’s guess or when userfinds the correct answer or after five incorrect guesses.

• For any of the choices above your program should prompt amessage as follows:

– if user quits, it says thanks and gives the right answer

– if user knows the correct answer, say congrats!

– if user exceeds five guess, it should say

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.