answersLogoWhite

0

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

17y ago

What else can I help you with?

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.


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


When was Stellarium - computer program - created?

Stellarium - computer program - was created in 2001.


What is a collection of computer program called?

Collection of computer program is Call Software.


why a calculator is a computer?

it is part of a computer program