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
Write a JAVA application program that will get a line of text containing a date in US form from the user, and then change this d
rosijanka [135]

Answer:

The Java code is given below with appropriate comments as well as the sample output

Explanation:

import java.util.Scanner;

public class Main

{

  public static void main(String[] args) {

System.out.println("Enter a date in the form mon/day/year:");

Scanner scanner = new Scanner(System.in);

String inputDate = scanner. nextLine();

 

//Split the string string with / as the delimiter

String[] dateComponents = inputDate.split("/");

 

//Rearrange the date and month part and join with '.' as sepertor

String outputDate = String.join(".", dateComponents[1], dateComponents[0], dateComponents[2]);

 

System.out.println("Your date in European form is:\n" + outputDate);

  }

}

<u>Sample Output </u>

Output 1:

Enter a date in the form mon/day/year:

01/22/2020

Your date in European form is:

22.01.2020

Output 2:

Enter a date in the form mon/day/year:

1/22/20

Your date in European form is:

22.1.20

6 0
3 years ago
The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current cal
valina [46]

Answer:

yea that is correct hope this works

7 0
3 years ago
Select all that apply. Purposes of writing include:
nalin [4]
All of these choices are reasons people write. they all appeal to different people
6 0
3 years ago
Read 2 more answers
Which type of operating system would be the best choice to control the braking system<br> on a car?
Anton [14]

Answer:Real type Operating Systems

Answer. Answer: Real type Operating Systems be the best choice to control the braking system on a ca

Explanation:

Sorry if it is late.But hope it helps!\( ̄︶ ̄*\))

3 0
2 years ago
help the grading period ends on Thursday and I need to get everything turned in by tomorrow (many more of these coming)
coldgirl [10]

Answer:

1. Fair use

2. Stacey uses parts of an older song in her new album that she wants to sell online.

3. Braxton makes a movie about his favorite superhero, using clips from various movies, and charges his friends to see it.

Explanation:

1. Fair use is a doctrine in the law of the United States that permits limited use of copyrighted material without having to first acquire permission from the copyright holder.

2. Stacey is not allowed to sell someone else's work as her own without getting permission from the original owner.

3. Braxton is not allowed to charge his friends to see his "movie", which is someone else work compiled into one video, without getting permission from the owner of the movies.

5 0
3 years ago
Other questions:
  • the two main forces acting on a computer that sits on a table are _________ and _________. a. weight; gravity b. weight; mass c.
    6·2 answers
  • Which of the following are actions a programmer could take when debugging a segment of code that would most likely lead to findi
    13·1 answer
  • When students have computer trouble they usually are expected to
    12·2 answers
  • Write a program whose inputs are three integers, and whose outputs are the largest of the three values and the smallest of the t
    10·1 answer
  • GDP measures the production levels of
    7·1 answer
  • A manufacturing company produces products. The following product information is stored: product name, product ID and quantity on
    6·1 answer
  • Dsc test transmission may​
    15·1 answer
  • Write an expression that executes the loop while the user enters a number greater than or equal to 0.
    9·1 answer
  • Each student has a record on a file consisting of the following data: Student last name, Student ID (numeric), GPA (a decimal nu
    7·1 answer
  • Sharon's company has written a new computer program, and she has been asked to find a way to prevent people from copying the sof
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!