Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

continue to compile/run our Java programs from the command line. Create a program that shows the following We'll need to know a few things about

continue to compile/run our Java programs from the command line.

Create a program that shows the following

We'll need to know a few things about our knight such as his name(hint:String), health(hint:int), number of battles, age, and amount of gold procured from pillaging.

To keep track of all of these attributes, we'll need to create a container to hold each of the specified pieces of information above. To populate each of these containers, we'll need to have a way of entering data from the user.

To get an overall picture of your knight, we'll need a way to export all of these attributes to the screen. Hint: You can use Scanner's next() method to gather the String name.

Acceptance Criteria:

1. Ability to enter Sir Jav-a-lot's attributes.

2. Sir Jav-a-lot's information will be shown on the screen.

a. In addition to showing each of Sir Jav-a-lot's attributes, we need to know the average gold accumulated per battle.

3. This is to be a command line interface only.

4. . Output must be displayed using the printf method.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago