answersLogoWhite

0


Best Answer

Well first you need to know what language you need to use, a compiler, and not use bad variables like 'n'.... heres a C++ program i wrote... not completely done yet though. You need to know what a do/while loop is, if statement, while loop, maybe a for loop, need to know how to use char, know how to generate a "random" number, the output, input stream, and how to declare a variable. pretty basic stuff.

/*

Guessing Game

Idiot Proof for numbers out of bounds

Throws up when characters are entered for integer input

Asks user if they want to play the game successfully.

Loops back after game is over asking if user wants to play again.

Randomized numbers

*/

#include <cstdlib>

#include <iostream>

using namespace std;

int main()

{

char play;

cout << "Want to play guessing game? Y/N" <<endl;

cin >> play;

// looping the guessing game for confirming if user wanted to play

while ((play 'y'));

}

return EXIT_SUCCESS;

}

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you enter 10 rem guesing game 20 let n equal 50 30 input guess a number from 1 to 100 ecxetera to make it a guessing game computer program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is computer science about?

Generally, computer science is all about using object-oriented programs to problem solve and create algorithms. By doing so, you can make program the computer to do simple tasks to extremely hard tasks. For example, you can create a program that lists all the factors of a number or a program in which you play a number guessing game with the computer! It gets more complex as you get more skilled with computer science. Eventually, you can learn how to add graphics into it! I


The machine that stores your data and files?

Im guessing that your grade 6. Spelling program 2.1?? Page 27 question 4 F. The answer is COMPUTER. Cause it says in the book. Com-Put-Er.


What is a computer program made of?

A computer program contains instructions, to be executed by a computer.


When creating a computer program who is design the structure of the program in a computer system?

when creating a computer program, system analyst design the structure of the program


What is a program option page on your computer?

Computer Program Option Page


What is a program on a computer?

A computer program is a set of rules that guides the computer to do a particular work, for which it is designed.


What is meant by flow of execution a program?

That means to load a computer program into a computer's memory, and have the computer carry out the instructions in the program.


When was Stellarium - computer program - created?

Stellarium - computer program - was created in 2001.


What do you call computer program in kannada?

computer program means ganaka yantra.


The instructions that tell a computer how to perform a task are called?

A Computer Program


What is a collection of computer program called?

Collection of computer program is Call Software.


Could you substitute the word instructions for the term computer program?

A computer program is a series of instructions for a computer, and 'instructions' could be used to describe a program in relevant context, as also could 'computer code'.