Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for this chalenge we wil be imptoving the Guess a Number, Win a Drite program we wrote in Chaterga a by adany a repetton structure,

image text in transcribed
image text in transcribed
for this chalenge we wil be imptoving the Guess a Number, Win a Drite program we wrote in Chaterga a by adany a repetton structure, input validation, and an accumulator Win an enco message and ask them to choose again by using a value fiom 1 - 50 only You wal also be recording how many tmes the user has attempled to guess the number. Each tma the uter guestes increment by one and pirt to the sereen. Every teme thereaher would increment the counteriaccumulator by 1 Use the code from Chatenge 03 as the baseline for this prooram. Programming Concepts Allowed: - For bops - Whint loops - It. Fit. Else conditons - Boolean Coperators - True - iegical eperators: + And - Not - accumulats - input valdasion Geading Rubric: You wis be decucted poras for the foliging hems: - ite ponts if your progain has symax eriors and the program wit not run in Codecrade. - Yeu wil receken a of you copy somosne else's wok or copy something from the internet. Asking for asoistance, when you tuve alieady weaen cose, 15 alswed as long as you can articuloto whiy the changos woik: A Al obei Rularic detals are on CodeGrade. which you wer seo sten you rin the Austest Teat Oata. (Hse this data to sest your program and ansure you get 100k in CodeGrade) - The Corarect number o 41 - USE the toloning valuoe is, THis ORDCR: 0,1,10,20,30,40,45,41. - You ahould have 8 as the value for your accumulatonicoumer variable (meaning it took I timos for the user to guess the correct numben. - When the user deoses A0 and 45 , your oufput Must state vertatim Tour guess is within 5 digits of the cerrect number. Piesse try ajain. Fot tris chafenge we will be ineroveng the Guest a Number, Win a Pize program we wote in Challonge 3 by adding a repetion structure, input validation, and an accumulafor. I want you lo impiement either a FOR loog or a WAlLE bop to give the usar untmend attompts to guess the cocred number. If the user types in a value obove 50 or below 1 , then you Must provide bculd increment by one and print fo the screen. Every time thereafler woud ncrenent the courterlaccumiator by 1. Une the code from Chatenge 03 as the bitseline for this sicgram Programining Concepts Allowed: - For iseps - Whine Loges - it, Fit, Else condtions - Boclean Operators - True - logical cperatont and - Or Not >>,>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago