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
irakobra [83]
3 years ago
12

Write a C++ program that produces a simple personalized adventure game called Lost Fortune about a band of explorers that finds

a stash of 750 gold pieces. Start by asking the player for the following information: the number of explorers and the number of explorers lost in battle. The program should then use the information input by the player (this information will be different EACH time the game is played) to generate and print a basic adventure story. Here’s a sample run of the input and output of the game (program) where the player entered the following input: 17 (for the number of explorers), followed by 13 (for the number of explorers lost).

Computers and Technology
1 answer:
Natasha2012 [34]3 years ago
8 0

Answer:

Detailed answer is given :

You might be interested in
Please help in computer subject​
VMariaS [17]

Answer:

6. Read this quote from Ben Hogan below the photograph.

purple

"People have always been telling me what I can't do. I guess I have wanted to show them.

That's been one of my driving forces all my life."

31

What does this quote mean? Use at least two direct quotes from the text that give

examples of this quote.

A

urn

Julie Bahn

3 0
3 years ago
Read 2 more answers
Write a C++ program to find K largest elements in a given array of integers. For eeample, if K is 3, then your program should ou
Anon25 [30]

Answer:

// C++ program to find k largest elements in the array

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// variable

int n,k;

cout<<"Enter the number of elements of array:";

// read the value of n

cin>>n;

// declare the array of size n

int arr[n];

cout<<"Enter the elements of array:";

// read the elements of array

for(int a=0;a<n;a++)

{

   cin>>arr[a];

}

cout<<"Enter the value of K:";

cin>>k;

// call the function to perform selection Sort

sort(arr, arr+n);

cout << k<<" largest elements of the array are: ";

// print k largest elements of the array

for (int i=n-1; i>n-k-1; i--)

cout << arr[i] << " ";

return 0;

}

Explanation:

Read the number of elements in the array.Then create an array of size "n" and read  n elements of the array.Sort the array in ascending array.Then Read the value of  k from user.Find the k Elements from the end of the array.This will be the k  largest elements of the array.

Output:

Enter the number of elements of array:8                                                                                    

Enter the elements of array:34 8 75 99 12 7 5 55                                                                          

Enter the value of K:3                                                                                                    

3 largest elements of the array are: 99 75 55

4 0
3 years ago
To create the array variable named ar, you would use :A. int ar;
vampirchik [111]

Answer: (C)

Explanation:

You can declare it as:

int[ ] ar; or

int ar[ ];

7 0
4 years ago
In order to ensure drive health, what command should you use to search for a repair file system error
ira [324]
The chkdsk command fixes file system errors and recovers data from bad sectors to ensure system health
3 0
3 years ago
An opening in which there is a drop of more than feet requires a guardrail or a cover to be installed.
FinnZ [79.3K]

I don't know what the answer would be, other than dangerous. I'm sorry if this is not helpful, but I'm sorry if this is not what you meant.

8 0
3 years ago
Other questions:
  • According to many experts how often should files be backed up
    12·2 answers
  • Which of the following is an Example of a technical (“hard”) skill
    6·2 answers
  • How much does 1 American tank cost on gas for a regular mission? Depending on your answer, I will give you the right amount of p
    12·1 answer
  • Universal Containers (UC) has decided to build a new, highly sensitive application on the Force platform. The security team at U
    11·1 answer
  • 38. To select nonadjacent items, select the first item, such as a word or paragraph, as usual; then, press and hold down the ___
    8·1 answer
  • Which software is used for cover letters and resumes
    9·2 answers
  • _is a computer network created for an individual person
    10·1 answer
  • The intuitive interface designed by alan kay is called a ________.
    11·1 answer
  • Edmentum Question- Consumer and Credit Loans
    15·1 answer
  • Information in _____ code can be transmitted without errors over the communication network.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!