Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"


I need to format the code with the correct indentation and descriptions. I have posted the code i have editied… please advise if further corrections are needed?


View the code in the ;Guessing Game.cpp ;file. Although the program compiles and runs, you will notice how difficult it is to read the code itself. An important part of programming is making your code readable so other developers can read and maintain it. Using ;these style guidelines, format and submit this code. ;

Need assignment help for this question?

If you need assistance with writing your essay, we are ready to help you!






Why Choose Us: Cost-efficiency, Plagiarism free, Money Back Guarantee, On-time Delivery, Total Сonfidentiality, 24/7 Support, 100% originality

Continue to follow these guidelines as you develop code during this course. ;

this assignment, review the ;Formatting Assignment Guidelines and Rubric ;document.


#include “stdafx.h”

#include <iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int main()


//random number generator

srand(time(0)); ;

//Seed the random number generator

int selectedNumber = rand()%20+1;int numberOfTries = 0;int inputtedGuess;

cout << “Guess My Number Gamenn”;

//Ask the user for a value until the correct number is entered



cout << “Enter a guess between 1 and 20:”; ;

cin >> inputtedGuess;


if(inputtedGuess>20 || inputtedGuess<1) {cout << “Your guess is out of range. nn”;}

else if (inputtedGuess > selectedNumber){cout << “Too high!nn”;}

else if (inputtedGuess < selectedNumber){cout << “Too low!nn”;}

} ;

while (inputtedGuess != selectedNumber);

//Congratulate the user and end the program

cout << “nCongratulations! You solved it in ” << numberOfTries << ” tries!n”;

return 0;

“Order a similar paper and get 15% discount on your first order with us
Use the following coupon

Order Now