1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alinara [238K]
3 years ago
14

Write a program that allows the user to play a guessing game. The game will choose a "secret number", a positive integer less th

an 10000. The user has 10 tries to guess the number.
Computers and Technology
1 answer:
Burka [1]3 years ago
8 0

Answer:

// This program is written in C++

// Comments are used for explanatory purpose

// Program starts here

#include<iostream.h>

#include<stdlib.h>

int main()

{

// Declare variables

int num, selectno;

string status;

randomize();

//Generate random number;

num=rand()%10000;

// Prompt to guess a number

cout<<"You have only 10 tries\nTake a guess: ";

int tries = 0;

while (tries != 10)

{

cin>>selectno;

if(selectno == num){

cout<<"You passed at the "<<count+1<<" attempt";

tries = 10;

}

else

{

cout<<"You failed. Take another guess\n You have "<<10 - count + 1 <<" attempts";

}

tries++;

if(tries >= 10)

{

break;

}

}

return 0;

}

You might be interested in
What is computer-aided design/computer-aided manufacturing (CAD/CAM)? a.A cultural trend that places value on an individual's ab
masha68 [24]

Answer:

C. RFID tag Systems are used to create the digital designs and then manufacture the products

7 0
4 years ago
You've finished programming the app! Now your company has to decide whether to use an open source
pishuonlain [190]

Answer:

Proprietary License gives you full ownership and trademark/patent opportunites. Open source allows for code donation and a community based development for your app. Generally speaking, if your a private entity creating an app for a client, you'll need the Proprietary Licence, which will allow you to sell the codebase to your client.

If your creating an app for your company as itself, you go either way, sell the license in licensing agreements, or have your companies community contribute and better your app from the inside.

Its entirely based on the agreements you set for the app.

5 0
3 years ago
Which of the following types of e-commerce presence is best suited for creating an ongoing conversation with one's customers?A)
Over [174]

Answer:

C) Social media

Explanation:

Social media is a vital marketing tool in the modern era. Aside from posting photos or status updates, using social media for customer service can elevate your business to the next level. Social media has strong potential to better address customer service issues. And if you address and resolve customer concerns over social media in short enough time, the exchange can help you create a loyal customer base.

8 0
3 years ago
A computer's ____ is a collection of programs that manage and coordinate the activities taking place within the computer. It pro
V125BC [204]

Answer: Operating system

Explanation:

  A computer's OS (operating system) is one of the type of computer software and the main function of an operating system is that it helps in managing the hardware, processes, memory and the software of the computer application.

 An operating system basically providing the set of instruction to the computer for the communication purpose and perform various types of task in the computer system.

According to the given question, an operating system is refers to the software program that helps in coordinating all the task and the activities in the computer system.        

 Therefore, Operating system is the correct answer.

3 0
3 years ago
To export data from a query to Excel, select the query in the Navigation Pane, click ____ on the ribbon, and then click the Exce
Gelneren [198K]

Answer:

External Data is the correct answer.

Explanation:

In the following statement, if the user wants to transfer data from query to Excel then, they follow these steps.

  • Firstly, they have to click on the Tools.
  • Then, they click on the options.
  • Then, they have to click on the Query then, click on the external data on the ribbon.
  • Finally, they click on the Excel button.
5 0
4 years ago
Other questions:
  • SubVIs...
    15·1 answer
  • Clifford visits a website that has a lot of multimedia content. He watches a few videos. However, some videos do not play. The b
    14·1 answer
  • Those persons with little in the way of hacking skills that can access and use powerful hacking tools are called _______________
    15·1 answer
  • "Because Standard Error and Standard Ouput represent the results of a command and Standard Input represents the input required f
    6·1 answer
  • A company is in the middle of an operating system update to Windows 10 from Windows XP, Windows 7, and Windows 8.x. The diverse
    5·1 answer
  • What is a computer OPERATING SYSTEM?
    10·1 answer
  • Give two examples of html structure
    15·1 answer
  • What is the purpose of a report?
    6·2 answers
  • Eşhedü en la ilahe illallah ve eşhedü enne Muhammeden abdühü ve resulühü
    11·1 answer
  • You are the network administrator for a small company that implements NAT to access the internet. However, you recently acquired
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!