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
Lady bird [3.3K]
3 years ago
7

In java Define a method printFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand. Ex:

printFeetInchShort(5, 8) prints: 5' 8" Hint: Use \" to print a double quote.
import java.util.Scanner;

public class HeightPrinter {

/* Your solution goes here */

public static void main (String [] args) {
printFeetInchShort(5, 8);
System.out.println("");

return;
Computers and Technology
1 answer:
USPshnik [31]3 years ago
3 0

Answer:

   public static void printFeetInchShort(int numFeet, int numInches) {

       System.out.println(numFeet+"\'"+ numInches+"\"");

   }

Explanation:

To format the output properly, make use of the excape sequences (\' and \'') with string concatenation.

The complete code is given below:

public class StringLength {

   public static void printFeetInchShort(int numFeet, int numInches) {

       System.out.println(numFeet+"\'"+ numInches+"\"");

   }

   public static void main(String[] args) {

       printFeetInchShort(5, 8);

       System.out.println("");

   }

}

You might be interested in
Descriptive information (e.g., title, author, subjects covered, location as a webpage) about an information resource in an infor
Stella [2.4K]

Answer:

A) Metadata

Explanation:

Metadata is information about data. call it data about data if you like and it could be descriptive, structural, statistical or administrative, the aim is to provide further information about a particular data element for example in descriptive meta data which is useful for discovery and identification as it provides futher information such as title, keywords, authur and abstract.

4 0
2 years ago
1. The first true digital computer was designed by: (10 points)
Wewaii [24]
1. John von Neumann - he was the brain of the project ENIAC
    (1st digital computer)

2. True - computers were built before the operating systems

3. True - as Marcian Hoff started working with it in 1958

4. Apple - apple is the company who owns the MAC (OS)
6 0
3 years ago
In order to use Slicers to filter some data, what must you first do to that data?
Vinil7 [7]

Answer:

Select Insert > Slicer. Select the fields you'd like to filter. Select OK and adjust your slicer preferences, such as Columns, under Options. To select more than one item, hold Ctrl, and then select the items that you want to show.

Explanation: Convert the data into a table

4 0
3 years ago
Read 2 more answers
What is the full form of HTML?​
lukranit [14]

Answer:

Hyper text mark up language. is the full form of HTML

hope it helps

<h3>stay safe healthy and happy.</h3>
7 0
2 years ago
Read 2 more answers
Students at a university are working on a project. The project involves many computing systems working together on disjointed ta
Natasha_Volkova [10]

Cloud Computing

I hope this helps!

8 0
2 years ago
Other questions:
  • Which type of connection to the Internet is capable of the fastest transfer rates
    14·2 answers
  • Which of these is a typographical clue?
    9·2 answers
  • 1. Comments can be placed anywhere in Python, including in the middle of a line of code.
    14·1 answer
  • Which of the following examples illustrates the Crowding Out Effect?
    14·1 answer
  • Which of these computers was marketed as a computer/game machine?
    15·2 answers
  • If a _____ error appears when you run a macro that has worked in the past, some part of the macro code no longer makes sense to
    9·1 answer
  • What is a text designed for editing and authoring code is<br> A code editor <br> B
    9·1 answer
  • According to the video, what are some concerns of Webmasters? Check all that apply.
    7·2 answers
  • Create One print command in LOGO​
    12·1 answer
  • Choose the response that best completes the following statement.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!