Question: 3. Develop an algorithm for a simple game of guessing at a secret five-digit code. When the user enters a guess at the code, the

3. Develop an algorithm for a simple game of guessing at a secret five-digit code. When the user enters a guess at the code, the program returns two values: the number of digits in the guess that are in the correct position and the sum of those digits. For example, if the secret code is 53840, and the user guesses 83241, the digits 3 and 4 are in the correct position. Thus, the program should respond with 2 and 7. Allow the user to guess a fixed number of times. 1. Write a fragment of code that will read words from the keyboard until the word done is entered. For each word except done, report whether its first character is equal to its last character. For the required loop, use a a. while statement b. do-while statement mary se exercises are selected to give you a good amount of practice with the logical thinking process. At this point, Te is some code that is being written and some documentation! The key lesson is for you to practice and apply the ical thinking skills required of programmers!! ease be sure to ask questions on topics that you do not understand. Four Task FRIENDLY ADVICE: Read through the steps BEFORE you begin. Please complete the following in this order by the due date provided! 1. Starting on page 252. Answer Exercise questions: #1, #2 (ONLY AN ALGORITHM, NO CODE), #5, #10 (INCLUDE AN ALGORITHM and code) (6th Edition: Starting on page 248. Answer Exercise questions: #1, #2 (ONLY AN ALGORITHM, NO CODE). #5, #10 (INCLUDE AN ALGORITHM and code)) NOTE: For #2 and 110, You may use the algorithm section of our template as a guide if you like. You can just type up the algorithm in the text box provided. #2 only requires a step by step algorithm (NO CODE) W10, requires the algorithm as step by step in the heading comments section as well as the JAVA code #1 also needs some code for the while loops and the char comparisons. Check List: What to Submit . Submit your answers ECLIPSE FOR SAMA.pdf A Algorithm Template.docx 2 Algorithm Templa...docx o sarch
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
