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
Stels [109]
3 years ago
11

Define a method printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. Ex: printfee

tinchshort(5, 8) prints:
Computers and Technology
1 answer:
ddd [48]3 years ago
8 0

Answer:

Following is printfeetinchshort method in Java:

 void printfeetinchshort (int numfeet, int numinches)

 {

   System.out.println (numfeet + "\'"+numinches+"\"");

 }

Explanation:

In the above method escape character (\) is used to print single inverted comma (') and double inverted comma (") using \' and \".

Following is the Java program to implement the above method:

public class Main

{

 public static void main (String[]args)

 {

   printfeetinchshort(5,8);

 }

 public static void printfeetinchshort (int numfeet, int numinches)

 {

   System.out.println (numfeet + "\'"+numinches+"\"");

 }

}

Following will be the output of above program:

5'8"

In the above program the method printfeetinchshort() is made as static so that it can called be by Main method directly and not through any object instantiation.

You might be interested in
Give a name of the part responsible for memorising a cell phone number​
erik [133]

cerebrum

Explanation:

it controls all voluntary actions and also controls all the higher thought processes such as memory, judgement and reasoning

4 0
3 years ago
taking small bits of information from the internet/web and using it as my own work or to complete an assignment is plagiarism.
lana66690 [7]
Not necessarily, if you are sourcing the information you have used to come to your own conclusion then that isn't plagiarism, however if you just copy paste completely and use it as your own work then yes it is plagiarism.  <span />
7 0
3 years ago
I need help I would really appreciate it
Andreas93 [3]

Answer:

Checks if it is a multiple of 3 and 5

Explanation:

Its an if statement using modulus division to check for a remainder. It checks if a number is a multiple of 3 AND 5. (&& and & both mean and in Java).

If the remainder of both is 0 then that means the mystery number is a multiple of both 3 and 5.

3 0
3 years ago
The help desk for company XYZ received a call from a user who could not locate their company-issued smart phone device. The netw
Gnoma [55]

Answer:

In the given scenario, the user may have disabled the profile on the device. That is why the help-desk would not be able to lock the device remotely through the software.

Explanation:

A device can only be located and locked via the MDM software if the profile of the software is active on the device. Else if the profile is disabled there is no more access for the software to the device.

7 0
3 years ago
What output will be produced by the following code?
Oduvanchick [21]

Answer:

The condition evaluated to false!

Explanation:

lets attach line numbers to the given code snippet

  1. public class SelectionStatements {
  2.    public static void main(String[] args) {
  3.    int number = 25;
  4.    if(number % 2 == 0)
  5.    System.out.print("The condition evaluated to true!");
  6.    else
  7.    System.out.print("The condition evaluated to false!");
  8.    }
  9. }
  • In Line 3: An integer number is declared and assigned the value 25
  • Line 4 uses the modulo operator (%) to check if the number (25) is evenly divided by 2. This however is not true, so line 5 is not executed
  • The else statement on line 6- 7 gets executed

4 0
3 years ago
Other questions:
  • SP 800-14, Generally Accepted Principles and Practices for Securing Information Technology Systems, provides best practices and
    12·1 answer
  • Which type of movement lets the player control an object's movement?
    5·1 answer
  • Analog footage can be digitized using video _____ equipment.â
    7·1 answer
  • Given the string variable address, write an expression that returns the position of the first occurrence of the string "avenue"
    13·1 answer
  • Want to.learn about computers​
    9·1 answer
  • Which of the following is an example of a syntax error?
    15·1 answer
  • Given the following word addresses: 3, 180, 43, 2,191, 88, 190, 14, 181, 44, 186, 253
    15·1 answer
  • Coding question. Please help me?
    7·1 answer
  • Como se juega robótica de cokitos
    13·1 answer
  • What is a wiki website?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!